Hi, We have a setup with a icinga2 server which sends notifications if the state of a service or a host changes.
How do we force it to send a notification each 5 or 10 minutes even if the
state has not changed? So even if the state is OK each 5 minutes a notification
is generated.
The config is:
notifications.conf
==================
apply Notification "ncsa-eudatcmon" to Service {
import "ncsa-service-notification"
user_groups = [ "icingaadmins" ]
assign where "eudat-cmon" in host.groups && (service.vars.eudat_cmon ==
"true")
}
templates.conf
==============
template Notification "ncsa-service-notification" {
command = "ncsa-service-notification"
states = [ OK, Warning, Critical, Unknown ]
types = [ Problem, Acknowledgement, Recovery, Custom,
FlappingStart, FlappingEnd,
DowntimeStart, DowntimeEnd, DowntimeRemoved ]
period = "24x7"
}
commands.conf
=============
object NotificationCommand "ncsa-service-notification" {
import "plugin-notification-command"
command = [ SysconfDir + "/icinga2/scripts/ncsa-service-handler.sh" ]
env = {
NOTIFICATIONTYPE = "$notification.type$"
SERVICEDESC = "$service.name$"
HOSTALIAS = "$host.vars.fullname$"
HOSTADDRESS = "$address$"
SERVICESTATE = "$service.state$"
LONGDATETIME = "$icinga.long_date_time$"
SERVICEOUTPUT = "$service.output$"
NOTIFICATIONAUTHORNAME = "$notification.author$"
NOTIFICATIONCOMMENT = "$notification.comment$"
HOSTDISPLAYNAME = "$host.display_name$"
SERVICEDISPLAYNAME = "$service.display_name$"
USEREMAIL = "$user.email$"
}
}
Greetings,
Robert Verkerk
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
