Service Detail - PING.
Varaillon Jean Cristophe
vajc at altectelecoms.gr
Mon Nov 27 13:40:40 CET 2006
...and ping is executable by nagios:
bash-2.05# ls -l /usr/sbin/ping
-r-sr-xr-x 1 root bin 47788 Apr 7 2002 /usr/sbin/ping
bash-2.05#
Christophe
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of
Varaillon Jean Cristophe
Sent: Monday, November 27, 2006 11:43 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Service Detail - PING.
Hi,
u
Is there any way for me to actually troubleshoot my pluggins?
Please see under the output of a proper test:
I am on a Solaris platform:
$ uname -a
SunOS sphynx 5.9 Generic_117171-07 sun4u sparc
SUNW,UltraSPARC-IIi-cEngine
I am logged in as nagios:
$ who am i
nagios pts/1 Nov 27 11:25 (192.168.167.57)
Nagios is the username under which the nagios process is actually
running:
$ ps -ef | grep nagios
nagios 11183 11069 0 11:26:20 pts/1 0:00 grep nagios
nagios 11069 11067 0 11:25:01 pts/1 0:00 -sh
nagios 14609 1 0 Nov 24 ? 1:44
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 11184 11183 0 11:26:20 pts/1 0:00 ps -ef
The check_ping does work through command line $
/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 100.0,20% -c
500.0,60% PING OK - Packet loss = 0%, RTA = 0.00 ms
The above check_ping argument are as defined in the service.cfg:
define service{
use generic-service ; Name
of service template to use
host_name localhost
service_description PING
event_handler server-send-trap
is_volatile 0
check_period 24x7
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
notification_options w,u,c,r
notification_interval 1
notification_period 24x7
check_command check_ping!100.0,20%!500.0,60%
}
However I still have this output (c.f. attached):
--------------------------
Hosts: LocalHost
Service: PING
Status: Warning
Status Information (No output!)
--------------------------
Thanks!
Christophe
Disclaimer
The information in this e-mail and any attachments is confidential. It
is intended solely for the attention and use of the named addressee(s).
If you are not the intended recipient, or person responsible for
delivering this information to the intended recipient, please notify the
sender immediately. Unless you are the intended recipient or his/her
representative you are not authorized to, and must not, read, copy,
distribute, use or retain this message or any part of it. E-mail
transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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