InstallationGetting Started

Expand all | Collapse all

install additional nagios plugins

  • 1.  install additional nagios plugins

    Posted 05-16-2019 09:42 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?

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


  • 2.  RE: install additional nagios plugins

    Posted 06-18-2019 09:12 AM
    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
    ------------------------------



  • 3.  RE: install additional nagios plugins

    Posted 06-19-2019 03:43 AM

    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
    ------------------------------



  • 4.  RE: install additional nagios plugins

    Posted 07-12-2019 09:34 AM
    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
    ------------------------------