JasonRivers / Docker-Nagios

Docker image for Nagios
MIT License
231 stars 252 forks source link

ENVs are not populated using notify_by_xmpp #144

Open lukewarms opened 1 year ago

lukewarms commented 1 year ago

Hi Jason, I am trying to use the notify_by_xmpp script to send alerts but none of these ENVs get populated just from a host down alert:

$xmpp_text = "$ENV{NAGIOS_NOTIFICATIONTYPE}: $ENV{NAGIOS_HOSTNAME} is $ENV{NAGIOS_HOSTSTATE}: $ENV{NAGIOS_HOSTOUTPUT} ($ENV{NAGIOS_SHORTDATETIME})";

All i get on my XMPP client is : is : () Any ideas? Nice work btw