> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Enrique Llanos V. > Sent: Wednesday, June 07, 2006 5:51 PM > To: Frank, Jason > Cc: [email protected] > 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 - > [EMAIL PROTECTED] /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 [email protected] 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
