Dear Team,
we have created time period template and mapped the template to all host and services while configuring components itself.
but now we need to set different time periods for different Hosts & Services, pls confirm is there any way for achieving the same instead of manually creating templates for all the hosts & services and then mapping. as we need to change the time period for around 3000 hosts & services.
Pls confirm the feasblity through script.
Regards
Time Period Template
Re: Time Period Template
To answer the last part of your post, this could certainly be scripted easily. The problem is that at some point you will still need to manually tell Nagios which hosts and services should have which time period. You can do this via hostgroups and servicegroups, or you can individually apply the template on a case-by-case basis. There really is no way around this unless you have a very rigid naming scheme and can regex all your configs into different buckets based on name.
Former Nagios employee
-
wiproltdwiv
- Posts: 281
- Joined: Sat Sep 08, 2012 12:52 am
Re: Time Period Template
Dear Team,
We are monitoring 3000 network devices (Hosts&services) in 3000 branches, we've created single time period template (7AM-11PM) and mapped to all 3000 hosts&services during configuration.
for increasing the availablity of hosts we need to monitor those 3000 devices during different time periods.
pls help us with the way to achieve the same.
also Please confirm the way to do it through script where the configuration dependency files and parameters to be edited.
regards,
We are monitoring 3000 network devices (Hosts&services) in 3000 branches, we've created single time period template (7AM-11PM) and mapped to all 3000 hosts&services during configuration.
for increasing the availablity of hosts we need to monitor those 3000 devices during different time periods.
pls help us with the way to achieve the same.
also Please confirm the way to do it through script where the configuration dependency files and parameters to be edited.
regards,
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Time Period Template
please share your timeperiod template. Most likely though, you will need to either take the configurations in /usr/local/nagios/etc/ alter them as needed, add to the ./etc/import/ and finally run the reconfigure nagios script to import them and alter the database and configs correctly.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.