Plugin that will test nagios.cfg
Arno Lehmann
al at its-lehmann.de
Fri Jun 22 12:00:51 CEST 2007
Hi,
21.06.2007 23:20,, Patrick Morris wrote::
> Arno Lehmann schrieb am Donnerstag, den 21. Juni 2007:
>
>> Hi,
>>
>> chiel schrieb:
>>> I'm looking for a plugin that will check if the nagios.cfg is ok.
>>> So besecauly run this command: "/usr/local/nagios/bin/nagios -v
>>> /usr/local/nagios/etc/nagios.cfg". Is there a plugin for this?
>> Wouldn't it be better to check this in the cron job itself? Nagios
>> won't help you much if it crashes because of a broken config.
>>
>> The cron job could, naturally, report problems as passive results to
>> Nagios...
>
> Nagios will never crash because of a broken config if it's running;
> it just won't load that config. Checking from a cron job works, too,
> but there's no reason Nagios can't also check to see if the on-disk
> config is valid.
Well, I've seen Nagios crash on a broken config. Even if this is a bug
which should (and perhaps is) fixed, I would not rely on that
behaviour if I can easily avoid that.
Thus my recommendation...
Arno
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list