qpage doesn't work through nagios, help!!

Dack Anderson dack at msi.umn.edu
Tue Jan 21 19:52:30 CET 2003


try

/usr/bin/printf "%b" <rest of command line>



On Tue, 21 Jan 2003, Evan Mann wrote:

> 
> Can someone help me here.  Here is the relevant files.  I know it's not a
> problem with printf since my notify-by-email's use that fine.  I can't
> figure else what else it can be.  qpage is not accepting the page went sent
> through nagios.
> 
> crwxrwxrwx    1 root     dialout    4,  64 Jan 21 11:58 /dev/ttyS0
> -rwxrwxrwx    1 nagios   nagios      91687 Dec 31 09:40
> /usr/local/bin/qpage*
> -rwxr-xr-x    1 root     root        16348 Jul 26  2001 /usr/bin/printf*
> drwxr-xr-x    9 root     root        21504 Jan 20 15:40 dev/
> 
> # 'host-notify-by-qpage' command definition
> define command{
>         command_name    host-notify-by-qpage
>         command_line    /usr/bin/printf "$HOSTNAME$/$HOSTSTATE$ $OUTPUT$" |
> /usr/local/bin/qpage -d -p $CONTACTPAGER$
> }
> 
> -----Original Message-----
> From: Ryan Henry [mailto:ryan.henry at EPSIIA.com]
> Sent: Tuesday, January 21, 2003 1:20 PM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] qpage doesn't work through nagios, help!!
> 
> 
> make sure the nagios user has permissions to write to the modem device - 
> /dev/cua/b or whatever it is.
> 
> -Ryan
> 
> Mike Cochran wrote:
> 
> >I'm having a similar problem, but I'm using yaps (yet another pager
> >software) instead of qpage.  When I run it (from the command line) using
> >under root, it all works fine.  Then when I try it using user nagios it
> >doesn't work...  it gives me the following output: 
> >
> ><<
> >  
> >
> >>/usr/local/bin/yaps -vvvvv -t mike 'test'
> >>    
> >>
> >Found service D1 for 616xxxxxxx
> >Sending following message:
> >mike         (D1, 616xxxxxxx): test -nagios
> >Trying to open /dev/cua/b for modem standard
> >Unable to dial D1
> >  
> >
> >
> >Has anybody had a similar problem or know what it might be?  I would
> >assume that it would be a permissions problem, but I'm not sure which
> >permissions to check.  The yaps permissions seem fine, since the program
> >starts up fine.  Thanks for any help...
> >
> >-mike
> >
> >-----Original Message-----
> >From: nagios-users-admin at lists.sourceforge.net
> >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann
> >Sent: Tuesday, January 21, 2003 12:02 PM
> >To: 'nagios-users at lists.sourceforge.net'
> >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
> >_______________________________________________
> >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
> _______________________________________________
> 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
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 

-- 
Dack



-------------------------------------------------------
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