timeperiod exception
Posted: Wed Apr 06, 2016 4:48 am
Hi all,
I have a "nagios problem" and I don't know what is the easiest solution.
In my nagios we have a lot of monitored servers. each server are simply declared with "define host" . In these host definition, there is an "hostgroups" parameters that define the hostgroup the host belong to.
In these differents hostgroups are defined the services. (the checks)
these check are using a template, which contain a "timeperiod" for 27x7 monitoring.
This is of a great way to monitor all the servers without having to duplicate the "services" (as they are defined one time in the hostgroups)
Now come my pb : recently I needed to add several new servers. But these servers are down/unreachable a few hours every saturday.
So my wish would be to apply a specific downtime "timeperiod" for these servers and checks. These new servers are currently using the same hostgroups as the other host, so the same check, same template, and same timeperiod..
So to apply a timeperiod on all my specific "hosts", I just need to add a "timeperiod" specific parameter in the hosts definition, and this is working fine. But too apply a specific timeperiod to the "services" applied to these specific "host", I don't know how to do it the smartest possible^^, without modifiying the timeperiod of the check of the "normal" hosts (24x7 hosts)
Of course I can duplicate every "service" definition, but this is not a good solution.
But Currently i do'nt see another solution...is there a proper way to have such exception?
thx a lot in advance
I have a "nagios problem" and I don't know what is the easiest solution.
In my nagios we have a lot of monitored servers. each server are simply declared with "define host" . In these host definition, there is an "hostgroups" parameters that define the hostgroup the host belong to.
In these differents hostgroups are defined the services. (the checks)
these check are using a template, which contain a "timeperiod" for 27x7 monitoring.
This is of a great way to monitor all the servers without having to duplicate the "services" (as they are defined one time in the hostgroups)
Now come my pb : recently I needed to add several new servers. But these servers are down/unreachable a few hours every saturday.
So my wish would be to apply a specific downtime "timeperiod" for these servers and checks. These new servers are currently using the same hostgroups as the other host, so the same check, same template, and same timeperiod..
So to apply a timeperiod on all my specific "hosts", I just need to add a "timeperiod" specific parameter in the hosts definition, and this is working fine. But too apply a specific timeperiod to the "services" applied to these specific "host", I don't know how to do it the smartest possible^^, without modifiying the timeperiod of the check of the "normal" hosts (24x7 hosts)
Of course I can duplicate every "service" definition, but this is not a good solution.
But Currently i do'nt see another solution...is there a proper way to have such exception?
thx a lot in advance