8/25/10

Preformance data via submit check result NSCA

Trick to having pref data send via nsca is to include a | delimiter right after $SERVICEOUTPUT$.

define command{
command_name submit_check_result
command_line /opt/nagios/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$|$SERVICEPERFDATA$'
}

This is of course assuming you already have preformance data.

7/30/10

Enable Nagios Serivce Acknowledgement Comments in Emails

If you would like to see acknowledgment comments in the Nagios email alerts that get sent so other admins do not need to login to view the comment.

edit your notification command cfg file and find this line: notify-service-by-email

Right after $SERVICEOUTPUT$\n\n append

"Notes: $SERVICEACKCOMMENT$"

Thats it, reload nagios and your done.

http://nagios.sourceforge.net/docs/2_0/macros.html