nwlinux
Custom Search

HTOP exclamation next to uptime

Published April 13th, 2011 | categories include: Informational, software, Ubuntu | Share on Twitter
article shortlink: http://nwlinux.co/91

I was concerned when I logged into a fileserver and saw that the computer uptime, as displayed in HTOP, displayed an exclamation point (!) next to it. The exclamation point is hard coded into the htop configuration to notify you of the 100 day mark. I am not certain of the intent of the punctuation, however most any system that has not been restarted in 100 days and is public facing should likely be checked. This particular system is a file server and is only used on a LAN.

Ubuntu 8.04


--- UptimeMeter.c.orig 2010-01-26 04:26:23.000000000 +0800
+++ UptimeMeter.c 2010-01-26 04:27:01.000000000 +0800
@@ -19,7 +19,7 @@
};

static void UptimeMeter_setValues(Meter* this, char* buffer, int len) {
- double uptime;
+ double uptime = 0;
FILE* fd = fopen(PROCDIR "/uptime", "r");
fscanf(fd, "%lf", &uptime);
fclose(fd);

or


if (days > 100) {
sprintf(daysbuf, "%d days(!), ", days);
}

source

This particular Ubuntu box is a file server and does not have external access or internet (Yes, I did that on purpose). Next, I have to address why the server load is 0.00. Next post!

Previous Post: «
Next Post: »
Do you have something to say? Send me a message on my Google Plus profile.

Recent Posts

Fix Get Simple CMS URL’s when migrating to a new domain
categories include: Concrete5, GetSimple

How many robots does it take to change a light bulb?
categories include: Uncategorized

DuckDuckGo Adam Yauch Tribute duck
categories include: Images

Stuff

About >> I'm a Network Administrator out of Olympia, WA.

Social >> You can find me on Twitter @nwlinux, Google Plus or LinkedIn. Also, take a look at FAQ.me for more info.

RSS Feed >> A couple of options here: You can click the RSS icon at the top of the page or hit up FeedBurner.