Xymon Mailing List Archive search

directory vs. includes statement

list Henrik Størner
Wed, 18 Nov 2009 12:08:28 +0000 (UTC)
Message-Id: <he0o3s$hte$user-7fe75da36485@xymon.invalid>

In <user-0125d418ff3a@xymon.invalid> Martin Flemming <user-f286aaa49a76@xymon.invalid> writes:
Which is the difference beween the  directory and includes statement ?
"include" forces you to explicitly list the files that are included.
"directory" will automatically include all files in the directory.

Unfortunatly  ( the directory statement) it didn't work right now together 
with the --cifd option of  hobbitd_alert module ...
"cfid:N" where N is the linenumber in the hobbit-alerts.cfg "
The cfid-linenumber dosen't match with linenumber if i make an dump of the hobbit-alerts.cfg with
/usr/lib/hobbit/server/bin/bbcmd  /usr/lib/hobbit/server/bin/hobbitd_alert --dump-config

"--dump-config" dumps the parsed output of the config files, but
the line-numbers are from the un-parsed file (e.g. the line number
also includes comment-lines which --dump-config ignores). So you
should match the line number against the output from
   bbcmd bbhostshow ~xymon/server/etc/hobbit-alerts.cfg

I should probably consider adding the line-number to the --dump-config
output.


Regards,
Henrik