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