TECHZEN Zenoss User Community ARCHIVE  

install additional nagios plugins

Subject: install additional nagios plugins
Author: Edward Grau
Posted: 2019-05-16 10:42

I've been trying to and additional nagios plugins to zenoss.  However after install the when I trigger a command event test, the feedback is :

/bin/sh: /usr/lib64/nagios/plugins/check_nrpe: No such file or directory

This is the process I used to add the check_nrpe plugin:
serviced service shell -i zope bash
yum install epel-release -y  (install succeeds)
yum install nagios-plugins-nrpe -y (install succeeds)

ls -al /usr/lib64/nagios/plugins/check_nrpe
-rwxr-xr-x 1 root root 66328 Jul 21 2017 /usr/lib64/nagios/plugins/check_nrpe

I exit the shell and do test with a "COMMAND" local template
/usr/lib64/nagios/plugins/check_nrpe -H ${dev/id} -c check_base_log

When I go back to the zope shell, epel-release repo and check_nrpe nagios plugin are no longer present.  

How do I commit the changes?

------------------------------
Edward Grau
Infrastructure Eng.
Bridge2 Solutions
Alpharetta GA
6788317849
------------------------------


Subject: RE: install additional nagios plugins
Author: Jay Stanley
Posted: 2019-06-18 10:12

https://support.zenoss.com/hc/en-us/articles/207610516-How-to-add-tools-or-scripts-into-a-Resource-Manager-5-x-Docker-Container

I advise containing any scripts or apps or anything within a ZenPack. Patching in files using the above method will usually get wiped when you upgrade.

------------------------------
jstanley
------------------------------


Subject: RE: install additional nagios plugins
Author: Chris De Coster
Posted: 2019-06-19 04:43


I've read this on several places: "I advise containing any scripts or apps or anything within a ZenPack"
Is there somewhere a tutorial how to create a basic zenpack to just add some files/scrips/.. ?

I have the bad experience that when I add ssh keys to zenmodeler container it works for some time, but then suddenly it disappears.
Zenos support keeps telling to use this : https://support.zenoss.com/hc/en-us/articles/207610516-How-to-add-tools-or-scripts-into-a-Resource-Manager-5-x-Docker-Container   but is is not a stable solution, as the changes can disappear.


------------------------------
Chris
------------------------------


Subject: RE: install additional nagios plugins
Author: Jay Stanley
Posted: 2019-07-12 10:34

ZenPackLib documentation for creating a ZenPack.
https://zenpack-sdk.zenoss.com/


You could contain ssh keys in your zenpacks and then point the zProp to that directory/key. Or you could add a mount to the containers and keep your keys in there.

See for the mount point:
https://zenpack-sdk.zenoss.com/en/latest/development-environment.html#mount-z-into-all-containers

------------------------------
jstanley
------------------------------


< Previous
Zenoss Core Releases
  Next
snmpv3 - security level
>