qpage

Jeff McKeon jsm at inpro.net
Mon Apr 21 21:17:41 CEST 2003


Rus

Dead on, the daemon isn't running.  But I can't seem to get it running.

I played around and added a soft link in /etc/rc.d/rc3.d/ to
/etc/init.d/qpage

qpage startup script:

#!/bin/sh
#
# Startup for QuickPage
#
                                                                                                                                                             
case "$1" in
        start)
                echo "Starting QuickPage daemon" > /dev/console 2>&1
                qpage -q10 > /dev/console 2>&1 &
                ;;
                                                                                                                                                             
        stop)
                pid=`ps -e | grep qpage | awk '{print $1}'`
                if [ ! -z "$pid" ]; then
                        echo "Stopping QuickPage daemon" > /dev/console
2>&1
                        kill $pid > /dev/null 2>&1
                fi
                ;;
                                                                                                                                                             
        *)
                echo "Usage: /etc/init.d/qpage { start | stop }"
                ;;
                                                                                                                                                             
esac
exit 0

If I do a

#/etc/init.d/qpage start or stop I get nothing returned.

if i look in the bootlog I see..

Apr 21 19:02:37 MIS01TC07927 rc: Starting qpage:  succeeded

If I telnet:

[root at MIS01TC07927 qpage-3.3]# telnet localhost 444
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

What have I got wrong here?


On Mon, 2003-04-21 at 14:28, Russell Adams wrote:
> It sounds like you're not starting the qpage daemon in the background.
> 
> Try adding "/usr/bin/qpage -q 30" to your startups.
> 
> Test it by trying "telnet localhost 444", 444 being the SNPP
> port. Hitting return should return a hello message.
> 
> Russell
> 
> On Mon, Apr 21, 2003 at 01:50:28PM -0400, Jeff McKeon wrote:
> > Has anyone had the problem while using qpage that after it's installed
> > you can send a page manually if you use the -i (interactive) switch but
> > without it you just get a connection refused error on the SNPP server at
> > localhost?
> > 
> > example:
> > 
> > 
> > [nagios at MIS01TC07927 nagios]$ /usr/sbin/qpage -p admin "hello, just
> > testing"
> > Cannot connect to SNPP server at localhost: Connection refused
> > [nagios at MIS01TC07927 nagios]$
> > 
> > With -i option
> > 
> > [nagios at MIS01TC07927 nagios]$ /usr/sbin/qpage -i -p admin "hello, just
> > testing"
> > giving up root privileges
> > new service: skytel
> > locking /dev/ttyCP4
> > initializing modem with ATZ,E1,V1
> > dialing service skytel with ATDT18006792778
> > waiting for connection
> > connected to remote, service=skytel
> > logging into skytel
> > login accepted
> > skytel says ok to proceed
> > message accepted
> > page delivered, id=DURK000I, from=root, to=admin, parts=1
> > logging out from skytel
> > hanging up modem
> > unlocking /dev/ttyCP4
> > 
> > 
> > -- 
> > Jeff McKeon <jsm at inpro.net>
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > 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
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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
-- 
Jeff McKeon <jsm at inpro.net>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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