Page 1 of 1

Update NRDP Plugins

Posted: Wed Jan 31, 2018 8:27 pm
by yosh
Hi All,

I have setup Nagios NRDS to monitor my client servers.
Also both "UPDATE_CONFIG" & "UPDATE_PLUGINS" configs are enabled too.
Capture.JPG
Now I assume:
  1. If I change the main NRDS config file in my Nagios Server it will automatically get updated in my remote client servers as well. (In the next run)
  2. If I add a new check to the main config file in the nagios server it will be updated in the remote client servers' config file and get the plugin relevant to the new check gets downloaded to the clients servers as well.
Please make me correct if Im wrong in above assumptions.

Now my question is, once a plugin was downloaded to the client server how can I push the updated versions of the same plugin to the client servers ?

For instance:

My Nagios server has pushed "check_procs" (nagios-plugins 1.4.13) to the remote client servers.
Now I want to update those plugins with its (nagios-plugins 2.0.3) version.

If I replace the "check_procs" plugin with its newer version in Nagios server will it get automatically pushed to the client servers ? Or should I copy the newer version of the plugin to the client servers manually ?

Re: Update NRDP Plugins

Posted: Thu Feb 01, 2018 1:37 pm
by dwhitfield
yosh wrote: Or should I copy the newer version of the plugin to the client servers manually ?
This is probably the best option, but it really depends on what you mean by manually. You could use chef/puppet/salt/ansible/whatever to do this outside of XI.

UPDATE: Looks like there was a bug, so you may need to update your client to get the push to work.

Re: Update NRDP Plugins

Posted: Thu Feb 01, 2018 6:54 pm
by yosh
Thanks @dwhitfield

What did you mean by:
dwhitfield wrote:UPDATE: Looks like there was a bug, so you may need to update your client to get the push to work.
Did you mean if I update the client will it be able to pull the newer versions of the plugins from the Nagios Server ?

I got the latest versions of Nagios plugins downloaded from https://www.nagios.org/downloads/nagios-plugins/
Could you please guide me how can I get only the "check_procs" plugin compiled for my client server ?

Im not sure whether is there any "check_procs" plugin available to return the number of processes as perf data.

Re: Update NRDP Plugins

Posted: Fri Feb 02, 2018 1:41 am
by tacolover101
i thought check_procs returned perfdata by default, but if not - that would make a great feature request. it is available in the nagios-plugins package, and you should be able to push it out with NRDP.

http://nagios-plugins.org/doc/man/check_procs.html

you could also modify a simple bash script to accomplish it, by modifying logic here: https://github.com/rcknag/nagios-plugin ... netstat.sh

Re: Update NRDP Plugins

Posted: Fri Feb 02, 2018 10:17 am
by dwhitfield
yosh wrote:
Did you mean if I update the client will it be able to pull the newer versions of the plugins from the Nagios Server ?
You should be able to. I'm not seeing where this was fixed in https://github.com/NagiosEnterprises/nr ... HANGES.rst but I am told it was fixed.

yosh wrote: Could you please guide me how can I get only the "check_procs" plugin compiled for my client server ?

Im not sure whether is there any "check_procs" plugin available to return the number of processes as perf data.
I'll leave @tacolover101's comment addressing this, but you should open new threads for new issues.

Re: Update NRDP Plugins

Posted: Mon Feb 05, 2018 11:22 pm
by yosh
Thanks @tacolover101 and @dwhitfield.

The check_procs plugin in new plugins package has the capability to return perf data.
I managed to compile the plugin and push it to the clients.

Thanks again for your help..!

Re: Update NRDP Plugins

Posted: Tue Feb 06, 2018 11:36 am
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: Update NRDP Plugins

Posted: Tue Feb 06, 2018 6:39 pm
by yosh
We are good to close the thread. Thanks @dwhitfield