The Sysadmin's Daily Grind: Uptimed
Conspiracy of the Undead
Who has the longest uptime? Linux systems used to win hands down when it comes to maximum uptime without rebooting. Today, uptime statistics help admins with monitoring tasks and discovering tricky bugs.
The times when I showed off servers with 1,000 days of uptime to make my colleagues from the Windows team jealous are long gone. If I get caught with a Methuselah like this today, I can expect to answer embarrassing questions about whether I am afraid of kernel updates. (The answer to this is: Yes! I use some fairly exotic RAID controllers now because I shot myself in the foot when I updated to 2.6.27 – ouch!)
Security freaks tell scary stories about the exploits they guess will work on systems that nobody has bothered booting for a year or so. Bragging can't be the only reason why so many admins use Uptimed , a daemon that logs a system's uptime over an extended period of time. It makes sense for devices that are not otherwise accessible for monitoring, for reasons of location or security – you get to know exactly when the power supply last failed, or a hardware component died on you.
You can use the /etc/uptimed.conf configuration file to control Uptimed's behavior. The entry
tells the tool to restrict the list of saved uptimes to 20 readable entries.
lets me tell the daemon not to start writing entries until the computer has achieved at least 12 hours of uptime. This makes sense to suppress the intermezzi between two successive reboots, as would be the case if you need to repair or rebuild and try out a new kernel module (you guessed it, my RAID controllers…). You can also define milestones in the configuration file, and have the software notify you by mail when the server reaches one.
The Uptimed package includes the Uprecords client, which exhibits the acquired data in a nicely formatted list on the console. To keep things readable, I restricted the uprecords -s -m3 output to the last three entries. There is a reason I choose my video disk recorder for this – it freezes from time to time, and I wanted Uptimed to help me discover some method to the madness of these crashes. Unfortunately, there wasn't one: I guess the hardware is broken, just as I suspected.
- Uptimed: http://podgorny.cz/moin/Uptimed
Buy this article as PDF
VMware bids for a stake in the container industry with a bold effort to integrate containers with its classic virtualization system.
3ROS attack tool lowers the technical bar so anyone can be an intruder.
Mozilla's latest browser offers powerful new privacy feature
If attackers are on your system, saving your passwords in a password vault is no protection.
Faulty hash algorithm persists, despite efforts by experts to raise awareness.
Powerful man-in-the-middle attack is now targeting online shopping.
Another high-profile coder says the kernel team needs a kinder, gentler culture.
Bug database has a bug of its own that could allow an intruder to create an unauthorized account.
Report focuses federal resources on achieving universal Internet access.
Leading browser makers say “no” to porous encryption algorithm