check-ping
Jeff Koch
jeffkoch at intersessions.com
Sun Jul 13 19:17:08 CEST 2008
Hi Philipp:
Thanks for your help. When we ran ping as nagios it bombed. Permissions on
ping needed to be set SUID root so that an ICMP socket could be opened. We
had changed that for security reasons. We'll make nagios sudo root for
ping. That should solve the problem.
At 12:56 PM 7/13/2008, Philipp Geschke wrote:
>Hi Jeff,
>
>Jeff Koch schrieb:
> > Hi:
> >
> > We just started with nagios two days ago and are probably doing something
> > stupid. We just can't get 'check-host-alive' or 'check-ping' to work.
> >
> > The web browser status report shows that our servers are down when we know
> > they are up:
> >
> > /bin/ping -n -U -w 30 -c 5 64.68.144.25
> > CRITICAL - Could not interpret output from ping command
> >
> > But yet when I run the same command from the command line I get a normal
> > result:
> >
> > # /bin/ping -n -U -w 30 -c 5 64.68.144.25
> > PING 64.68.144.25 (64.68.144.25) 56(84) bytes of data.
> > 64 bytes from 64.68.144.25: icmp_seq=0 ttl=64 time=0.162 ms
> > 64 bytes from 64.68.144.25: icmp_seq=1 ttl=64 time=0.122 ms
> > 64 bytes from 64.68.144.25: icmp_seq=2 ttl=64 time=0.129 ms
> > 64 bytes from 64.68.144.25: icmp_seq=3 ttl=64 time=0.131 ms
> > 64 bytes from 64.68.144.25: icmp_seq=4 ttl=64 time=0.145 ms
> >
> > and permissions are open for nagios to execute the ping command
> >
> > and when I execute the 'check_ping' command directly with:
> >
> > libexec# ./check_ping -H 64.68.144.76 -w 3000.0,80% -c 5000.0,100% -p 5
> > PING OK - Packet loss = 0%, RTA = 0.14 ms
> >
> > I get a good result
>
>Did you run that check as the user that runs nagios, or as root?
>
> >
> > We're using CentOS 3.6, Nagios 3.03 and nagios-plugins-1.4.11
>
>CentOS should have a normal ping binary, but if you can't get this to run
>you might wanna check out check_icmp.
>It does the same check_ping does, only that it is a lot faster, because it
>sends the ICMP Echo Requests itself,
>instead of wrapping the ping binary.
>
>I usually replace check_ping with check_icmp completely.
>
>
>-Philipp
>
>
> >
> > Any ideas would be appreciated. We need to get this working.
> >
> > Thanks.
> >
> >
> >
> > Best Regards,
> >
> > Jeff Koch
> >
> >
> > -------------------------------------------------------------------------
> > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> > Studies have shown that voting for your favorite open source project,
> > along with a healthy diet, reduces your potential for chronic lameness
> > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> > _______________________________________________
> > 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
Best Regards,
Jeff Koch, Intersessions
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
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