Configuration & Administration

Expand all | Collapse all

install additional nagios plugins

  • 1.  install additional nagios plugins

    Posted 05-16-2019 09:42 AM
    Edited by Edward Grau 05-16-2019 09:43 AM
    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
    ------------------------------


  • 2.  RE: install additional nagios plugins

    Posted 05-16-2019 01:28 PM
    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
    ------------------------------



  • 3.  RE: install additional nagios plugins

    Posted 30 days ago
    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
    ------------------------------



  • 4.  RE: install additional nagios plugins

    Posted 29 days ago
    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
    ------------------------------



  • 5.  RE: install additional nagios plugins

    Posted 29 days ago
    Hi Edward

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

    Regards
    Arthur






  • 6.  RE: install additional nagios plugins

    Posted 29 days ago
    Zenoss.core  (open source)

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



  • 7.  RE: install additional nagios plugins

    Posted 27 days ago
    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
    ------------------------------



  • 8.  RE: install additional nagios plugins

    Posted 27 days ago
    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
    ------------------------------