Free Variables not displaying in service alert messages
Posted: Tue Jan 29, 2019 11:42 am
Hello,
I'm trying to accomplish something very simple: in our emailed service alerts, I want to add a link to our knowledgebase.
I followed the instructions for setting up custom service macros in this document: https://assets.nagios.com/downloads/nag ... iables.pdf
I have the following definitions:
In the service itself, I have a Free Variable defined as _kblink
In the xi_service_notification_handler, I've added --kb_link="$_SERVICEkblink$"
Then, in the notification message for the user, I've added "KB link: %kb_link%"
I believe this is set up correctly. However, when the alert fires, in the email message, I see:
"KB Link:$" -- the dreaded missing variable!
Our version of Nagios XI is 5.5.4
Any suggestions on what I'm doing wrong?
-- Mike Beebe
I'm trying to accomplish something very simple: in our emailed service alerts, I want to add a link to our knowledgebase.
I followed the instructions for setting up custom service macros in this document: https://assets.nagios.com/downloads/nag ... iables.pdf
I have the following definitions:
In the service itself, I have a Free Variable defined as _kblink
In the xi_service_notification_handler, I've added --kb_link="$_SERVICEkblink$"
Then, in the notification message for the user, I've added "KB link: %kb_link%"
I believe this is set up correctly. However, when the alert fires, in the email message, I see:
"KB Link:$" -- the dreaded missing variable!
Our version of Nagios XI is 5.5.4
Any suggestions on what I'm doing wrong?
-- Mike Beebe