Hello list,
How can I access Nagios variables like $NOTIFICATIONTYPE$, $SHORTDATETIME$,
etc from a text file passed in a command?
I have one command which is:
/usr/local/bin/sendEmail -o message-file=/etc/nagios/message.txt ... bla
bla bla
And inside message.txt I have those variables. However when I am notified,
I am not getting variable's values, instead, it gives me the plain
string "$NOTIFICATIONTYPE$",
etc.
Googling didn't help too much.
Thanks for all help on this!
Best regards,
Bruno
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null