Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

Rep: Reputation: 0
Internet uptime


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/ 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, 02:01 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

Take a look at:

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

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


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 03:23 PM
actual uptime linuxhippy Slackware 4 08-01-2005 05:07 PM
24/7 uptime? jollyjoice General 20 01-25-2005 11:12 AM
uptime for server einstien Linux - General 2 09-20-2004 08:35 PM
uptime skate Linux - Software 16 08-14-2003 03:10 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:31 PM.

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