sendpage working - what do your commands look like?

Brian Loe knobdy at gmail.com
Mon Feb 5 23:28:32 CET 2007


What is the "%b" in the misccommands?

On 2/5/07, Holger Weiss <holger at cis.fu-berlin.de> wrote:
> * Brian Loe <knobdy at gmail.com> [2007-02-05 16:07]:
> > What are some of the commands you guys are using for notifications via
> > sendpage? Since I can now page from the command line I'm ready to work
> > on this and since its kind of a well established method I thought I'd
> > avoid re-inventing the wheel like I tried last time.
>
> We used the following command definitions (we don't use Sendpage
> anymore):
>
>  define command {
>   command_name service-notify-by-pager
>   command_line /usr/bin/printf "%b" "$NOTIFICATIONTYPE$: $SERVICEDESC$ $SERVICESTATE$ - $HOSTADDRESS$ - $SERVICEOUTPUT$ - $LONGDATETIME$" | /server/sendpage/bin/snpp $CONTACTPAGER$
>  }
>
>  define command {
>   command_name host-notify-by-pager
>   command_line /usr/bin/printf "%b" "$NOTIFICATIONTYPE$: $HOSTADDRESS$ $HOSTSTATE$ - $HOSTOUTPUT$ - $LONGDATETIME$" | /server/sendpage/bin/snpp $CONTACTPAGER$
>  }
>
> Holger

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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