<DIV>I am still having problems with Nagios. It looks like everything is setup OK but the service check fails for the check_ping plugin.</DIV>
<DIV> </DIV>
<DIV>I can manually run the check_ping and the host-a-live with good return data.</DIV>
<DIV>Nagios can't run it for some reason.</DIV>
<DIV> </DIV>
<DIV>Please take a look at my setup and let me know if anything sticks out of being wrong.</DIV>
<DIV> </DIV>
<DIV>I have searched the archives and google with no solution yet. I must be missing something.</DIV>
<DIV> </DIV>
<DIV>Thanks in advance,</DIV>
<DIV>Charles</DIV>
<DIV> </DIV>
<DIV>=============================</DIV>
<DIV>Nagios 1.2<BR>Mandrake 10</DIV>
<DIV> </DIV>
<DIV>From nagios.log<BR>[1097252224] Warning: Return code of 127 for check of service 'PING' on host 'N-PINEVIEW-2924' was out of bounds. Make sure the plugin you're trying to run actually exists.</DIV>
<DIV> </DIV>
<DIV>I can manually run the check_ping or host-a-live with good return data.</DIV>
<DIV>The owner and group of the CFG files is nagios</DIV>
<DIV> </DIV>
<DIV>From services.cfg<BR># Service definition<BR>define service{<BR> use generic-service ; Name of service template to use</DIV>
<DIV> host_name N-GSB-DMZPIX<BR> service_description PING<BR> is_volatile 0<BR> check_period 24x7<BR> max_check_attempts 3<BR> norma
l_check_interval
1<BR> retry_check_interval 1<BR> contact_groups linux-admins<BR> notification_interval 30<BR> notification_period 24x7<BR> notification_options c,r<BR> check_command check_p
ing!100.0,20%!500.0,60%<BR> }</DIV>
<DIV><BR>From command.cfg</DIV>
<DIV>command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w 10:20% -c 60:100%</DIV>
<DIV>From checkcommands.cfg</DIV>
<DIV># 'check_ping' command definition<BR>define command{<BR> command_name check_ping<BR> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5<BR> }</DIV>
<DIV> </DIV>
<DIV>[root@NAFCS etc]# ls -lga<BR>total 228<BR>drwxrwxr-x 3 nagios 4096 Oct 8 12:28 ./<BR>drwxrwxrwx 8 root 4096 Oct 4 16:20 ../<BR>-rw-rw-r-- 1 nagios 17196 Oct 4 16:23 cgi.cfg<BR>-rwxrwxrwx 1 nagios 4475 Sep 29 09:50 checkcommands.cfg*<BR>-rwxrwxrwx 1 nagios 15874 Oct 4 16:08 command.cfg*<BR>-rwxrwxrwx 1 nagios 629 Sep 29 09:50 contactgroups.cfg*<BR>-rwxrwxrwx 1 nagios 735 Sep 29 09:50 contacts.cfg*<BR>-rwxrwxrwx 1 nagios 115 Sep 29 09:50 dependencies.cfg*<BR>-rwxrwxrwx 1 nagios 795 Sep 29 09:50 escalations.cfg*<BR>-rwxrwxrwx 1 nagios 1059 Sep 29 09:50 esclations2.cfg*<BR>-rwxrwxrwx 1 nagios 7701 Sep 29 09:50 hostgroups.cfg*<BR>-rwxrwxrwx 1 nagios 18980 Sep 29 09:50 hosts.cfg*<BR>-rw-r--r-- 1 nagi
os 47 Sep 30 15:40 htpasswd.users<BR>-rwxrwxrwx 1 nagios 4234 Sep 29
09:50 misccommands.cfg*<BR>-rw-rw-r-- 1 nagios 21327 Sep 30 07:10 nagios.cfg<BR>-rwxrwxrwx 1 nagios 14 Oct 4 16:57 passwd*<BR>-rwxrwxrwx 1 nagios 3069 Oct 4 16:50 resource.cfg*<BR>drwxrwxrwx 2 nagios 4096 Sep 29 09:43 sample/<BR>-rwxrwxrwx 1 nagios 25213 Oct 4 16:26 services.cfg*<BR>-rwxrwxrwx 1 nagios 1589 Sep 29 09:50 timeperiods.cfg*<BR>-rwxrwxrwx 1 nagios 17358 Sep 29 16:09 Xcgi.cfg*<BR>-rwxr-xr-x 1 nagios 20 Oct 4 16:56 xgroup*<BR>-rwxrwxrwx 1 nagios 21271 Sep 29 16:12 Xnagios.cfg*<BR>[root@NAFCS etc]#</DIV>
<DIV> </DIV>
<DIV>[root@NAFCS nagios]# ls -lga<BR>total 32<BR>drwxrwxrwx 8 root 4096 Oct 4 16:20 ./<BR>drwxr-xr-x 16 root 4096 Sep 29 16:43 ../<BR>drwxrwxr-x 2 nagios 4096 Oct 4 14:46 bin/<BR>drwxrwxr-x 3 nagios 4096 Oct 8 12:28 etc/<BR>drwxrwxrwx 2 nagios 4096 Oct 4 14:50 libexec/<BR>drwxrwxr-x 2 nagios 4096 Oct 4 14:46 sbin/<BR>drwxrwxr-x 9 nagios 4096 Oct 4 14:46 share/<BR>drwxrwxr-x 4 nagios 4096 Oct 8 12:29 var/<BR>[root@NAFCS nagios]#</DIV>
<DIV> </DIV>
<DIV>[root@NAFCS libexec]# ls -lga<BR>total 3592<BR>drwxrwxrwx 2 nagios 4096 Oct 4 14:50 ./<BR>drwxrwxrwx 8 root 4096 Oct 4 16:20 ../<BR>-rwxr-xr-x 1 nagios 2267 Oct 4 14:50 check_breeze*<BR>-rwxr-xr-x 1 nagios 131537 Oct 4 14:50 check_by_ssh*<BR>-rwxr-xr-x 1 nagios 129675 Oct 4 14:50 check_dig*<BR>-rwxr-xr-x 1 nagios 176116 Oct 4 14:50 check_disk*<BR>-rwxr-xr-x 1 nagios 8049 Oct 4 14:50 check_disk_smb*<BR>-rwxr-xr-x 1 nagios 131880 Oct 4 14:50 check_dns*<BR>-rwxr-xr-x 1 nagios 72555 Oct 4 14:50 check_dummy*<BR>-rwxr-xr-x 1 nagios 3095 Oct 4 14:50 check_file_age*<BR>-rwxr-xr-x 1 nagios 6400 Oct 4 14:50 check_flexlm*<BR>-rwxr-xr-x 1 nagios 131612 Oct 4 14:50
check_fping*<BR>lrwxrwxrwx 1 nagios 9 Oct 4 14:50
check_ftp -> check_tcp*<BR>-rwxr-xr-x 1 nagios 129274 Oct 4 14:50 check_hpjd*<BR>-rwxr-xr-x 1 nagios 165425 Oct 4 14:50 check_http*<BR>-rwxr-xr-x 1 nagios 14847 Oct 4 14:50 check_ifoperstatus*<BR>-rwxr-xr-x 1 nagios 12857 Oct 4 14:50 check_ifstatus*<BR>lrwxrwxrwx 1 nagios 9 Oct 4 14:50 check_imap -> check_tcp*<BR>-rwxr-xr-x 1 nagios 7437 Oct 4 14:50 check_ircd*<BR>-rwxr-xr-x 1 nagios 104267 Oct 4 14:50 check_load*<BR>-rwxr-xr-x 1 nagios 5823 Oct 4 14:50 check_log*<BR>-rwxr-xr-x 1 nagios 20843 Oct 4 14:50 check_mailq*<BR>-rwxr-xr-x 1 nagios 82044 Oct 4 14:50 check_mrtg*<BR>-rwxr-xr-x 1 nagios 80862 Oct 4 14:50 check_mrtgtraf*<BR>-rwxr-xr-x 1 nagios 104014 Oct 
; 4 14:50 check_nagios*<BR>lrwxrwxrwx 1 nagios 9 Oct 4
14:50 check_nntp -> check_tcp*<BR>-rwxr-xr-x 1 nagios 111268 Oct 4 14:50 check_nt*<BR>-rwxr-xr-x 1 nagios 13286 Oct 4 14:50 check_ntp*<BR>-rwxr-xr-x 1 nagios 123015 Oct 4 14:50 check_nwstat*<BR>-rwxr-xr-x 1 nagios 7637 Oct 4 14:50 check_oracle*<BR>-rwxr-xr-x 1 nagios 108481 Oct 4 14:50 check_overcr*<BR>-rwxr-xr-x 1 nagios 135857 Oct 4 14:50 check_ping*<BR>lrwxrwxrwx 1 nagios 9 Oct 4 14:50 check_pop -> check_tcp*<BR>-rwxr-xr-x 1 nagios 114443 Oct 4 14:50 check_procs*<BR>-rwxr-xr-x 1 nagios 105321 Oct 4 14:50 check_real*<BR>-rwxr-xr-x 1 nagios 9712 Oct 4 14:50 check_rpc*<BR>-rwxr-xr-x 1 nagios 1176 Oct 4 14:50 check_sensors*<BR>lrwxrwxrwx 1 nagios
9 Oct 4 14:50 check_simap -> check_tcp*<BR>-rwxr-xr-x 1 nagios 105146 Oct 4
14:50 check_smtp*<BR>-rwxr-xr-x 1 nagios 124017 Oct 4 14:50 check_snmp*<BR>lrwxrwxrwx 1 nagios 9 Oct 4 14:50 check_spop -> check_tcp*<BR>-rwxr-xr-x 1 nagios 101498 Oct 4 14:50 check_ssh*<BR>-rwxr-xr-x 1 nagios 105149 Oct 4 14:50 check_swap*<BR>-rwxr-xr-x 1 nagios 145931 Oct 4 14:50 check_tcp*<BR>-rwxr-xr-x 1 nagios 104552 Oct 4 14:50 check_time*<BR>-rwxr-xr-x 1 nagios 102337 Oct 4 14:50 check_udp*<BR>lrwxrwxrwx 1 nagios 9 Oct 4 14:50 check_udp2 -> check_tcp*<BR>-rwxr-xr-x 1 nagios 111762 Oct 4 14:50 check_ups*<BR>-rwxr-xr-x 1 nagios 101714 Oct 4 14:50 check_users*<BR>-rwxr-xr-x 1 nagios 3024 Oct 4 14:50 check_wave*<BR>-rwxr-xr-x 1 nagios 101668 Oct 4 14:50 negate*<BR>-
rwxr-xr-x 1 nagios 99809 Oct 4 14:50 urlize*<BR>-rwxr-xr-x 1
nagios 2477 Oct 4 14:50 utils.pm*<BR>-rwxr-xr-x 1 nagios 876 Oct 4 14:50 utils.sh*<BR>[root@NAFCS libexec]#</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV><BR><BR><A href="http://service.bfast.com/bfast/click?bfmid=26399296&siteid=38650827&bf%0Apage=homepage">The Best Computer Upgrades - Check it out!</A><p>
<hr size=1>Do you Yahoo!?<br><a
href="http://vote.yahoo.com">vote.yahoo.com</a> - Register online to vote today!