sendpage working - what do your commands look like?

Holger Weiss holger at CIS.FU-Berlin.DE
Mon Feb 5 23:16:42 CET 2007


* 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

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE

-------------------------------------------------------------------------
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