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?
Fine tuning templates and charting
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Fine tuning templates and charting
Last edited by cwscribner on Tue Feb 07, 2012 5:13 pm, edited 1 time in total.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Fine tuning templates and charting
This may also work, to solve your desire.
Which graph template did you change?
Which graph template did you change?
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Fine tuning templates and charting
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Fine tuning templates and charting
I think you may need to change the default.php for all checks that don't fall under a customized template.
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Fine tuning templates and charting
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?
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?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Fine tuning templates and charting
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.)
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.)
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Fine tuning templates and charting
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.
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?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Fine tuning templates and charting
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.
Configure Tab -> Re-configure this host -> Monitoring Tab
Monitor the host every ___ minutes.
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Fine tuning templates and charting
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)?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Fine tuning templates and charting
If you want to do ALL of the host and services you could follow these instructions
http://support.nagios.com/forum/viewtop ... 756#p19756
http://support.nagios.com/forum/viewtop ... 756#p19756