Up.time 5 On Free Linux

by Feb 11, 2009

Hello All,

I've just installed a monitoring station package on an Ubuntu server, and I thought I'd share my experience for anyone looking to use an unsupported GPL operating system for their monitoring station.

I used the package which was originally intended for Red Hat Enterprise Server – up.time-5.1.177-rhes-x86.bin

This was a fresh install of Ubuntu, and really all that needed to be changed operating system wise was installation of the package – expat – an XML parser library written in C.

In a terminal:

sudo apt-get install expat

up.time looks for this library in /usr/lib/libexpat.so.0 so we need to make a symlink to this file from /usr/lib/libexpat.so. In a terminal:

sudo ln /usr/lib/libexpat.so /usr/lib/libexpat.so.0

Now that we've got the package installed and ready for up.time's use, lets install up.time.


This should run through and install up.time to /usr/local/uptime/ (if you go with default settings)

Now all we have to do is tell the service to start at boot:

cp /usr/local/uptime/scripts-linux/uptime_core /etc/init.d/
cp /usr/local/uptime/scripts-linux/uptime_datastore /etc/init.d/
cp /usr/local/uptime/scripts-linux/uptime_httpd /etc/init.d/

And then create symbolic links for the appropriate rc.* folders:

ln -s /etc/init.d/uptime_datastore /etc/rc0.d/K96uptime_datastore
ln -s /etc/init.d/uptime_datastore /etc/rc1.d/K96uptime_datastore

ln -s /etc/init.d/uptime_core /etc/rc0.d/K97uptime_core
ln -s /etc/init.d/uptime_core /etc/rc1.d/K97uptime_core

ln -s /etc/init.d/uptime_httpd /etc/rc0.d/K98uptime_httpd
ln -s /etc/init.d/uptime_httpd /etc/rc1.d/K98uptime_httpd

ln -s /etc/init.d/uptime_datastore /etc/rc2.d/S96uptime_datastore
ln -s /etc/init.d/uptime_datastore /etc/rc3.d/S96uptime_datastore
ln -s /etc/init.d/uptime_datastore /etc/rc4.d/S96uptime_datastore
ln -s /etc/init.d/uptime_datastore /etc/rc5.d/S96uptime_datastore

ln -s /etc/init.d/uptime_core /etc/rc2.d/S97uptime_core
ln -s /etc/init.d/uptime_core /etc/rc3.d/S97uptime_core
ln -s /etc/init.d/uptime_core /etc/rc4.d/S97uptime_core
ln -s /etc/init.d/uptime_core /etc/rc5.d/S97uptime_core

ln -s /etc/init.d/uptime_httpd /etc/rc2.d/S98uptime_httpd
ln -s /etc/init.d/uptime_httpd /etc/rc3.d/S98uptime_httpd
ln -s /etc/init.d/uptime_httpd /etc/rc4.d/S98uptime_httpd
ln -s /etc/init.d/uptime_httpd /etc/rc5.d/S98uptime_httpd

Thought this may come in handy for users who use free (as in beer & as in speech) operating systems, but want to take advantage of the scalability and features of up.time

Thanks up.time!