Hi there,

We have a server that checks backups to ensure they are valid. The process
runs every Tuesday and Thursday from 11:00 till around 21:00.

Normally load on the server is low so we set the load monitoring
accordingly, but during validation the load spikes.

To mitigate the notifications I put downtime in place :

apply ScheduledDowntime "vldb-valid" to Service {
  author = "operations"
  comment = "Scheduled downtime for verilend backup validation"

  ranges = {
    monday = "11:00-21:00"
    //tuesday = "00:00-11:00"
    thursday = "11:00-21:00"
    //friday = "00:00-11:00"
  }

  assign where host.name ==  "prd-qua-uk-vldbvalid.domain.com" &&
match("load", service.name)
}

>From what I can see this is valid and should work.

The problem is the monday range is not applied. On  Mondays the load spikes
and I get notifications.

The objects looks fine as well:

Object 'prd-qua-uk-vldbvalid.domain.com!load!vldb-valid' of type
'ScheduledDowntime':
  % declared in '/etc/icinga2/conf.d/downtimes.conf', lines 22:1-22:47
  * __name = "prd-qua-uk-vldbvalid.domain.com!load!vldb-valid"
  * author = "operations"
    % = modified in '/etc/icinga2/conf.d/downtimes.conf', lines 23:3-23:23
  * comment = "Scheduled downtime for verilend backup validation"
    % = modified in '/etc/icinga2/conf.d/downtimes.conf', lines 24:3-24:63
  * duration = 0
  * fixed = true
  * host_name = "prd-qua-uk-vldbvalid.domain.com"
    % = modified in '/etc/icinga2/conf.d/downtimes.conf', lines 22:1-22:47
  * name = "vldb-valid"
  * ranges
    % = modified in '/etc/icinga2/conf.d/downtimes.conf', lines 26:3-31:3
    * monday = "11:00-21:00"
    * thursday = "11:00-21:00"
  * service_name = "load"
    % = modified in '/etc/icinga2/conf.d/downtimes.conf', lines 22:1-22:47
  * templates = [ "vldb-valid" ]
    % = modified in '/etc/icinga2/conf.d/downtimes.conf', lines 22:1-22:47
  * type = "ScheduledDowntime"
  * vars = null
  * zone = "prd-qua-uk-vldbvalid.domain.com"
    % = modified in '/etc/icinga2/conf.d/downtimes.conf', lines 22:1-22:47

Can anybody see what I might be missing ?

Regards
Henti

-- 
--
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to