On Mar 26, 2009, at 4:52 PM, g3vt wrote: > We're working on a customized check for our website, and whenever > there's an error on a page, we return a transaction ID. Does > anybody have any experience returning a non-numeric "performance > data" from a nagios style check? I'd like to get the transaction > number into the alert email, or even the details for the alert, but > I haven't been able to figure out a way to trigger on a threshold > and then pass that id from the output of the check to the event > handler system. > > We're trying to avoid using a wrapper script as this would double > the number of system calls for the check.
If you're using the Nagios style output format for your check, you can simply stick the transaction ID before the pipe (|). If the check returns a 1 or 2 exit code, the text before the pipe will be put into the event's summary and message fields. Both of these are available in the default alert email message. Example output on a successful check (exit with code 0): OK|dp1=123 dp2=978 Example output on a failed check (exit with code 1): transaction TID### failed|dpt1=0 dp2=0 Even if you're not returning any performance data from your command you should terminate the line with a pipe to make sure the Nagios parser knows what to do. _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
