nagios/check_mk GUI, issue with check_ping

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sgennari
Posts: 7
Joined: Wed Mar 29, 2017 6:44 am

Re: nagios/check_mk GUI, issue with check_ping

Post 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
sgennari
Posts: 7
Joined: Wed Mar 29, 2017 6:44 am

Re: nagios/check_mk GUI, issue with check_ping

Post 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 *************

User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios/check_mk GUI, issue with check_ping

Post by tgriep »

The path to the plugin folder may be in another configuration file but your fix would work as well.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked