directory vs. includes statement
list Martin Flemming
Hi !
I use in my bb-hosts (4.3.0-0.beta2) the directory-statement,
because it's very simple to added various and new hosts/pages
hobbitlcient-directives etc. ...
into the system, only to push them in the includes-directory ... ;-)
But now, i've got a problem with devmon,
because it's only detected includes-statements ...
Is it right, that i have to added each include-file into the bb-hosts-file
or is there a similiar feature like wildcards or so on ... ?
.. by the way it wouldn't be advancement .. :-(
thanks & cheers
Martin
list Martin Flemming
Sorry
.. by the way it wouldn't be advancement .. :-(
.. of course, if there will be NOT a " similiar feature like wildcards" in the includes-statements exist .. thanks in advance ! martin
▸
On Fri, 13 Nov 2009, Martin Flemming wrote:
Hi !
I use in my bb-hosts (4.3.0-0.beta2) the directory-statement,
because it's very simple to added various and new hosts/pages
hobbitlcient-directives etc. ...
into the system, only to push them in the includes-directory ... ;-)
But now, i've got a problem with devmon,
because it's only detected includes-statements ...
Is it right, that i have to added each include-file into the bb-hosts-file
or is there a similiar feature like wildcards or so on ... ?
.. by the way it wouldn't be advancement .. :-(
thanks & cheers
Martin
Gruss
Martin Flemming
Martin Flemming
DESY / IT office : Building 2b / 008a
Notkestr. 85 phone : XXX - XXXX - XXXX
22603 Hamburg mail : user-f286aaa49a76@xymon.invalid
list Buchan Milne
▸
On Friday, 13 November 2009 14:17:02 Martin Flemming wrote:
Hi ! I use in my bb-hosts (4.3.0-0.beta2) the directory-statement, because it's very simple to added various and new hosts/pages hobbitlcient-directives etc. ... into the system, only to push them in the includes-directory ... ;-) But now, i've got a problem with devmon, because it's only detected includes-statements ...
Please file a feature request on devmon for supporting the 'directory' statement. Xymon 4.2.3's bb-hosts(5) man page doesn't list a "directory" statement though, so this wasn't added when adding support for *include statements. (devmon doesn't support file globs or wildcards in include statements). Regards, Buchan
list Martin Flemming
Hi !
Please file a feature request on devmon for supporting the 'directory' statement.
done on saturday ... But it seems i've got another problem/question with the directory vs. includes statement .. Which is the difference beween the directory and includes statement ? I used the directory-statement in bb-hosts, hobbit-client.cfg and hobbit-alerts.cfg, because it's the easiest way to get to configure a lot of Configs for a bunch of pages,alerts and client-configs .... 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 by the way ,in the top of the hobbit-alerts.cfg, i've got many Comments and mail-macros but which i've included in the dump-file .. Any comments are welcome ;-) cheers,
▸
martin
On Fri, 13 Nov 2009, Buchan Milne wrote:
On Friday, 13 November 2009 14:17:02 Martin Flemming wrote:Hi ! I use in my bb-hosts (4.3.0-0.beta2) the directory-statement, because it's very simple to added various and new hosts/pages hobbitlcient-directives etc. ... into the system, only to push them in the includes-directory ... ;-) But now, i've got a problem with devmon, because it's only detected includes-statements ...Please file a feature request on devmon for supporting the 'directory' statement. Xymon 4.2.3's bb-hosts(5) man page doesn't list a "directory" statement though, so this wasn't added when adding support for *include statements. (devmon doesn't support file globs or wildcards in include statements). Regards, Buchan
list Henrik Størner
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
list Martin Flemming
▸
On Wed, 18 Nov 2009, Henrik Størner wrote:
/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
Yep, works like a charme ;-)
I should probably consider adding the line-number to the --dump-config output.
great idea !
thanks a lot Henrik !
Martin