sendpage working - what do your commands look like?
Holger Weiss
holger at CIS.FU-Berlin.DE
Mon Feb 5 23:44:55 CET 2007
* Brian Loe <knobdy at gmail.com> [2007-02-05 16:28]:
> On 2/5/07, Holger Weiss <holger at cis.fu-berlin.de> wrote:
> > 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$
> > }
>
> What is the "%b" in the misccommands?
| printf FORMAT [ARGUMENT]...
| [...]
| Print ARGUMENT(s) according to FORMAT.
| [...]
| FORMAT controls the output as in C printf. Interpreted sequences are:
| [...]
| %b ARGUMENT as a string with `\' escapes interpreted, [...]
[ printf(1) ]
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