<div>Using Nagios3 on Debian 5.0.7, hoping to disable notifications for a couple of hosts which experience downtime (or, poor response times from my monitoring host) during morning backups.</div><meta charset="utf-8"><div>
<br></div><div>Have created a timeperiod to black out the backup period, and set the notification_period on the relevant host entries. But still receiving service alerts on the host's services.</div><div><br></div><div>
<meta charset="utf-8">Is there a way to override the service notification period by setting it in the hosts entries? (this is what I expected to do, but it seems the service takes precedence)</div><div>Is it required to configure a separate service (eg: http, http-except-backups; smtp, smtp-except-backups) for the services?</div>
<div>Should this service extend the existing http service with "use"?</div><div><br></div><div>Suggestions on better ways to handle this welcome too - permitting slower response times during the backup periods would be a good solution, as we'd still get notified if the server *actually* fell over.</div>
<div><br></div><div>Hopefully these excerpts give all the relevant details of what I'm trying - have left out anything which is stock (eg generic-host config which is unchanged from OS default, 24x7 definitions etc). Aim is to receive notifications for bar 24x7 and foo only during silent_backups.</div>
<div><br></div><div>Thanks!</div><div><br></div><div># /etc/nagios3/conf.d/timeperiods_nagios2.cfg contains this</div><div>define timeperiod {</div><div><div><span class="Apple-tab-span" style="white-space:pre">       </span>timeperiod_name silent_backups</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>alias<span class="Apple-tab-span" style="white-space:pre">               </span>24x7 with exclusion for daily backups</div><div>        sunday          00:00-05:30,07:00-24:00</div>
<div>        monday          00:00-05:30,07:00-24:00</div><div>        tuesday         00:00-05:30,07:00-24:00</div><div>        wednesday       00:00-05:30,07:00-24:00</div><div>        thursday        00:00-05:30,07:00-24:00</div>
<div>        friday          00:00-05:30,07:00-24:00</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>saturday<span class="Apple-tab-span" style="white-space:pre">    </span>00:00-05:30,07:00-24:00</div>
<div>}</div></div><div><br></div><div><div># /etc/nagios3/conf.d/hosts.cfg contains this</div><meta charset="utf-8"><div><div>define host {</div><div>  use generic-host;</div><div>  host_name foo;</div><div>  address <a href="http://foo.example.org">foo.example.org</a>;</div>
<div>  check_period silent_backups;</div><div>}</div></div><div>define host {</div><div><div>  use generic-host;</div><div>  host_name bar;</div><div>  address <a href="http://bar.example.org">bar.example.org</a>;</div><div>
  check_period 24x7;</div><div>}</div></div><div><br></div><div># /etc/nagios3/conf.d/services_nagios2.cfg</div></div><div><div>define service {</div><div>        hostgroup_name                  smtp-servers</div><div>        service_description             SMTP</div>
<div> <span class="Apple-tab-span" style="white-space:pre">     </span>check_command                   check_smtp</div><div>        use                             generic-service</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>notification_interval           0 ; set > 0 if you want to be renotified</div>
<div>}</div></div><div><div>define service {</div><div>        hostgroup_name                  http-servers</div><div>        service_description             HTTP</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>check_command                   check_http</div>
<div>        use                             generic-service</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>notification_interval           0 ; set > 0 if you want to be renotified</div><div>}</div>
</div><div><br></div><div># /etc/nagios3/conf.d/hostgroups_nagios2.cfg</div><div><div># A list of your web servers</div><div>define hostgroup {</div><div>        hostgroup_name  http-servers</div><meta charset="utf-8"><div>
        alias           HTTP servers</div><meta charset="utf-8"><div>        members         foo, bar</div><div>}</div></div><div><div>define hostgroup {</div><div>        hostgroup_name  smtp-servers</div><meta charset="utf-8"><div>
        alias           SMTP servers</div><meta charset="utf-8"><div>        members         foo, bar</div><div>}</div></div><div><br></div><div><br></div>