Need HELP with Process check command failing o n FreeBSD

Voon, Ton Ton.Voon at egg.com
Fri Jan 7 09:28:00 CET 2005


Sam,

Please try the latest snapshot for the nagios plugins at
http://nagiosplug.sf.net/snapshot. This contains the latest release which
has had some changes for FreeBSD.

General hints: make sure the command works on the command line before using
it in the cgi.cfg; this would probably be a post to nagiosplug-help rather
than nagios-users.

Ton

-----Original Message-----
From: Sam Davidson [mailto:jsdavidson at hotmail.com] 
Sent: 07 January 2005 00:43
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Need HELP with Process check command failing on
FreeBSD


I need someone smarter than me to help me with information regarding to the 
nagios_check_command in the cgi.cfg file. I cannot get this to work for some

odd reason. I am running 2 instances of NAGIOS on 2 FreeBSD with versions 
5.1 and 5.2.1.  I get the same result from both machines.



This is what I have for the value in the cgi.cfg file but this doesn't work.

  I have tried moving the values around but that didn't seem to make any 
difference.

nagios_check_command=/usr/local/nagios/libexec/check_nagios -F 
/usr/local/nagios/var/status.log -e 5 -C '/usr/local/nagios/bin/nagios -d 
/usr/local/nagios/etc/nagios.cfg'



If I run check_nagios manually from the libexec/ I can only get it to work 
with this string -



nagios# /usr/local/nagios/libexec/check_nagios -F 
/usr/local/nagios/var/status.log -e 5 -C /usr

Nagios ok: located 9 processes, status log updated 2 seconds ago



If I run it again with this variable or other variables I get the Could not 
find a running Nagios process!



nagios# /usr/local/nagios/libexec/check_nagios -F 
/usr/local/nagios/var/status.log -e 5 -C /usr/local

Could not locate a running Nagios process!



I tried putting the values for the string that worked in the cgi.cfg file 
but still didn't work



I thought it may be a rights issue, so I added the www user in the nagios 
group to see if that would make any difference. But it didn't.



If there is anyone out there that can point me in the right direction for a 
solution I would be very grateful.





Sam Davidson
jsdavidson at hotmail.com

AIM - jsamueldavidson

MSN Messenger - jsdavidson at hotmail.com
Yahoo Messenger - jsdavidson_84116
801.201.0195




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE
limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE --
well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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

-----------------------------------------
This private and confidential e-mail has been sent to you by Egg.  The Egg
group of companies includes Egg Banking plc registered no. 2999842), Egg
Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd
(registered no. 3403963) which is authorised and regulated by the Financial
Services Authority. Egg Investments Ltd. is entered in the FSA register
under number 190518.     Registered in England and Wales. Registered
offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA.    If you
are not the intended recipient of this e-mail and have received it in
error, please notify the sender by replying with 'received in error' as the
subject and then delete it from your mailbox.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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