![]() |
![]() |
Subject: | In Zenoss 5, How and where do I place custom nagios command scripts. |
Author: | [Not Specified] |
Posted: | 2015-08-28 13:11 |
Hello,
I followed this document:
http://wiki.zenoss.org/Working_With_Nagios_Plugins
to setup my own nagios plugin. I assumed I should place the plugin in:
/usr/lib64/nagios/plugins/
I am assuming I need to place this custom script within the zencommand docker image so I connected:
serviced service attach zencommand
and placed it in the appropriate location. I am able to execute the plugin from the command line but when I try to test it within zenoss 5 I am getting the following error:
Preparing Command...
Executing command
/usr/lib64/nagios/plugins/mycustomplugin.sh
against testdevicename
/bin/sh: /usr/lib64/nagios/plugins/mycustomplugin: No such file or directory
DONE in 0 seconds
It can't find it. Is this because I am not in the correct image
Subject: | 5.x needs to be done a bit |
Author: | Andrew Kirch |
Posted: | 2015-08-31 12:45 |
5.x needs to be done a bit differently. Create a ZenPack. Stick all your Nagios scripts in the libexec folder, and you can call them from inside the UI. Here's an example: https://github.com/trelane/ZenPacks.trelane.Postfix
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
< |
Previous VPN |
Next zenhub.log error |
> |