how to get the current temp in a warning message sent

Randy Paries rtparies at gmail.com
Mon Nov 19 23:50:01 CET 2007


Andreas
changing $OUTPUT$ to $SERVICEOUTPUT$ worked!!
thanks

currently it is set to Date/Time: $DATETIME
and this always is blank
Thanks



On Nov 19, 2007 3:46 PM, Andreas Ericsson <ae at op5.se> wrote:
>
> Randy Paries wrote:
> > Hello,
> > I have the following service:
> > ====================================================
> > define service{
> >         use                                generic-service
> >         host_name                      bart
> >         service_description           Probe #1 Temperature
> >         is_volatile                        0
> >         check_period                   24x7
> >         max_check_attempts       2
> >         normal_check_interval      5
> >         retry_check_interval         1
> >         contact_groups                all_admins
> >         notification_interval           120
> >         notification_period             24x7
> >         notification_options           w,u,c,r
> >         check_command              check_temptraxf!/dev/ttyS0!1!74!78
> >         }
> > ====================================================
> >
> > when i get a warning i get the message below. Is there a way to
> > include the current temp in the warning?
> > thanks for any help
> >
> > ====================================================
> > ***** Nagios  *****
> >
> > Notification Type: PROBLEM
> >
> > Service: Probe #1 Temperature
> > Host: Bart #1
> > Address: 192.168.0.214
> > State: WARNING
> >
> > Date/Time: $
> >
> > Additional Info:
> >
> > $
> > ====================================================
> >
>
> You're using the wrong macros. Try changing $OUTPUT$ to $SERVICEOUTPUT$ in
> your service notification macro. I don't know which one you want for
> date/time, but a glance at the documentation will tell you.
>
> --
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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