1. 'Linux: Show Graphical Layout of Disk Temperatures'

    Sun 03 January 2010

    graphic, representation

    To get a visual representation of hard drive temperatures, I wrote a small script. The output of this script looks like this:

    imageThis output is tailored to the exact disk lay-out of my storage server. However, it is also usable for other servers. You have to edit the lay-out depending on the system.

    This script assumes that you have smartmontools installed on your system. It uses smartctl to obtain the drive temperatures.

    The script can be found here or here in tgz format.

    If you have any comments email me, see the About page for contact details.
  2. Monitor Power Usage With Your UPS

    Wed 18 November 2009

    If a system is connected to a UPS (Uninterruptible Power Supply), it is possible to determine how much power it consumes. For this purpose, I wrote a small script:

     Host:~# ./ups.sh
    
     UPS model: Back-UPS RS 1200 LCD
     APC model: Back-UPS RS 1200 LC
     Capacity: 720 Watt
     Load: 18 Percent
     Usage: 129 Watt
     Time left: 33 Minutes
     Status: ONLINE
    
     Host:~# ./ups.sh
    
     UPS model: Back-UPS RS 1200 LCD
     APC model: Back-UPS RS 1200 LC
     Capacity: 720 Watt
     Load: 19 Percent
     Usage: 136 Watt
     Time left: 22 Minutes
     Status: ONBATT
    

    This script assumes that:

    1. You are running a unix

    2. You run apcupsd

    The script can be downloaded here:

    If you have any comments email me, see the About page for contact details.

Page 2 / 2