Page 3 of 3

Re: Sending Notes and notes url in emails

Posted: Tue May 14, 2019 9:34 am
by scottwilkerson
Yes, they need to use the xi_host_notification_handler and xi_service_notification_handler notification handlers to use the templates in XI.

If you use different notification handlers, you would need to edit those notification commands instead.

You can have more than one notification handler specified, but realize that each contact is going to receive an email for each of them.

Re: Sending Notes and notes url in emails

Posted: Tue May 14, 2019 9:58 am
by jenstar13
Ok great, by the way, i used a form of the way we did it in core 3 before we got XI to make it work for the service and hosts notes and urls

there's notes url but the field showed up in the emails
Service Notes: test message
Service Notes URL:http://jennytest.gspt.net

/usr/bin/printf "%b" "***** Prdnagxi01 Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nService Notes: $SERVICENOTES$\n\nService Notes URL:$SERVICENOTESURL$" | /bin/mail -s "** $NOTIFICATIONTYPE$ LVSPRD Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$

Re: Sending Notes and notes url in emails

Posted: Tue May 14, 2019 10:16 am
by jenstar13
I also installed the Object Notes component , would the macro for that to use be $OBJECTNOTES$ ?

Re: Sending Notes and notes url in emails

Posted: Tue May 14, 2019 11:14 am
by scottwilkerson
jenstar13 wrote:I also installed the Object Notes component , would the macro for that to use be $OBJECTNOTES$ ?
Unfortunately there is not a way for pull the notes from the Object Notes component into an email.

Re: Sending Notes and notes url in emails

Posted: Tue May 14, 2019 11:55 am
by jenstar13
ok you can lock this, thank you for your help

Re: Sending Notes and notes url in emails

Posted: Tue May 14, 2019 1:11 pm
by scottwilkerson
jenstar13 wrote:ok you can lock this, thank you for your help
great!

Locking thread