LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-11-2002, 06:26 AM   #1
munyard
LQ Newbie
 
Registered: Jan 2002
Location: UK
Distribution: Debian / Ubuntu/ Linux Mint / SuSe
Posts: 9

Rep: Reputation: 0
Integrity checks on RH 6.1


Hi, I have two linux RH 61 servers, which both rebooted at about 04:02 on December the 8th 2002. I am a little concerned since they have both been up for exactly 498 days.

is there something that stops RH 6.1 rolling over to 499 days? uptime.

some of the daemons appear to have restarted themselves, and since I have not configured them these daemons to auto restart on reboot I must suspect that perhaps the servers have not re-booted, note. * this has happened to both servers at exactly the same time.

Looking through the logs, one would expect to see the `date and time` but from he logs they do not appear to have been rebooted.

Suggestions please,

Is there some way of telling how long the server has been up without using `uptime`

Roly
 
Old 12-11-2002, 07:29 AM   #2
ianv
Member
 
Registered: Dec 2002
Location: North West England
Distribution: fedora
Posts: 52

Rep: Reputation: 15
Howdy,
Taken from the www.linuxcounter.org :
"The Linux kernel (at least up to 2.4.2) has a flaw: It computes the result of the "uptime" based on the internal "jiffies" counter, which counts the time since boot, in units of 10 milliseconds.
This is typecast as an "unsigned long" - on the Intel boxes, that's an unsigned 32-bit number.
Well, it turns out that in a 32-bit number, you can store 497.1 days before the number wraps"

Ta-da!

You could write a script real_uptime.sh to add 497.1 days to the output of uptime as a quick & dirty solution and set
alias uptime="real_uptime.sh"
Congrats on having such a reliable system..
HTH
Ian
 
  


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
Script that checks mapsize objorkum Linux - Software 1 07-06-2005 11:42 AM
FC 3 integrity nanoprobe Fedora 9 01-18-2005 11:50 PM
Checks during bootup?? halo14 Slackware 1 09-23-2004 09:52 AM
what command checks for email? bosewicht Linux - Newbie 1 03-14-2004 07:15 PM
linux won't start after checks vavavoom Linux - Newbie 5 11-04-2003 09:58 PM


All times are GMT -5. The time now is 07:12 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