Status Information (No output)! on all servicechecks
Mandy Hargis
HargisM at si.edu
Fri Apr 2 22:37:30 CEST 2004
Thanks! That pointed me to exactly what I needed...my $USER1$ variable wasn't working and I realized I needed to set that in my resource.cfg. Everything is working.
Extremely appreciated for your taking the time to write,
Mandy Hargis
>>> Clint Sulis <clint at misinc.net> 04/02/04 01:21PM >>>
On Friday, April 2, 2004, at 09:35 AM, Mandy Hargis wrote:
>> I recently installed Nagios 1.2 with Nagios plugins 1.3.1 on Solaris
>> 9. I have been running Nagios 1.0b6 for over a year and monitoring
>> around 700 hosts and 1100 services so I copied my old
>> /usr/local/nagios/etc directory which also contains all of my *.cfg
>> files. The web interface shows all of the hosts 'UP' but all of my
>> service check "Status Information"s are showing as (No output!).
>> All *.cfg files worked perfectly with Nagios 1.0b6 so I am omitting
>> the definitions in this posting because of that.
>>
>> I can run all the check_ commands via command line with success and
>> single line output. The status.log shows only more of the same (No
>> output!) and I cannot see any other problems in the logs or
>> /var/adm/messages file. I checked the FAQs and mailing lists without
>> success.
I had a similar problem while setting up nagios, and I resolved the
issue by putting the full path to each check command in the
checkcommands.cfg file instead of relying on the $USER1$ variable
definition, which was not working for some reason.
For example, the original check_ping definition looked something like
this:
# 'check_ping' command definition
define command {
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$
-c $ARG2$ -p 5
}
I modified it to look like this, restarted the nagios service, and the
check started working.
# 'check_ping' command definition
define command {
command_name check_ping
command_line /usr/local/nagios/libexec/check_ping -H
$HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}
Hope this helps you out!
Clint Sulis
====================
System Administrator
PHP/MySQL Programmer
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
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