DowntimeStart, DowntimeEnd Notifications

This forum was archived to /woltlab and is now in read-only mode.
  • Greetings,



    I am new to Icinga2 and I can't find a solution for my problem.



    In my school-project I have to improve the Icinga2 System. One of my task
    is to setup Downtimes because of maintenance work at night. The admins and
    my teacher are always getting notifications during that time. So I created
    a new ScheduledDowntime in the downtimes.conf. But now I have the problem
    that Icinga2 is always sending Downtimestart und Downtimeend-Notifications
    which is much worse.



    donwtimes.conf



    To assing every host to this downtime I created a new variable wartung_downtime
    for the templates "generic-host" and "generic-service" in template.conf.



    template.conf



    I also tried to edit the templates "mail-host-notification" and
    "mail-service-notification". I deleted from types: DowntimeStart, DowntimeEnd.
    But this did'nt solve the problem.



    System informations:
    icinga2: r2.5.4-1
    ubuntu: Ubuntu 14.04.5 LTS



    I would be very grateful for any help,
    lisa

  • hey lisa,

    could you provide us with your notification templates?

    The best way would be to modify those, so that they do not send a mail

    Linux is dead, long live Linux


    Remember to NEVER EVER use git repositories in a productive environment if you CAN NOT control them

  • Thank you for your replies!


    Here are the Notification Templates:


    "mail-host-notification"

    Code
    1. template Notification "mail-host-notification" {
    2.     command = "mail-host-notification"
    3.   states = [ Up, Down ]
    4.     types = [ Problem, Acknowledgement, Recovery, Custom,
    5.             FlappingStart, FlappingEnd, DowntimeRemoved ]
    6.   period = "24x7"
    7.     interval = 0
    8. }

    "mail-service-notificatin"

    Code
    1. template Notification "mail-service-notification" {
    2.     command = "mail-service-notification"
    3.   states = [ OK, Warning, Critical, Unknown ]
    4.     types = [ Problem, Acknowledgement, Recovery, Custom,
    5.             FlappingStart, FlappingEnd, DowntimeRemoved ]
    6.   period = "24x7"
    7.     interval = 0
    8. }

    As I already mentioned, I removed from types DowntimeStart and DowntimeEnd. I also set interval=0 because I only want be

    notified once when a problem occurs.




    I will also try to update my icinga2-system from r2.5.4-1 to 2.6.0