Host commands failing

Marc Powell marc at ena.com
Mon May 21 15:42:50 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of nagios
> Sent: Saturday, May 19, 2007 6:50 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Host commands failing
> 
> I have a Nagios installation that I am having an
> intermittant
> problem with.
> 
> On the host page, the "host commands", including such
> commands
> as "Disable checks of all services on this host" and
> "Disable notifications for all services on this host"
> are not working most of the time.
> 
> I see the commands appear in the
> /usr/local/nagios/var/rw/nagios.cmd
> file, but they do not take effect... most of the time.
> I saw the commands fail at first, then they worked two times
> back
> to back, then they stopped working again.  As far as I know,
> the
> configuration changes were all made prior to me trying
> commands.
> I only configured the system once.
> 
> The commands are not piling up, I usually only see one or
> two
> comamnds in the file, just now there was one from an hour
> ago,
> and another I added just now (to see if they were being
> erased),
> but none of the commands from this morning.  So something is
> waking up and removing the commands, and twice it execured
> them.

Nagios.cmd is not a file but a FIFO pipe. The simple act of you
'viewing' the commands in the pipe removes them so nagios never sees
them. Could that be your problem? Also, make sure you don't have
multiple nagios daemons running.

--
Marc

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