Checking if the phone was answered... (you keep me hanging on the Telephone)
Dan Stromberg
strombrg at dcs.nac.uci.edu
Thu Jan 27 19:13:51 CET 2005
For python, pexpect might be the best module to use.
However, kermit has an implementation of such dialogs specifically
intended for modems.
On Thu, 2005-01-27 at 21:42 +1100, Stanley Hopcroft wrote:
> Dear Folks,
>
> I am writing to thank you for your letter and say,
>
> On Tue, Jan 25, 2005 at 08:09:39PM -0800, nagios-users-request at lists.sourceforge.net wrote:
> >
> > Message: 3
> > From: "Thomas Earl" <tearl at cacdhh.org>
> > To: <nagios-users at lists.sourceforge.net>
> > Date: Tue, 25 Jan 2005 10:31:32 -0500
> >
> > Greetings to all,
> >
> > I'm wondering if anyone has written something that would check if a phone
> > was answered. i.e. Nagios dials out, waits for an answer then hangs up and
> > reports back.
>
> Any of the ptty tools like Expect/TCL, Expect/Perl and the Ruby.
> Python equivalents might be useful in conjunction with a modem.
>
> eg
> have modem dial your number
> carrier detect ?
> yes)
> => OK
> no)
> => Critical
>
> You may be better off puttng a modem on your system and see if the pair
> can go into data transfer phase.
>
> Surely _no_ analogue phone system could be so unreliable that you need
> to test it ?
>
> > Thanks,
> >
> > Tom
> >
>
> Yours sincerely.
>
> plain text document attachment (disclaimer.txt)
> --
> This message contains privileged and confidential information only
> for use by the intended recipient. If you are not the intended
> recipient of this message, you must not disseminate, copy or use
> it in any manner. If you have received this message in error,
> please advise the sender by reply e-mail. Please ensure all
> e-mail attachments are scanned for viruses prior to opening or
> using.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050127/e275119e/attachment.sig>
More information about the Users
mailing list