Page 2 of 2

Re: nagios/check_mk GUI, issue with check_ping

Posted: Mon Apr 24, 2017 6:44 pm
by sgennari
After disabling gearman in nagios.cfg and restarting nagios, the error message has changed to

Code: Select all

Return code of 127 is out of bounds - plugin may be missing

Re: nagios/check_mk GUI, issue with check_ping

Posted: Mon Apr 24, 2017 7:14 pm
by sgennari
Found the problem.

I set debug mode in nagios.cfg to '2048' and noticed that nagios was looking for the check_icmp in /usr/lib/nagios/plugins (doesn't exist) instead of /usr/lib64/nagios/plugins. So i created a symbolic link for /usr/lib/nagios/plugins as a temporary work-around and now check_icmp works.

It's odd because resource.cfg defines the plugin directory as

Code: Select all

# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/lib64/nagios/plugins/
but the debug log was showing

Code: Select all

[1493078971.053704] [2048.1] [pid=8729] **** BEGIN MACRO PROCESSING ***********
[1493078971.053714] [2048.1] [pid=8729] Processing: '/usr/lib/nagios/plugins/check_icmp $ARG1$ $HOSTADDRESS$'
[1493078971.053730] [2048.1] [pid=8729]   Done.  Final output: '/usr/lib/nagios/plugins/check_icmp  10.30.2.18'
[1493078971.053741] [2048.1] [pid=8729] **** END MACRO PROCESSING *************


Re: nagios/check_mk GUI, issue with check_ping

Posted: Tue Apr 25, 2017 8:57 am
by tgriep
The path to the plugin folder may be in another configuration file but your fix would work as well.