Managing different frequencies for plugins

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rakesh514
Posts: 8
Joined: Fri Mar 08, 2013 6:40 am

Managing different frequencies for plugins

Post by rakesh514 »

Hello! I want some static data (like the IP address of remote machine, memory capacity etc.) to be fetched only when I require them from the nagios web interface along with monitoring dynamic things. I have three nodes in my cluster and I have considered one of them as the monitoring server. I installed check_nrpe and NDOUtil. Now, the plugins are executed very frequently and status.dat files and database are also updated everytime. To fetch the static data I have written small plugins and even these plugins get executed everytime. I want them to just save the data in database at first (once) and not get executed with the dynamic data related plugins. But at the frontend I want to provide an option to actively submit the request to fetch the static details (this time, it should make the related plugins execute and copy the updated information to the database).
How can I achieve this? Please help me! Thank you.


Regards,
Rakesh
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Managing different frequencies for plugins

Post by abrist »

You could set the interval between checks to an astronomical number and just force the checks through the UI with the option "Re-schedule the next check of this service" in the service details.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked