LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-30-2003, 02:44 AM   #1
plexy
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Rep: Reputation: 0
Internet uptime


Hi.

I recently configured a Linux router to share the internet in my local network. I used to have a hardware router before this, but it doesn't work anymore. On the router it was something called "Web Configurator" from where you could do things like forward ports, set up DHCP and such. Basic router stuff. There were also some system information about the internet connection which displayed <B>uptime</B>, transferred/transmitted bytes/packets, current IP and such.

This is something I really miss, so I began making a site like this for my Linux router. This is where my problem comes in. I have no idea how to display the internet connection uptime. I know I can find out when the connection started by looking at when i.e. /var/run/ppp0.pid was started, but that doesn't help me much since I don't know what to do with it. I don't know perl or PHP, so I'm not able to make a script which figures out this issue.

I've searched the internet, but this hasn't helped a lot.

Another problem is how to export the information from the router box and over to the web server. -My- best solution is to set up crontab entry for scp'ing a file from the router and over to the server, but then I need a script which calculates the uptime and prints it to a file. How to export is though not my main problem, but I'm really open for better suggestions.

But what I really need help about is the uptime issue.

Thanks in advance.
 
Old 10-31-2003, 03:01 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Welcome to LQ.

Take a look at:
http://sourceforge.net/projects/percival/

Perhaps you could use an NFS share to pass the data to the web server.
 
Old 11-02-2003, 11:42 AM   #3
plexy
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the welcome, and thanks for the reply, david_ross.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Uptime: 2.4 vs 2.6 Synesthesia Linux - General 4 10-17-2005 04:23 PM
actual uptime linuxhippy Slackware 4 08-01-2005 06:07 PM
24/7 uptime? jollyjoice General 20 01-25-2005 12:12 PM
uptime for server einstien Linux - General 2 09-20-2004 09:35 PM
uptime skate Linux - Software 16 08-14-2003 04:10 AM


All times are GMT -5. The time now is 07:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration