Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Hugo van der Kooij > Sent: Friday, June 22, 2007 3:30 PM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] Plugin that will test nagios.cfg > > O

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Hugo van der Kooij
On Thu, 21 Jun 2007, Marc Powell wrote: > If you can reliably reproduce this with a '/etc/init.d/nagios reload' or > 'restart' then you should report it as a bug. Nagios is meant to not > crash or bail a running copy if the new config is bad. If nagios can not start due to a broken config then a

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Thomas Guyot-Sionnest
On 22/06/07 10:23 AM, Hari Sekhon wrote: > >> >> One everyone uses init scripts. Nagios can also be restarted via >> signals, web interface and directly trough the command pipe. Any of >> these methods won't do any sanity checking. >> >> > Do you mean "Not everyone uses init script"? Yes of co

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Hari Sekhon > Sent: Friday, June 22, 2007 9:24 AM > To: Thomas Guyot-Sionnest > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Plugin that

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Hari Sekhon
> > One everyone uses init scripts. Nagios can also be restarted via > signals, web interface and directly trough the command pipe. Any of > these methods won't do any sanity checking. > > Do you mean "Not everyone uses init script"? > The init script does pretty much what I put in my bash exa

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Thomas Guyot-Sionnest
On 22/06/07 05:14 AM, Hari Sekhon wrote: > On my installation I noticed that it does crash when you do > /etc/init.d/nagios restart, but not if you do /etc/init.d/nagios reload > which I think is what you should be doing. One everyone uses init scripts. Nagios can also be restarted via signals, we

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Hari Sekhon
did you see my last email regarding this and reload vs restart? also, something I forgot to add, here is a very basic shell test that I run through cron to check nagios is up and email me if not: $PLUGIN_DIR/check_nagios -F $NAGIOS_STATUS_LOG -e 5 -C $NAGIOS_BINARY > $LOG if [ $? != 0 ]; then

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Arno Lehmann
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

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-22 Thread Hari Sekhon
On my installation I noticed that it does crash when you do /etc/init.d/nagios restart, but not if you do /etc/init.d/nagios reload which I think is what you should be doing. When deploying, I use reload instead of restart, that way you get the error message from the pre-flight check but nagios

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Thomas Guyot-Sionnest > Sent: Thursday, June 21, 2007 10:13 PM > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Plugin that will test nagios.cfg &

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread Thomas Guyot-Sionnest
On 21/06/07 05:20 PM, 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/na

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread Patrick Morris
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? > > Would

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread Arno Lehmann
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

[Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread chiel
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? I want this because I reload the nagios config every 15 minutes through a cronjob. And I want to be not