I've dug through the old posts with this issue, but nothing seems to be helping me... <br><br>I've checked the permissions on the check commands, run the command as the nagios user from a shell. I've even tried to run nagios as root... I still get the 127 return code out of bounds. I'll use check_ping as my example..<br>
<br>Here's some config stuff:<br><br>netmon nagios # ls -al /usr/nagios/libexec/<br>total 1344<br>drwxr-x--- 3 nagios nagios 4096 Nov 7 09:57 .<br>drwxr-xr-x 6 nagios nagios 4096 Nov 6 13:33 ..<br><snip><br>
-rwxrwxrwx 1 nagios nagios 34604 Nov 7 09:40 check_ping<br><snip><br><br>netmon nagios # cat /etc/nagios/resource.cfg | grep USER1<br># Nagios supports up to 32 $USERx$ macros ($USER1$ through $USER32$)<br># Sets $USER1$ to be the path to the plugins<br>
$USER1$=/usr/nagios/libexec<br><br>/etc/nagios/commands.cfg:<br><br># 'check_ping' command definition<br>define command{<br># command_name check_ping<br> command_name check_ping<br> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5<br>
<br>/etc/nagios/services.cfg<br><br>define service{<br> use local-service ; Name of service template to use<br> hostgroup_name windows_servers<br> service_description PING<br>
check_command check_ping!100.0,20%!500.0,60%<br> }<br><br><br><br>Anything else for troubleshootng that would help... I'd like to stop banging my head up against the wall?<br><br><br>