Hello,
I would like to monitor a service during all day, but when we are out
of business hours wait some time before sending alert.
In the following configuration, I use these:
- P_NBH macro defines normal business hours
- P_OBH macro defines out of business hours
- P_ALWAYS macro defines everytime
As a new user of mon, I see two possibilities:
1) declare explicitely periods:
watch my-hostgroup
service my-service
interval 5m
monitor my-monitor
period nbh: P_NBH
no_comp_alerts
upalert my-alert
alert my-alert
period obh: P_OBH
no_comp_alerts
upalert my-alert
alert my-alert
alertafter 20m
2) declare one "always" period, and another "obh" only for the
alertafter option:
watch my-hostgroup
service my-service
interval 5m
monitor my-monitor
period always: P_ALWAYS
no_comp_alerts
upalert my-alert
alert my-alert
period obh: P_OBH
alertafter 20m
Which one 1) or 2) is the good option ?
Thanks,
--
Nicolas
_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon