question about notifications

Parish, Brent bparish at cognex.com
Wed Aug 11 16:42:27 CEST 2010


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:jbrooks at oddelement.com] 
Sent: Monday, August 09, 2010 1:31 PM
To: nagios-users at lists.sourceforge.net
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100811/cc9077fa/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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 
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list