[Nagiosplug-help] check_ping

Marc Belanger bru1n at comcast.net
Tue May 10 09:24:55 CEST 2005


In my short experience with 2.03b, plugins-1.4 on Solaris, I've found that once I get commands to work from the command line, correctly add the service and checkcommand definitions, and restart the nagios daemon as the nagios user, my core problem has gone away.

"man signal" on FreeBSD simply shows a sigsegv for a signal 11. I am taking Subhendu's statement as truth that the error code minus 128 = signal called; from earlier in this (or a recently similar) thread. Here's what I followed;
http://www.freebsd.org/cgi/man.cgi?query=signal&sektion=3&apropos=0&manpath=freebsd

You state that its working now, but that it may be intermittant. My advice would be to recompile the check_ping plugin if the condition returns.

One other comment; the ranges you specify are in noticably higher than the defaults, my Solaris default w|c thresholds are 100.0,20%|500.0,60%; thats straight from the samples directory after ./configure; make; make install. Is it possible they are too high causing an out of bounds?

-Marc


> 
> # 'check_ping' command definition
> define command{
>          command_name    check_ping
>          command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ 
> -c $ARG2$ -p 5
>          }
> 
> 
> define service{
>          use                             generic-service         ; Name 
> of service template to use
> 
>          host_name                       hostname
>          service_description             PING
>          is_volatile                     0
>          check_period                    24x7
>          max_check_attempts              3
>          normal_check_interval           3
>          retry_check_interval            1
>          contact_groups                  Admins
>          notification_interval           10
>          notification_period             24x7
>          notification_options            u,c,r
>          check_command                   check_ping!750.0,10%!1000.0,50%
>          }
> 
> 
> nagios>./check_ping -H xxx.xxx.xxx.xxx -w 750.0,10% -c 1000.0,50% -p 5
> PING OK - Packet loss = 0%, RTA = 0.19 ms
> 
> I can run it from the command line now.  However, the other night when I 
> tried to do this same thing check_ping was core dumping (the web 
> interface was displaying Return code of 139 is out of bounds).  The 
> problem seems to be intermittent.
> 
>   - Justin Kulikowski
> 	[ http://www.jpk236.com ]
> 
> 
> Marc Belanger wrote:
> > Can you run the command from the shell?
> > 
> > Example:
> > 
> > nagios @ miata: pwd
> > /usr/local/nagios/libexec
> > nagios @ miata: ./check_ping -H miata -w .3,10% -c .5,20% -p 5
> > PING OK - Packet loss = 0%, RTA = 0.16 ms
> > nagios @ miata: ./check_ping -H tbird -w .3,10% -c .5,20% -p 5
> > PING WARNING - Packet loss = 0%, RTA = 0.38 ms
> > 
> > What are your command and service definitions? Do they follow the syntax that 
> works form the command line, as the nagios user?
> > 
> > -Marc
> > 
> > 
> > 
> > 
> >>#>./check_ping -h
> >>check_ping (nagios-plugins 1.4) 1.42
> >>
> >>  - Justin Kulikowski
> >>	[ http://www.jpk236.com ]
> >>
> >>Server Admin wrote:
> >>
> >>>admin at jpk236.com wrote:
> >>>
> >>>
> >>>>Specs:
> >>>>    FreeBSD 5.4-RELEASE
> >>>>    nagios-2.0.b3
> >>>>    nagios-plugins-1.4_1,1
> >>>>    nsca-2.4
> >>>>
> >>>>Problem:
> >>>>    The check_ping plugin is returning "(Return code of 139 is out of 
> >>>>bounds)" from one of my active checks.  When this happens it seems to 
> >>>>stall nagios.  By this I mean, most of my passive checks turn stale.
> >>>>    Most of the time the problem recovers itself in a few minutes, but 
> >>>>occasionally it takes much longer.
> >>>>    Any thoughts?
> >>>>
> >>>>
> >>>> - Justin Kulikowski
> >>>>    [ http://www.jpk236.com ]
> >>>>
> >>>
> >>>What version of ping? and what package (iputils-ping?)
> >>>
> >>>
> >>>AYJ
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This SF.Net email is sponsored by Oracle Space Sweepstakes
> >>>Want to be the first software developer in space?
> >>>Enter now for the Oracle Space Sweepstakes!
> >>>http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> >>>_______________________________________________
> >>>Nagiosplug-help mailing list
> >>>Nagiosplug-help at lists.sourceforge.net
> >>>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> >>>::: Please include plugins version (-v) and OS when reporting any issue. 
> >>>::: Messages without supporting info will risk being sent to /dev/null
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.Net email is sponsored by Oracle Space Sweepstakes
> >>Want to be the first software developer in space?
> >>Enter now for the Oracle Space Sweepstakes!
> >>http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> >>_______________________________________________
> >>Nagiosplug-help mailing list
> >>Nagiosplug-help at lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> >>::: Please include plugins version (-v) and OS when reporting any issue. 
> >>::: Messages without supporting info will risk being sent to /dev/null
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by Oracle Space Sweepstakes
> > Want to be the first software developer in space?
> > Enter now for the Oracle Space Sweepstakes!
> > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> > _______________________________________________
> > Nagiosplug-help mailing list
> > Nagiosplug-help at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > ::: Please include plugins version (-v) and OS when reporting any issue. 
> > ::: Messages without supporting info will risk being sent to /dev/null
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null




More information about the Help mailing list