Plugin that will test nagios.cfg

Patrick Morris patrick.morris at hp.com
Thu Jun 21 23:20:24 CEST 2007


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.

-------------------------------------------------------------------------
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