wiki:programme:icinga2:pushover

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
wiki:programme:icinga2:pushover [2018/01/19 21:37] wikiadminwiki:programme:icinga2:pushover [2018/01/22 16:10] wikiadmin
Zeile 1: Zeile 1:
-====== icinga-meldung via Pushover ======+====== icinga2 Meldung via Pushover ======
  
 +===== Vorarbeiten: =====
 +
 +  * Anmeldung bei Pushover
 +  * Device registrieren (7 Tage kostenlos, danach 4,..€ je Platform)
 +  * erstellung eines Application/API Token
 +
 +===== Scripte =====
 +
 +Die Scripte können 1zu1 kopiert und eingefügt werden. \\
 +Bei der Ausarbeitung habe ich versucht, so nahe wie möglich an der Konfiguration für die Email-Benachrichtigung zu bleiben. \\
 +Grund: Man kann die Unterschiede zum Original besser sehen und weitere Notifications für andere Dienste (SMS, Pushbullet, Signal, Telegram, ...) erstellen
  
 <file bash /etc/icinga2/scripts/pushover-service.sh> <file bash /etc/icinga2/scripts/pushover-service.sh>
Zeile 341: Zeile 352:
 </file> </file>
  
 +<file bash /etc/icinga2/conf.d/notifications/pushover.conf>
 +apply Notification "pushover-icingaadmin" to Host {
 +  import "pushover-host-notification"
 +
 +  user_groups = host.vars.notification.pushover.groups
 +  users = host.vars.notification.pushover.users
 +
 +  assign where host.vars.notification.pushover
 +  interval = 0 // disable re-notification 
 +}
 +
 +
 +apply Notification "pushover-icingaadmin" to Service {
 +  import "pushover-service-notification"
 +
 +  user_groups = host.vars.notification.pushover.groups
 +  users = host.vars.notification.pushover.users
 +
 +  assign where host.vars.notification.pushover
 +  interval = 0 // disable re-notification 
 +}
 +
 +</file>
  
 <file bash /etc/icinga2/conf.d/users/alle.conf> <file bash /etc/icinga2/conf.d/users/alle.conf>
  • wiki/programme/icinga2/pushover.txt
  • Zuletzt geändert: 2020/01/16 10:58
  • von wikiadmin