nagios_command_check not working correctly

Marc Powell marc at ena.com
Thu Jun 8 00:58:51 CEST 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Enrique Llanos V.
> Sent: Wednesday, June 07, 2006 5:51 PM
> To: Frank, Jason
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] nagios_command_check not working correctly
> 
> Im sending you the info requested, any help will be greatly
appreaciated.
> 
> nagios -v: Nagios 1.4
> uname: Linux Gestion-monitor 2.6.16-gentoo-r7
> /etc/make.conf: USE="-X -opengl -ipv6 apache2 nagios snmp fontconfig
xpm"
> 
> su nagios -
> nagios at Gestion-monitor /etc/nagios $ /usr/nagios/libexec/check_nagios
> /var/nagios/status.log  5 'nagios'
> Nagios ok: located 2 processes, status log updated 3 seconds ago

This is different than the 3 failing examples you give below --

> > [*]nagios_check_command=/usr/nagios/libexec/check_nagios
> > /var/nagios/status.log 5 '/usr/nagios/bin/nagios'
> > nagios_check_command=/usr/nagios/libexec/./check_nagios
> > /var/nagios/status.log 5 '/usr/nagios/bin/nagios'
> > nagios_check_command=/usr/nagios/libexec/check_nagios
> > /var/nagios/status.log 5 `which nagios`

The 'nagios' at the end is the word(s) it is searching for in the
process list. I'll bet that when you 'ps aux' it shows up solely as
'nagios' and not any of the variations you've tried above. Modify the
command to be 

nagios_check_command=/usr/nagios/libexec/check_nagios
/var/nagios/status.log 5 'nagios'

*note* the nagios check command runs as your web server user, not
nagios. That shouldn't be an issue but it may if you have a restrictive
web server configuration.

--
Marc


_______________________________________________
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