plugin disappearing

kevin krcalhoo at mtu.edu
Thu Jul 1 21:44:20 CEST 2004


I am having a problem with a plugin in disappearing.  I have set up a 
check dhcp service.  I am using the check_dhcp from 
nagios-plugins-1.4.0alpha1 in the contrib directory.  When I first start 
nagios it will run once and returns DHCP ok: Received 1 DHCPOFFER(s)... 
  However the second time it goes to run the check it returns error code 
127 plugin may be missing.  I have set log_initial_states=0 so it 
shouldn't be remembering anything from a previous state.
	For a test I also copied my dhcp-check service and made a dhcp-check2 
service.  It has the same behavior of running one and disappearing.
	I can run the check_dhcp check from the command line as root and as 
nagios without any problems.  I used visudo so set sudo up.

nagios    ALL = NOPASSWD: 
/dcs/local/nagios/nagiosservices/libexec/check_dhcp

Nagios Config files
   define service{
         use                             generic-service
         hostgroup_name                  dhcp
         service_description             dhcp-check
         contact_groups                  Administrators
         normal_check_interval           10     ; minutes
         check_command 
check-dhcp!141.219.70.126!192.168.0.21!eth0.4093!10
         register                        1
         }

define command{
         command_name    check-dhcp
         command_line    sudo 
/dcs/local/nagios/nagiosservices/libexec/check_dhcp -s $ARG1$ -r $ARG2$ 
-i $ARG3$ -t $ARG4$
         }

File location
# stat /dcs/local/nagios/nagiosservices/libexec/check_dhcp
   File: `/dcs/local/nagios/nagiosservices/libexec/check_dhcp'
   Size: 14145           Blocks: 32         IO Block: 4096   Regular File
Device: 811h/2065d      Inode: 1453063     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (  500/  nagios)   Gid: (  500/  nagios)
Access: 2004-07-01 15:09:46.000000000 -0400
Modify: 2004-06-16 11:55:49.000000000 -0400
Change: 2004-06-16 13:46:38.000000000 -0400

Any help or more things to check would be appreciated.
Kevin Calhoon





-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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