OT - Sendpage and Arch Wireless
Robin Brown
robin_brown at totalcomm.com
Thu Jan 30 23:07:46 CET 2003
Arch pc definition:
[pc:archwireless]
# Is this PC enabled? Set to false to stop processing a PC, for example
# Default is "true"
#enabled= false
# This PC's protocol-level debugging.
# Default is "false"
debug = true
# Email address that page emails claims to be coming from.
# Default is unset, and will fall back to the global "page-daemon"
setting
#
#page-daemon = someone at other.place
page-daemon = netmon at p2pa.com
# Will page-daemon be Cc'd on email failures for this PC?
# Default is unset, and will fall back to global "cc-on-error"
setting
#cc-on-error = true
# Should page senders be notified about permanent failures?
# Default is unset; will fall back to global option
#fail-notify = false
# Page senders should be notified every Xth temporary failure.
# (0 means 'never')
# Default is unset; will fall back to global option
#tempfail-notify-after=10
# How many times does a page hit a temporary error before failing
forever?
# Default is unset; will fall back to global option
#max-tempfail=50
# Command to run after each successful or failed page, overrides global
# Default is unset
# Command gets contents of page on stdin, and 2 command line
# parameters:
# arg 1: status (0=page failed, 1=page succeeded)
# arg 2: page alias (who was paged)
#
#completion-cmd = "/usr/local/bin/page-sent"
# If for some reason you need to override the default list of modems,
# do it here.
# Default is all available modems.
#modems = sportster
# If you need specific communication settings for this PC, they go here.
# Defaults are data=7, parity=even, stop=1, flow=rts, baud=115200
#data = 8
#parity = none
#stop = 1
#flow = soft
#baud = 2400
# What areacode is this PC in? If unset, the modem won't match
areacodes
# Default is unset
#areacode= 312
# What phone number to reach this PC at.
# Default is "", so you better fill one in
#phonenum= 5149243
phonenum= 8604730000
# How many pages can be sent in each session with this PC?
# Default is 0 (unlimited)
maxpages=12
# How many blocks can be sent in each session with this PC?
# Default is 0 (unlimited)
#maxblocks=60
# How many characters can be sent in each page for this PC?
# Default is 1024
maxchars=300
# How many times are we allowed to split up a page that exceeds the
# max chars limit? (For example, if maxchars was "100" and maxsplits
was
# "5" and someone sent a 2000 character page, sendpage would generate
# five 100-character pages before cutting off the page.)
# Default is "6"
#maxsplits=2
# Which TAP protocol to use. Should be one of "PG1", "PG3", or "UCP"
# Regular TAP PagingCentrals are "PG1".
# UCP PagingCentrals will need "UCP".
# If you had a "pet3" style PC before, this needs to be "PG3"
# Default is "PG1"
#proto=PG3
# How many fields does the PC expect to be getting during Block
Transmission?
# If you had a "pet3" style PC before, this needs to be "3".
# Default is "2"
#fields=3
# What is the password for accessing this Paging Central?
# Default is "000000". Shouldn't be more than 6 characters.
#password=123456
# Should we assume strict TAP protocol, and require CR before each
answer?
# If you can set this to true, do so, as it makes textual response codes
# easier to read. However, very few PCs use those codes, and very few
# PCs have correctly implemented strict TAP, so it's unlikely you want
this.
# Default is "false"
stricttap=true
# Characters less than 0x20 are allowed in a block's field?
# If you can set this, it makes pages prettier (can send tabs, newlines,
# etc), but some PCs really don't like this. See 'esc' and 'lfok'
options.
# Default is "false"
#ctrl=true
# Can characters less than 0x20 be escaped, as in TAP spec 1.8?
# If you can't set "ctrl" to true, see if this one set to true works.
# Default is "false"
#esc=true
# Is LF explicitly allowed by this PC? (only useful if "ctrl=false")
# Default is "false"
lfok=true
# Can fields be split across blocks?
# Default is "true"
#fieldsplits=false
# How many seconds to wait before sending CR when waiting for the ID=
tag?
# Default is "2", from the T1 of the TAP protocol
#answerwait=10
answerwait=10
# How many retries to allow before giving up waiting for the ID= tag?
# Default is "3", from the N3 of the TAP protocol
#answerretries=3
# How many seconds before we giving up trying to dial this PC?
# Default is whatever the modem's dialwait is
#dialwait=20
# How many seconds should this PC wait between queue scans?
# Default is "20"
#rundelay=10
Modem section of sendpage.cf:
######################
# modem configuration
# Each section should be called "modem". (e.g.
"[modem:sportster]")
######################
# My first "modem" section. I named it "sportster" because that's what
it is
[modem:sportster]
# Should this modem's character-level debugging be turned on?
# Default is "false"
#debug = true
debug = true
# This modem's transmission settings.
# Defaults are data=7, parity=even, stop=1, flow=rts, baud=9600
data = 7
parity = even
stop = 1
flow = rts
baud = 2400
dev = /dev/modem
init = ATL1M0E1V1X4S11=50
# Which device this modem should use
# Default is "/dev/null", so you better specify one. :)
#dev = /dev/modem
# This modem's initialization string
# Default is "ATZ"
#init = ATE&1
#init = AT&F1L3S6=3S0=0
# This modem's "okay" response string (this is a regexp)
# Default is "OK"
#initok = 0
# What to look for if something has gone wrong while init'ing (this is a
regexp)
# Default is "ERROR"
#error=1
# How many seconds to wait for initok after init with this modem
# Default is "4"
#initwait=1
# How many times to try to initialize the modem
# Default is "2"
#initretries=1
# The dialing prefix for this modem
# Default is "ATDT"
#dial=ATDP
# The telephone prefix to get a dialtone out of the building (for PBXs,
etc)
# Default is ""
#dialout="9,"
dialout="8,"
# The areacode this modem has (for figuring areacode matches with PCs)
# Default is unset
#areacode="847"
# The dialing prefix for dialing long distance calls (some PBXs do weird
stuff)
# Default is "1-"
#longdist="81"
# What to look for after connecting successfully (this is a regexp)
# Default is "CONNECT.*\r"
#dialok=0
# What to look for if something goes wrong while dialing (this is a
regexp)
# Default is "ERROR|NO CARRIER|BUSY|NO DIAL|VOICE"
#no-carrier=ERROR
# How many seconds to wait for dialing to connect
# Default is "60"
#dialwait=30
# How many times to try and redial (unimplemented, actually...)
# Default is "3"
#dialretries=1
# How should "carrier detection" be done? "on", "off", "dsr"
# "DSR" can be used when a cable or OS doesn't correctly provide CD
# Default is "on"
#carrier-detect=dsr
# How many seconds should the DTR be held down during initialization?
# Default is "0.5"
#dtrtime=1.5
Most of this is default, it also reflects my attempt to use your init
string.
Thanks again.
-Robin
-----Original Message-----
From: Russell Adams [mailto:RLAdams at Kelsey-Seybold.com]
Sent: Thursday, January 30, 2003 4:35 PM
To: Robin Brown
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless
What is your sendpage.cf look like for the modem definitions and such?
I'll give you some samples from mine below.
BTW, please include your replies on the list to maintain continuity.
Russell
Samples from sendpage.cf for Arch (formerly Mobilcomm):
[modem:multitech_01]
data = 7
parity = even
stop = 1
flow = rts
baud = 1200
dev = /dev/modem1
init = ATL1M0E1V1X4S11=50
[pc:MobilCommLocalOnly]
rundelay=5
phonenum= 713-781-5116
maxchars= 230
[recip:rladams]
dest= 1234567890 at MobilCommLocalOnly
On Thu, Jan 30, 2003 at 03:56:32PM -0500, Robin Brown wrote:
> Oh, I certainly hope so. Arch support basically told me to contact my
> software vendor. See below:
>
> Jan 29 13:20:10 proxy sendpage[3383]: starting Queue Manager (sendpage
> v0.9.14)
> Jan 29 13:20:10 proxy sendpage[3383]: starting SNPP listeners
> Jan 29 13:20:27 proxy sendpage[3386]:
archwireless/q104386442703386000:
> state=Queued, to=robin at archwireless,
> from=sendpage at mydomain.com(localhost), size=5
> Jan 29 13:20:58 proxy sendpage[3384]: Dropping bad char 0x0A
> Jan 29 13:20:58 proxy sendpage[3384]: immediate disconnect requested!
> Jan 29 13:21:00 proxy sendpage[3384]:
archwireless/q104386442703386000:
> state=Temp-Failure, to=robin at archwireless, from=sendpage@
mydomain.com,
> size=5, PC='{0x0A}Too Slow - Good Bye{0x0A}'{0x0A}
>
> Here is the debug output of sendpage initializing:
>
> (3471: debug) found listing for pc: archwireless
> (3471: debug) Locking with '/var/lock/LCK..modem' ...
> (3471: debug) Modem 'sportster' setting 'Baud': '2400'
> (3471: debug) Modem 'sportster' setting 'Parity': 'even'
> (3471: debug) Modem 'sportster' setting 'Data': '7'
> (3471: debug) Modem 'sportster' setting 'Stop': '1'
> (3471: debug) Modem 'sportster' setting 'Flow': 'rts'
> (3471: debug) Modem 'sportster' setting 'Init': 'ATZ'
> (3471: debug) Modem 'sportster' setting 'InitOK': 'OK'
> (3471: debug) Modem 'sportster' setting 'InitWait': '4'
> (3471: debug) Modem 'sportster' setting 'InitRetry': '2'
> (3471: debug) Modem 'sportster' setting 'Error': 'ERROR'
> (3471: debug) Modem 'sportster' setting 'Dial': 'ATDT'
> '3471: debug) Modem 'sportster' setting 'DialOK': 'CONNECT.*
> (3471: debug) Modem 'sportster' setting 'DialWait': '60'
> (3471: debug) Modem 'sportster' setting 'DialRetry': '3'
> (3471: debug) Modem 'sportster' setting 'NoCarrier': 'ERROR|NO
> CARRIER|BUSY|NO DIAL|VOICE'
> (3471: debug) Modem 'sportster' setting 'CarrierDetect': 'on'
> (3471: debug) Modem 'sportster' setting 'DTRToggleTime': '0.5'
> (3471: debug) Modem 'sportster' setting 'LongDist': '1'
> (3471: debug) Modem 'sportster' setting 'DialOut': '8,'
> (3471: debug) baud requested: '2400' baud set: '2400'
> (3471: debug) parity requested: 'even' parity set: 'even'
> (3471: debug) databits requested: '7' databits set: '7'
> (3471: debug) stopbits requested: '1' stopbits set: '1'
> (3471: debug) flow requested: 'rts' flow set: 'rts'
> (3471: debug) reseting DTR ...
> (3471: debug) forcing RTS ...
> (3471: debug) to send: ATZ{0x0D}
> (3471: debug) want: OK
> (3471: debug) kicker: ATZ{0x0D}
> (3471: debug) timeout: 4 retries: 2
> (3471: debug) have:
> (3471: debug) wrote: 4 ATZ{0x0D}
> (3471: debug) 4 seen: ATZ{0x0D}
> (3471: debug) have: ATZ{0x0D}
> (3471: debug) 6 seen: {0x0D}{0x0A}OK{0x0D}{0x0A}
> (3471: debug) have: ATZ{0x0D}{0x0D}{0x0A}OK{0x0D}{0x0A}
> (3471: debug) chat success: OK
> (3471: debug) Modem Object 'sportster' being destroyed
> (3471: debug) unlocking Modem 'sportster'
> (3471: debug) Modem Object 'sportster' destroyed
> (3471: debug) found functioning modem: sportster
>
> I seem to only be able to connect to this PC at 2400,7,e,1. When I
use
> minicom, I get the ID= string just fine. I have turned debug=true
> everywhere possible in the sendpage.cf file, yet this is the only
output
> I get in the messages file?
>
> Any help is greatly appreciated!
>
> -Robin
>
>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Russell
> Adams
> Sent: Thursday, January 30, 2003 2:53 PM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless
>
> I use Arch with Sendpage, and previously Qpage.
>
> What exactly is the problem you're having?
>
> I've worked many problems with Arch tech support, and I support about
> 500
> pagers. Perhaps I've already seen the problem you're having. ;]
>
> Russell
>
> On Thu, Jan 30, 2003 at 01:33:08PM -0500, Robin Brown wrote:
> > Looking for someone else using Arch for modem paging. I'm trying to
> use
> > modem paging with my installed and working Nagios server but I'm
> having
> > some issues and not finding too much help available. The problem
> seems
> > to lie in the communication with Arch.
> >
> > I'd appreciate it if anyone using this could contact me.
> >
> >
> > Thanks and regards,
> > Robin
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > http://www.vasoftware.com
> > _______________________________________________
> > 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:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> 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:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list