Sending Notes and notes url in emails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending Notes and notes url in emails

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Re: Sending Notes and notes url in emails

Post 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$
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Re: Sending Notes and notes url in emails

Post by jenstar13 »

I also installed the Object Notes component , would the macro for that to use be $OBJECTNOTES$ ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending Notes and notes url in emails

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Re: Sending Notes and notes url in emails

Post by jenstar13 »

ok you can lock this, thank you for your help
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending Notes and notes url in emails

Post by scottwilkerson »

jenstar13 wrote:ok you can lock this, thank you for your help
great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked