Issue with plugins
Posted: Mon Jun 06, 2016 7:57 am
Hi,
We are currently migrating our hosts from 2012.R9 to the latest version of nagios.
We have a bunch of custom checks, and it appears most of them (all of them?) are failing.
example:
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_json, ...) failed. errno is 2: No such file or directory
Even though:
# ls -lah /usr/local/nagios/libexec/check_json
-rwxr-xr-x 1 apache nagios 2,4K Svi 6 2015 /usr/local/nagios/libexec/check_json
In the commands conf we have:
define command {
command_name check_json
command_line $USER1$/check_json -h $HOSTADDRESS$ -p $ARG1$ -u $ARG2$
}
And service is defined within the hosts properly.
When I execute it via command line, it works fine:
root@nagios:/usr/local/nagios/libexec
# ruby ./check_json -h 10.11.12.13 -p 8080 -u /check
Service is running
Not sure what's the issue here. Any help would be appreciated.
We are currently migrating our hosts from 2012.R9 to the latest version of nagios.
We have a bunch of custom checks, and it appears most of them (all of them?) are failing.
example:
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_json, ...) failed. errno is 2: No such file or directory
Even though:
# ls -lah /usr/local/nagios/libexec/check_json
-rwxr-xr-x 1 apache nagios 2,4K Svi 6 2015 /usr/local/nagios/libexec/check_json
In the commands conf we have:
define command {
command_name check_json
command_line $USER1$/check_json -h $HOSTADDRESS$ -p $ARG1$ -u $ARG2$
}
And service is defined within the hosts properly.
When I execute it via command line, it works fine:
root@nagios:/usr/local/nagios/libexec
# ruby ./check_json -h 10.11.12.13 -p 8080 -u /check
Service is running
Not sure what's the issue here. Any help would be appreciated.