* Brian Loe <[EMAIL PROTECTED]> [2007-02-05 16:28]:
> On 2/5/07, Holger Weiss <[EMAIL PROTECTED]> 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
[email protected]
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