[opensuse] logging internet connection status
I have an ADSL connection to the Internet. Recently there have been some problems with my phone line, which set me thinking. Is there a standard way to make a log of my internet status (i.e. connection or no connection?) Or perhaps it's already logged and I just need to extract it? Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave Howorth wrote:
I have an ADSL connection to the Internet. Recently there have been some problems with my phone line, which set me thinking. Is there a standard way to make a log of my internet status (i.e. connection or no connection?) Or perhaps it's already logged and I just need to extract it?
Cheers, Dave
If you have an ADSL router they usually include a logging facility of some sort. In some cases you can configure them to send syslog messages to a linux box. - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFHne84asN0sSnLmgIRAs/AAKD3NBKlC+l68cpCCbY0MjjOshPThQCg2IMz 5WzZrBKQe0sx4Njmb/2RlnM= =Qdud -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dave Howorth wrote:
I have an ADSL connection to the Internet. Recently there have been some problems with my phone line, which set me thinking. Is there a standard way to make a log of my internet status (i.e. connection or no connection?) Or perhaps it's already logged and I just need to extract it?
Cheers, Dave Hi Dave,
Just a few pointers you may wish to investigate. You could try using a network monitoring tool such as Nagios (<http://www.nagios.org/>) or a logging and graphing tool such as rrdtool (<http://oss.oetiker.ch/rrdtool/>). Both are provided as RPM packages on OpenSuSE. Having SNMP support on your ADSL modem/router would make the task of monitoring it easier. HTH Cheers. Bye. Ph. A. -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pan@iba-group.com <http://www.iba-worldwide.com> The contents of this e-mail message and any attachments are intended solely for the recipient (s) named above. This communication is intended to be and to remain confidential and may be protected by intellectual property rights. Any use of the information contained herein (including but not limited to, total or partial reproduction, communication or distribution of any form) by persons other than the designated recipient(s) is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free. Ion Beam Applications does not accept liability for any such errors. Thank you for your cooperation.
Philippe Andersson wrote:
Dave Howorth wrote:
I have an ADSL connection to the Internet. Recently there have been some problems with my phone line, which set me thinking. Is there a standard way to make a log of my internet status (i.e. connection or no connection?) Or perhaps it's already logged and I just need to extract it?
You could try using a network monitoring tool such as Nagios (<http://www.nagios.org/>) or a logging and graphing tool such as rrdtool (<http://oss.oetiker.ch/rrdtool/>). Both are provided as RPM packages on OpenSuSE.
Thanks, I'll investigate these.
Having SNMP support on your ADSL modem/router would make the task of monitoring it easier.
and G T Smith wrote:
If you have an ADSL router they usually include a logging facility of some sort. In some cases you can configure them to send syslog messages to a linux box.
Thanks, I'd prefer a solution that didn't involve the router. A previous problem proved to be a faulty router (the current problem is the phone line) so I'd prefer a monitoring technique that doesn't involve trusting the router. But I'll see what it offers as well. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave Howorth wrote:
Philippe Andersson wrote:
Dave Howorth wrote: and G T Smith wrote:
<snip>
If you have an ADSL router they usually include a logging facility of some sort. In some cases you can configure them to send syslog messages to a linux box.
Thanks, I'd prefer a solution that didn't involve the router. A previous problem proved to be a faulty router (the current problem is the phone line) so I'd prefer a monitoring technique that doesn't involve trusting the router. But I'll see what it offers as well.
Cheers, Dave
But you will not get any ADSL link information which is a good indicator of ADSL synchronisation and connection problems at the level below TCP/IP, which is good indicator of line issues (AFAIK NAGIOS deals with TCP/IP not with ADSL connection issues, all you will know is the connection is not working not many clues as to why it is not working). - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFHngTkasN0sSnLmgIRAoOuAJ9Ypf0yplET4tDrUhOafMf9X5YyYgCgmI3q 8hAuYIV082mVJW/yUg9ub5c= =Yer8 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith wrote:
But you will not get any ADSL link information which is a good indicator of ADSL synchronisation and connection problems at the level below TCP/IP, which is good indicator of line issues (AFAIK NAGIOS deals with TCP/IP not with ADSL connection issues, all you will know is the connection is not working not many clues as to why it is not working).
I appreciate that. If the router is reliable then its logs are preferable. But if it becomes flaky and randomly reboots like my last one, I want to have some external evidence squirreled away. I'll try to set up both. Thanks, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mon, 28 Jan 2008, by dhoworth@mrc-lmb.cam.ac.uk:
I have an ADSL connection to the Internet. Recently there have been some problems with my phone line, which set me thinking. Is there a standard way to make a log of my internet status (i.e. connection or no connection?) Or perhaps it's already logged and I just need to extract it?
Cheers, Dave
Again, like problem Carlos had with password for an ssh session: use Expect, at least, if your ADSL modem has a telnet interface. #!/usr/bin/expect -- set timeout 60 spawn telnet st546 expect "Username :" send "admin\r" expect "Password :" send "xxxxx\r" expect "=>" send "adsl info\r" expect "=>" send "exit\r" =>adsl info Modemstate : up [..] Put the script in a cron job and extract the data you want with grep. With pyexpect and pylab you can make nice looking graphs. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 10.3 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.22 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Dave Howorth
-
G T Smith
-
Philippe Andersson
-
Theo v. Werkhoven