"Plugin timed out while executing system call" error using check_dhcp plugin

Hari Sekhon hpsekhon at googlemail.com
Thu May 3 13:51:05 CEST 2007


are you running nagios as root (I expect you to say no here.. in which 
case:)

the plugin is running under the nagios account, but it must be run under 
root in order to have the necessary permissions to work properly.

-h

Hari Sekhon



Ruth Anne wrote:
> Nagios version 2.8
> check_dhcp (nagios-plugins 1.4.6) 1.8
> RHEL4-x64
>
> We finally made this plugin work with our server - we had to issue 
> addresses on a range we had not previously set up. The command 
> /usr/local/nagios/libexec/check_dhcp -s <our.server.IP.here> works 
> splendidly from the command line with both root and nagios users. 
> '/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg' 
> completes with no errors.
>
> However, when I attempt to have check_dhcp run from within nagios, I 
> get the error: CRITICAL - Plugin timed out while executing system 
> call.
>
> Previous to this error, I was getting "DHCP;CRITICAL;HARD;3;(Return 
> code of 126 is out of bounds - plugin may be missing)" errors.  I 
> followed Thomkas' suggestion in a message dated Mon, 11 Sep 2006 
> 04:41:53 +0200, and removed the service definition, restarted nagios, 
> inserted the service definition, and restarted nagios.  Then I started 
> to get the "Plugin timed out" errors.
>
> I had had someone else look over the files, and they can't find any 
> errors.  I am including the relevant snippits here.  Hopefully,
> someone will be able to shed some light on my problem.
>
> Thanks,
> --Ruth Anne
>
>
> ls -l of check_dhcp:
> -rwsr-xr-x  1 root root  87240 Mar 22 11:49 check_dhcp
>
> from hostgroups.cfg:
>
> define hostgroup{
>          hostgroup_name  dhcp-servers
>          alias           DHCP Servers
>          members         pod-e,pod-f
>          }
>
>
> from services.cfg:
>
> define service{
>       use     generic-service
>       hostgroup_name      dhcp-servers
>       service_description      DHCP
>       is_volatile      0
>       check_period      24x7
>       max_check_attempts      3
>       normal_check_interval      5
>       retry_check_interval      1
>       contact_groups      nagios-admins
>       notification_interval      30
>       notification_period      24x7
>       notification_options      w,u,c,r
>       check_command      check-dhcp-lrt
>       }
>
> from commands.cfg
>
> #
> # 'check-dhcp-lrt'command definition
> define command{
>          command_name    check-dhcp-lrt
>          command_line    $USER1$/check_dhcp -s $HOSTADDRESS$
>          }
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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