Icinga2

Icinga2 Snippets

Icinga2 Check Kommando via CLI holen:

eval $(/usr/sbin/icinga2 console --connect https://console:geheim@localhost:5665/ --eval 'get_service("icinga.ovtec.it", "Icinga Web 2").last_check_result.command' | sed -e "s/,/ /g;s/\"/\'/g;s/\[//;s/\]//;")