Custom Plugin
Posted: Fri May 03, 2013 2:28 pm
I've created a custom plugin for nagios.
I can run the plugin as the nagios user from the command line.
Output of ls -l
-rwxr-xr-x 1 nagios nagios 2137 May 3 13:11 check_verify_count.pl
When I added the plugin as a command it runs from the command page and returns output. The plugin does call a windows mount that is mounted with nagios user and group.
When I added the command to a service check the output is blank and the service check returns. "(Return code of 127 is out of bounds - plugin may be missing)"
What have I done wrong here?
I can run the plugin as the nagios user from the command line.
Output of ls -l
-rwxr-xr-x 1 nagios nagios 2137 May 3 13:11 check_verify_count.pl
When I added the plugin as a command it runs from the command page and returns output. The plugin does call a windows mount that is mounted with nagios user and group.
When I added the command to a service check the output is blank and the service check returns. "(Return code of 127 is out of bounds - plugin may be missing)"
What have I done wrong here?