qpage doesn't work through nagios, help!!

Stanley.G.Martin at mail.sprint.com Stanley.G.Martin at mail.sprint.com
Tue Jan 21 18:43:57 CET 2003


I didn't have to make any changes from Netsaint to Nagios to use qpage.
My qpage executable looks like this:

-rwxrwxr-x    1 root     root       122693 Nov 22 10:00 qpage

and my command entry in Nagios looks like this:

# 'host-notify-by-qpage' command definition
define command{
    command_name    host-notify-by-qpage
    command_line    /usr/bin/printf "Host: '$HOSTNAME$' is
$HOSTSTATE$\nInfo: $OUTPUT$\nTim
e: $DATETIME$" | /usr/local/bin/qpage -d -p $CONTACTPAGER$
    }

Hope this helps.

Stanley G. Martin
Sprint - ISS Enterprise App/Decision Support Services 
Stanley.G.Martin at mail.sprint.com


-----Original Message-----
From: emann [mailto:emann at questinc.org]
Sent: Tuesday, January 21, 2003 11:02 AM
To: nagios-users
Subject: [Nagios-users] qpage doesn't work through nagios, help!!


I can't figure out why qpage doesn't actually SEND the page when it's
run
through nagios.  This is what /var/log/syslog says:

Jan 21 11:57:10 linux qpage[25317]: connection from
[anonymous]@localhost
Jan 21 11:57:10 linux qpage[25317]: disconnect from
[anonymous]@localhost
Jan 21 11:57:10 linux qpage[21486]: processing the page queue

This is what happens when I run qpage manually as root:

Jan 21 11:58:10 linux qpage[25433]: connection from
[anonymous]@localhost
Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070,
from=root
Jan 21 11:58:10 linux qpage[21486]: processing the page queue
Jan 21 11:58:10 linux qpage[25433]: disconnect from
[anonymous]@localhost

/usr/local/bin/qpage was set user/group as root/root so I changed it to
root/nagios but still no luck.




-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users




-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp




More information about the Users mailing list