Page 1 of 1

Plugin error

Posted: Tue Apr 18, 2017 1:51 am
by justine
Hi! I have added new plugin in our NagiosXI server.
Plugin Name is check_bgp_neighbors.sh.
I have added this in /usr/local/nagios/libexec/
Rights given rwxrwxr-x for root.
This is the command I used "$USER1$/check_bgp_neighbors -H $HOSTADDRESS$ -C $USER3$ -n $ARG1$ -n $ARG2$".
But I got this error "(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_bgp_neighbors, ...) failed. errno is 2: No such file or directory" after adding it in services.
Please help.

Re: Plugin error

Posted: Tue Apr 18, 2017 11:20 am
by mcapra
Can you show us your command definition for check_bgp_neighbors?

Also, are you sure this is the full path to the plugin: /usr/local/nagios/libexec/check_bgp_neighbors? I noticed in your original post, you referred to it as check_bgp_neighbors.sh but your execution of that plugin seems to exclude the .sh.