Page 1 of 1

Fine tuning templates and charting

Posted: Tue Feb 07, 2012 12:01 pm
by cwscribner
Hi all.

This one may be sort of long so bear with me.

Background: I've been trying to recreate charts in Nagios to match a separate software, Xymon. Xymon records data at 5 minute intervals and displays a chart at at 30 minute interval. My assumption was that the network gear that these charts are for (in Nagios) was recording at 5 minute intervals but apparently it was set to 10 so the charts looked quite different.

The fine tuning: Instead of changing all 500 services and devices, I changed the template to grab data ever 5 minutes. Is this the right method for this sort of mass change? Will the change in the template override the 10 minute setting on the individual hosts?

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 2:01 pm
by scottwilkerson
This may also work, to solve your desire.

Which graph template did you change?

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 2:21 pm
by cwscribner
I changed the device template for xiwizard_netdevices (or something close to that). I wanted to globally change the network device polling to happen every 5 minutes to allow for more graph resolution.

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 2:54 pm
by scottwilkerson
I think you may need to change the default.php for all checks that don't fall under a customized template.

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 3:04 pm
by cwscribner
I'm getting a bit confused.

The network devices are individually set to be checked every 10m but I want them to be monitored every 5m. Changing the template associated with them will override the individual changes, correct?

If not, is there a setting to make the templates the "end-all" when determining directives?

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 3:43 pm
by scottwilkerson
Now I'm confused...

The graphing and monitoring are two different things.

If your monitoring is only collecting data every 10 minutes there is no way for the graph to update every 5 minutes (well it will update, but not be the current time.)

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 4:03 pm
by cwscribner
Right, sorry. The question was kind of ambiguous I guess.

Scrap the graphing bit. I just need some input on the monitoring part using the templates.
The network devices are individually set to be checked every 10m but I want them to be monitored every 5m. Changing the template associated with them will override the individual changes, correct?

If not, is there a setting to make the templates the "end-all" when determining directives?

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 4:37 pm
by scottwilkerson
The frequency of monitoring can be set from the host/service detail page
Configure Tab -> Re-configure this host -> Monitoring Tab
Monitor the host every ___ minutes.

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 4:41 pm
by cwscribner
There are too many hosts/services to do that with. How can I do it globally (for all switches and routers and their respective services)?

Re: Fine tuning templates and charting

Posted: Tue Feb 07, 2012 4:48 pm
by scottwilkerson
If you want to do ALL of the host and services you could follow these instructions

http://support.nagios.com/forum/viewtop ... 756#p19756