#NotificationSystem
🔔 New notification system in action! 🎉 The text looks a bit off right now... but don't worry I'll probably fix it soon! 😅 #GameDev #NotificationSystem #WorkInProgress
#indiegames #MadeWithUnReal
⛏️Beta coming soon! ⛏️u Join us:👉https://cutt.ly/Oe4BAjvo 🚀
April 15, 2025 at 1:12 PM
Blogged: Icinga 2 Notifications manuell testen -#icinga

wp.me/pgR2o-nLJ
Icinga 2 Notifications manuell testen
Bei jeder Installation von Icinga 2 sollte das Notificationsystem getestet werden. Je nach Installation werden verschiedene Gruppen eingerichtet, die abhängig vom Service beachrichtigt werden sollen. Solche Testbenachrichtigungen können in der Oberfläche von Icinga Web 2 erzeugt und losgeschickt werden. Aber dazu muss der jeweilige Host oder Service rausgesucht werden. Diese Aufgabe kann auch eleganter über die REST-API von Icinga 2 angestoßen werden. Ein kleines Skript und schon gehts von der Kommandozeile: #!/bin/bash # unset ftp_proxy unset http_proxy unset https_proxy apiuser="myuser" apipasswd="mypasswd" server="localhost" while getopts h:s: opt do case "$opt" in h) host=$OPTARG ;; s) service=$OPTARG ;; h) Usage exit 1 ;; ?) echo "ERROR: invalid option" >&2 exit 1 ;; esac done shift $((OPTIND - 1)) if [ -n "${service}" ] ; then # Bitte in eine Zeile zusammenfassen curl -k -s -u "${apiuser}:${apipasswd}" -H 'Accept: application/json' -X POST 'https://'${server}':5665/v1/actions/send-custom-notification' -d '{ "type": "Service", "service" : "'${host}"!"${service}'", "author": "icingaadmin", "comment": "This is a testmessage", "force": true }' | python -m json.tool exit fi if [ -n "${host}" ] ; then # Bitte in eine Zeile zusammenfassen curl -k -s -u "${apiuser}:${apipasswd}" -H 'Accept: application/json' -X POST 'https://'${server}':5665/v1/actions/send-custom-notification' -d '{ "type": "Host", "host" : "'${host}'", "author": "icingaadmin", "comment": "This is a testmessage", […]
wp.me
February 25, 2025 at 8:20 PM