Service Detail - PING.
Marc Powell
marc at ena.com
Sat Nov 25 03:47:57 CET 2006
> -----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: Friday, November 24, 2006 5:31 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Service Detail - PING.
>
> Hi,
>
>
> When I check the Service Detail from the web browser, it shows that:
> --------------------------
> Hosts: LocalHost
> Service: PING
> Status: Warning
> Last Check: 11/24/2006 13:13:47
> Duration 2d 23h 0m 2s
> Attempt 4/1
> Status Information (No output!)
> --------------------------
>
>
> Now, given that the service is the following one:
> --------------------------
> define service{
> use generic-service
> host_name localhost
> service_description PING
> notifications_enabled 1
> 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%
> --------------------------
>
>
> And given the fact that I can run that command from my localhost:
> --------------------------
> bash-2.05# ../libexec/check_ping -H 127.0.0.1 -w 100.0,20% -c
500.0,60% -4
> PING OK - Packet loss = 0%, RTA = 0.00 ms
> --------------------------
Presuming this accurately reflects your command{} definition. Nagios
doesn't run this command as the root user so it's not a good test. Try
running it as the nagios user. Most often, /bin/ping, which check_ping
calls, is not executable by any user other than root. If that is the
case, make it run suid with chmod u+s /bin/ping.
--
Marc
-------------------------------------------------------------------------
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