Re: Netsaint-users digest, Vol 1 #1441 - 10 msgs

Kenneth.ray <[email protected]>
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
> I use both     qpage and email to send pages out, once Nagios comes out of beta i'll use the qpage as a escalation for all the services.

like Mr Martin said you have to set up a different command to use it.  but the biggest trick to using qpage is the qpage.cf file. by default this installs in /etc/qpage.cf if you
set up users  and or groups in this file you can page very easily, however the biggest stumbling block i have found is the pagerID  info , this is actually how the service you
are using defines your pager and is unique to your pager. the PIN does not define your pagerID in most cases. What you need to do is call the service you use and explain that
you are setting up a TAPI connection to forward messages to your pager. and you need both the modem settings for the TAPI connection as well as your PagerID(s)

second, alot of the pager service providers(like mine) allow you to send pages to your pager using email with the  telephone number as the address I.E.:
[email protected]   With the text you want displayed in the body of the message. If there is a subject line, in most cases it is ignored.
so if you are able to sendmail outside of your local net to the internet, you can use this function instead..
here is what my commands look like for possible notifications for your reference..

command[host-notify-by-qpage]= /usr/bin/echo "$HOSTNAME$ $HOSTSTATE$ $OUTPUT$ | /usr/local/qpage $CONTACTEMAIL$
command[host-notify-by-qpage]= /usr/bin/echo "$HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ $OUTPUT$" | /usr/local/qpage $CONTACTEMAIL$

command[host-notify-by-page]= /usr/bin/echo "$HOSTNAME$ $HOSTSTATE$ $OUTPUT$ | /usr/bin/mail $CONTACTPAGER$
command[host-notify-by-page]= /usr/sbin/echo "$HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ $OUTPUT$" | /usr/bin/mail $CONTACTPAGER$

command[host-notify-by-email]= /usr/bin/echo "$HOSTNAME$ $HOSTSTATE$ $OUTPUT$ | /usr/bin/mail $CONTACTEMAIL$
command[host-notify-by-email]= /usr/sbin/echo "$HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ $OUTPUT$" | /usr/bin/mail $CONTACTEMAIL$

and each usr has two entrys as a contact
one as a normal user using a shortname of some sort.  and one for specific qpage functionality..
this gives you the flexibility to set your contacts to be notified on a rotation basis easier, IE
kray=email and email pager  notified during workinhours
krayp=same person qpage pager notification 24X7  the CONTACTEMAIL is passsed back to qpage to tell it who to dial..


both part of group ADMIN

hope this helps you in your setup ...
have a nice day,
Kenneth Ray




>
> --__--__--
>
> Message: 10
> From: [email protected]
> Date: Wed, 21 Aug 2002 12:33:11 -0500
> Subject: RE: [netsaint] How to get netsaint to send alphanumeric pages
> TO: [email protected], [email protected]
>
> I use Qpage and I just set up a separate commands like this:
> =A0
> command[host-notify-by-qpage]=3D/usr/bin/printf "Host: '$HOSTNAME$' is
> $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /usr/local/bin/qpage -d
> -p $CONTACTPAGER$
> command[notify-by-qpage]=3D/usr/bin/printf "Service: $SERVICEDESC$\n Host=
> :
> $HOSTNAME$\n State: $SERVICESTATE$\n Info: $OUTPUT$\n Date: $DATETIME$"
> | /usr/local/bin/qpage -d -p $CONTACTPAGER$
>
> Stanley G. Martin=20
> Sprint - ISS Enterprise App/Decision Support Services=20
>
> [email protected]=20
>
>    -----Original Message-----
>    From: jdoak [mailto:[email protected]]
>    Sent: Wednesday, August 21, 2002 12:17 PM
>    To: netsaint-users
>    Subject: [netsaint] How to get netsaint to send alphanumeric pages
>   =20
>   =20
>
>   =20
>    I am interested in getting netsaint to send alphanumeric pages.=A0 I'v=
> e
>    seen the links on the documentation to
>    Quickpage and Sendpage, just curious to see if anyones got this
>    working.=A0 If so, did you need to write your
>    own plugins to do so?=A0 Any help would be appreciated.
>    =A0
>    Thanks,
>    =A0
>    __________________________________________
>    John G. Doak Jr.
>    Network Administrator
>    LucasArts Entertainment
>    [email protected]
>    =A0
>    =A0
>    =A0
>
>   =20
>
> --__--__--
>
> _______________________________________________
> Netsaint-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/netsaint-users
>
> End of Netsaint-users Digest




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.