I’ve got a script that will send me jabber messages, and I’d like to add it as a notification command. So, in my misccommands.cfg file, i’ve got an entry like so…
‘service-notify-via-jabber’ command definition
command_line /apps/nagios/libexec/send_jabber $CONTACTPAGER$ “** $NOTIFICATIONTYPE$ $OUTPUT$” “** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ : $OUTPUT$”
And I added the command name to my contacts.cfg, like so…
So my basic question is, how do I define my jabber ID for my contact entry, and pass it to the notification command I’ve created? In other words, how can I change $CONTACTPAGER$ to $CONTACTJABBER$ and have that resolve to an entry in my contacts.cfg definition.
Thanks very much for any insight.