Per chet luther (found via google):
You can use the 1/2 exit codes from Nagios plugins to drive the severity 
of the resulting Zenoss event.

The way it works it that if the plugin exits with a code of 1 (WARNING) 
Zenoss will set the severity of the event to whatever you selected for 
severity when you created the data source. If the plugin exits with a 
code of 2 (CRITICAL) Zenoss will use the next highest severity.

So if you choose Warning as the severity in the data source, and the 
plugin exits with a code of 2, the event will actually have a severity 
of Error.

Hope this makes sense!
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



Dieter_be wrote, On 8/3/2009 4:39 AM:
> When I create a datasource for a template and put a nagios command in it  I 
> can select the severity, but is this a "catch all" severity?
> The nagios plugin will return different exit codes (warning/error/unknown 
> states). it seems a bit weird that all these conditions map to only 1 
> severity in zenoss.  If the plugin returns 2 i want this to be critical in 
> Zenoss, but not if it returns 1 or 3.
> 
> The official documentation doesn't say anything about this:
> http://www.zenoss.com/community/docs/howtos/create-modify-nagios-templates
> 
> I also found http://dev.zenoss.org/trac/ticket/5294, which confuses me even 
> more.
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=37552#37552
> 
> -------------------- m2f --------------------
> 
> 
> 
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to