Fine tuning templates and charting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Fine tuning templates and charting

Post 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?
Last edited by cwscribner on Tue Feb 07, 2012 5:13 pm, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Fine tuning templates and charting

Post by scottwilkerson »

This may also work, to solve your desire.

Which graph template did you change?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Re: Fine tuning templates and charting

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Fine tuning templates and charting

Post by scottwilkerson »

I think you may need to change the default.php for all checks that don't fall under a customized template.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Re: Fine tuning templates and charting

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Fine tuning templates and charting

Post 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.)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Re: Fine tuning templates and charting

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Fine tuning templates and charting

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Re: Fine tuning templates and charting

Post 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)?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Fine tuning templates and charting

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart