LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2010, 12:38 PM   #1
fkasmani
Member
 
Registered: Dec 2007
Posts: 178

Rep: Reputation: 17
Need a software to monitor and give details on my ISP and internet connection


I'm desperately in need of a Linux software that would give me a report on my internet connection. I'm connected to this pathetic ISP who's connection from my end keeps going down every two minutes (even though for a little while), but my downloads keeps getting interrupted, and it's generally frustrating. One moment I can have a DL of 512kbps and the next moment it's 0kbps. At times browsing won't be available, but other things like chat will be working fine.
The problem is, I've signed up with them on an annual package and made advance payment. Now they keep telling me there is nothing wrong with their internet provision and I cannot ask for my money.
That is why I need some app that will sit in my PC and monitor the connection o24/7 and give me a report of how many times the connection kept going down, average speeds, etc.., which I can give to them.

I've tried installing Nagios, MRTG and others from synaptic, but don't even know how to start them up - they're not even appearing in the main menu. I tried to load MRTG from the terminal but it tells me:
Code:
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
       variable LANG is set to UTF-8. Please run mrtg in an environment
       where this is not the case. Try the following command to start:

       env LANG=C /usr/bin/mrtg
I even tried what it tells me, but no luck and I don't even know if I'm on the right track by using Nagios or MRTG?
 
Old 06-19-2010, 08:14 PM   #2
keithieopia
Member
 
Registered: Feb 2005
Posts: 69

Rep: Reputation: 18
Use "crontab -e" to add the following line to cron.
Quote:
* * * * * ping -c 5 www.google.com ; echo $? $(date) >> ~/pings.log
From: http://ubuntuforums.org/showthread.php?t=1181052

This will do a ping every minute and save the result of it to the file pings.log along with the timestamp. The first number of each entry is the error code:
* 0 means the ping succeeded (internet is up).
* 1 means there was no response (internet is down).
* 2 means DNS isn't working.

Make sure you can actually ping to the website to begin with, ie: a firewall isn't blocking your pings. Simply run "ping -c 5 www.google.com" to find out.

Also, I find ISP provided DNS generally stinks and accounts for a lot of issues. Before you try this to monitor your internet connection, try switching your /etc/resolv.conf to point to OpenDNS:
Quote:
nameserver 208.67.222.222
nameserver 208.67.220.220
 
Old 06-20-2010, 08:40 AM   #3
fkasmani
Member
 
Registered: Dec 2007
Posts: 178

Original Poster
Rep: Reputation: 17
[QUOTE=keithieopia;4008953]Use "crontab -e" to add the following line to cron.{/QUOTE]
Keithieopia, thanks so much.

I tried the crontab command you sent, but unfortunately it says there is no crontab file present, so I selected the option to make one. I've placed the ping command you've given.
Does this mean that the ping command will startup and rn in the background automatically when I boot up my PC?

Where is the location of the ping (log) file?

Quote:
Originally Posted by keithieopia View Post
Make sure you can actually ping to the website to begin with, ie: a firewall isn't blocking your pings. Simply run "ping -c 5 www.google.com" to find out.
yep, I get a round trip reply.

Quote:
Originally Posted by keithieopia View Post
Also, I find ISP provided DNS generally stinks and accounts for a lot of issues. Before you try this to monitor your internet connection, try switching your /etc/resolv.conf to point to OpenDNS:
I don't know if changing the DNS will do any good. I opened the /etc/resolv.com and it says
Code:
# Generated by NetworkManager
nameserver 192.168.0.1
but I have a router in between my pc and the device connecting my home to the ISP. The router settings are controlled by the ISP and p/word protected, not allowing me to make any changes.

However, I need something more than ping. Ping will only give a report on the connection being active, but I need much more - graphs showing the quality of internet I'm getting and downtime I experience. I believe by the end of the month the ping log file wil be pages and pages, won't it? and my ISP will not even look through all that.

I was googling for linux bandwidth monitors and cam across http://www.ubuntugeek.com/bandwidth-...for-linux.html
from here I saw cacti, and when I went to synaptic, I see cacti is already even installed on my machine - but how do I load it?
 
Old 06-21-2010, 03:14 PM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
[QUOTE=fkasmani;4009311]
Quote:
Originally Posted by keithieopia View Post
Use "crontab -e" to add the following line to cron.{/QUOTE]
Keithieopia, thanks so much.

I tried the crontab command you sent, but unfortunately it says there is no crontab file present, so I selected the option to make one. I've placed the ping command you've given.
Does this mean that the ping command will startup and rn in the background automatically when I boot up my PC?

Where is the location of the ping (log) file?


yep, I get a round trip reply.


I don't know if changing the DNS will do any good. I opened the /etc/resolv.com and it says
Code:
# Generated by NetworkManager
nameserver 192.168.0.1
but I have a router in between my pc and the device connecting my home to the ISP. The router settings are controlled by the ISP and p/word protected, not allowing me to make any changes.

However, I need something more than ping. Ping will only give a report on the connection being active, but I need much more - graphs showing the quality of internet I'm getting and downtime I experience. I believe by the end of the month the ping log file wil be pages and pages, won't it? and my ISP will not even look through all that.

I was googling for linux bandwidth monitors and cam across http://www.ubuntugeek.com/bandwidth-...for-linux.html
from here I saw cacti, and when I went to synaptic, I see cacti is already even installed on my machine - but how do I load it?
The best way to figure out cacti or mrtg or nagios is to read the documentation.
Here are the docs for cacti.


http://www.cacti.net/documentation.php

If it is all fully installed, you can normally get to cacti on
Code:
http://yourserver/cacti
 
1 members found this post helpful.
Old 06-22-2010, 04:28 AM   #5
fkasmani
Member
 
Registered: Dec 2007
Posts: 178

Original Poster
Rep: Reputation: 17
[QUOTE=centosboy;4010672]
Quote:
Originally Posted by fkasmani View Post

http://www.cacti.net/documentation.php

If it is all fully installed, you can normally get to cacti on
Code:
http://yourserver/cacti
I'm really not good at installing from the terminal, so I actually installed all 3 - nagios, MRTG and cacti from synaptic. Does synaptic do the full installation including setting up SQL databases, etc.?
Surprisingly when I type in cacti at the terminal, it says
Quote:
cacti:command not found
I even tried "cacti --help" but no luck.
MRTG on the other hand says
Quote:
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:

env LANG=C /usr/bin/mrtg
-----------------------------------------------------------------------
so I really don't know

I went through the documentation on cacti you sent, but am a bit confused, 'cos cacti is already installed on my PC (as are nagios and MRTG).

What I don't understand is, if these apps are installed through synaptic or "apt-get install", how do I access/load them? they don't seem to be appearing in the main menu.
As for loading cacti with the URL you sent, any idea what I'm supposed to replace "yourserver" with? I tried 127.0.0.1 but no luck. I tried replacing "yourserver" with localhost but when the "/cacti" is there I get a "404 Not Found" and if I just say "http://localhost/" it says
Quote:
It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.
 
Old 06-22-2010, 06:05 AM   #6
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
[QUOTE=fkasmani;4011136]
Quote:
Originally Posted by centosboy View Post

I'm really not good at installing from the terminal, so I actually installed all 3 - nagios, MRTG and cacti from synaptic. Does synaptic do the full installation including setting up SQL databases, etc.?
Surprisingly when I type in cacti at the terminal, it says I even tried "cacti --help" but no luck.
MRTG on the other hand says so I really don't know

I went through the documentation on cacti you sent, but am a bit confused, 'cos cacti is already installed on my PC (as are nagios and MRTG).

What I don't understand is, if these apps are installed through synaptic or "apt-get install", how do I access/load them? they don't seem to be appearing in the main menu.
As for loading cacti with the URL you sent, any idea what I'm supposed to replace "yourserver" with? I tried 127.0.0.1 but no luck. I tried replacing "yourserver" with localhost but when the "/cacti" is there I get a "404 Not Found" and if I just say "http://localhost/" it says


read the documentation.
if you have problems understanding, then you can always run the cacti vmx which is a vmware image that is already mostly configured.
all you would have to do here is install the free vmware player or vmware server and then load the vmx image.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
details for internet connection kumar116 Linux - Newbie 5 05-07-2010 08:55 AM
Using my home Internet connection as an ISP for a remote location BigEdgar Linux - Software 2 01-29-2008 12:19 PM
LXer: French ISP to give away Linux computer with every broadband connection LXer Syndicated Linux News 0 09-27-2006 12:54 PM
Internet connection failing after ISP login fat_chucky Linux - Newbie 4 09-13-2004 09:46 AM
How to Get an internet dial-up connection in RedHat 9 for an Indian ISP? munjal Red Hat 2 06-14-2004 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration