Hi Joel.
As everyone else has already said, the best way appears to be within the agent, not the notification. I found this useful for disk checks, where the thresholds in my environment often vary from machine to machine, depending on how large the disks are, likely fill rate, etc. I wrote an SNMP disk check that puts the threshold in the email alerts: DISK WARNING - [Threshold=90%, 91% full,4.9gb free on /home] and also the Nagios status page: http://exchange.nagios.org/directory/image/429 The bottom image is the HTML version (can toggle in the agent) that includes the tiny blue image. Mouse over that and the threshold pops up in a comment tag. HTH Brent From: Joel Brooks [mailto:[email protected]] Sent: Monday, August 09, 2010 1:31 PM To: [email protected] Subject: [Nagios-users] question about notifications hey all, is there a way to include the WARNING and CRITICAL thresholds in a notification (without including the perfdata)? There doesn't seem to be a macro for this. i.e., i'd like my notification to show something like: <body of email notification> $SERVICEDESC$ is in $SERVICESTATE$ condition. $SERVICEOUTPUT$ Current: $SERVICEVAL$ (Warning: $SERVICEWARNING$, Critical: $SERVICECRITICAL$) is there a way to do something like that? cheers, J
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
