Nagios 1.2 - qpage

Tom Brown tom.brown at goodtechnology.com
Fri Nov 12 13:34:57 CET 2004


I am more than likely being very simple here. However i run qpage and i have 
various groups setup within qpage allready. An example would be...

$ qpage all "My message here"

And i would receive "My message here" on our pagers - The modem is connected 
locally etc. So what i don't get is how can i get the nagios box itself to 
send the page rather than generating an email that gets sent as a page by 
another process or service?

I don't think i'm trying to reinvent the wheel am i? Just we have Netsaint 
running in this setup with TBOX from early 2002 and i like the way that 
works.

thanks - and i'm sure its just me being dumb.

(BTW) - Here is a snip from the log whoch shows Nagios doing its thing with 
regard to sending the notification...

[1100262362] SERVICE NOTIFICATION: nagios;dbrestore;/dev/hda3 Free 
Space;WARNING;notify-by-epager;DISK WARNING [3230548 kB (18%) free on 
/dev/hda3]

So i think that as long as i can get the alert generated as a page rather 
than an email it will work

>
> qpage implements a email-to-text-pager gateway... so just configure
> nagios to send terse emails to your pager email address... here's
> what we use...
>
> define contact {
>   contact_name                    page-somebody
>   alias                           page somebody
>   [...]
>   service_notification_commands   notify-by-pager
>   host_notification_commands      host-notify-by-pager
>   email                           somebodys-pager-email-address-here
> }
>
> define command {
>   command_name  notify-by-pager
>   command_line  /usr/bin/printf "%b" "$SERVICESTATE$ $OUTPUT$" | 
> /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTNAME$:$SERVICEDESC$" $CONTACTEMAIL$
> }
>
> define command{
>   command_name    host-notify-by-pager
>   command_line    /usr/bin/printf "%b" "$OUTPUT$" | /bin/mail -s 
> "$HOSTSTATE$: $HOSTNAME$" $CONTACTEMAIL$
> }
>
> qed.
>
> steve
> - - -
> systems & network guy
> high energy physics
> university of wisconsin
>
> > ---- Original Message ----
> > From: "Tom Brown"
> > Hi,
> >
> > Can someone either share with me or point me in the right direction for
> > configuring nagios with qpage? I have qpage running fine and i have 
> > Nagios
> >
> > sending email alerts but i'd like to integrate this with qpage. I don't 
> > se
> > em
> > to be seeing the docs on doing this though,
> >
> > or my eyes could be failing me...
> >
> > thanks
> 




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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