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?

Zenoss 6.2.1 r218
------------------------------
Edward Grau
Infrastructure Eng.
Bridge2 Solutions
Alpharetta GA
6788317849
------------------------------


Subject: RE: install additional nagios plugins
Author: Arthur
Posted: 2019-05-16 14:28

Hi Edward

You have to commit the container after your changes. See section "Semi-Permanent Tool or Script"

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

------------------------------
Arthur
------------------------------


Subject: RE: install additional nagios plugins
Author: Jay Stanley
Posted: 2019-05-20 08:02

I highly recommend adding any scripts to a ZenPack, then installing the ZenPack. This will prevent your changes from being overwritten in the future (upgrades and such)

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

Subject: RE: install additional nagios plugins
Author: Edward Grau
Posted: 2019-05-20 10:55

Using a multinode setup (with delegate hosts), installing in zope shell and commiting is not working.   I had to stop zenoss, remove delegate host and and then install/commit in zope shell.

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


Subject: RE: install additional nagios plugins
Author: Arthur
Posted: 2019-05-20 14:14

Hi Edward
Do you use the core version or do you talk about Zenoss Resource Manager (RM).
Regards
Arthur


Subject: RE: install additional nagios plugins
Author: Edward Grau
Posted: 2019-05-21 09:29

Zenoss.core  (open source)

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


Subject: RE: install additional nagios plugins
Author: Arthur
Posted: 2019-05-22 13:30

OK, unfortunately I thougt you are using RM as I haven't seen any official documentation how to configure it with the Core version. Even not sure if this configuration is supported but great to hear that you got it working.

Cheers
Arthur

------------------------------
Arthur
------------------------------


Subject: RE: install additional nagios plugins
Author: Jay Stanley
Posted: 2019-05-23 10:13

Sounds like your delegate didnt pull the updated containers after commit/restart.

Normally I will do a full stop, check docker, then start up everything. Never seen a container not pull an updated image doing that.

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


< Previous
Zenoss Core 6.2.1-1 JMX not getting any data from servers
  Next
Zenoss runs for a while then quits responding
>