Plugin_output error (Return code of 126 is out of bounds - plugin may be missing)

I am encountering the plugin error for all hosts enrolled in my checkmk instance. This was working fine and we haven’t really done anything on the server for long. Some searches on this error seems to denote of a problem with file permissions, but I’ve checked those and dont seem to have a problem there.

/opt/omd/versions/1.4.0p34.cre/lib/nagios/plugins
-rwsr-x—. 1 root omd 225640 Jun 13 2018 check_icmp*
-rwsr-x—. 1 root omd 202584 Jun 13 2018 check_dhcp*

We have connectivity working fine and check_mk -d (or) check_mk -nv on the hosts is returning data perfectly. Its only the host state which is shown as DOWN. Can you please direct me to what else can be checked? Thanks

Hi do you have tried an

cmk -IIv YourHost

Greets

Hi that works as well. See below:

OMD[checkmkor]:~$ cmk -IIv myhost
Discovering services on myhost:
myhost:
1 cpu.loads
1 cpu.threads
11 df
1 diskstat
3 kernel
1 kernel.util
2 lnx_if
1 mem.linux
11 mounts
1 ntp.time
1 postfix_mailq
1 postfix_mailq_status
1 tcp_conn_stats
1 uname
1 uptime

then just an

cmk -R

and the config is loaded

Sorry no luck after the reload, I still get the plugin error on this host and all other enrolled hosts

OMD[checkmk]:~$ cmk -R
Generating configuration for core (type nagios)…OK
Validating Nagios configuration…OK
Precompiling host checks…OK
Restarting monitoring core…OK
OMD[checkmk]:~$

OMD[checkmk]:~$ lq “GET hosts\nColumns: name address state plugin_output\nFilter: name = myhost”
myhost;10.xx.xx.xx;1;(Return code of 126 is out of bounds - plugin may be missing)
OMD[checkmk]:~$

Guess what it was indeed permission issue like what every other blog mentioned. Even though the permission was as per the requirement, something was preventing it from running on omd group user.

So the solution was to give it a more liberal permission as below:
-rwsr-xr-x. 1 root omd 225640 Jun 13 2018 check_icmp*

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.