Server Administration
  Home arrow Server Administration arrow Page 2 - Monitoring Temperatures with Cacti
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SERVER ADMINISTRATION

Monitoring Temperatures with Cacti
By: Barzan 'Tony' Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2009-10-14

    Table of Contents:
  • Monitoring Temperatures with Cacti
  • Monitoring Windows Systems
  • Monitoring Linux Systems
  • Final Thoughts

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Monitoring Temperatures with Cacti - Monitoring Windows Systems


    (Page 2 of 4 )

    On the previous page we already described our approach in a nutshell. This means by now you should have a clear picture of how we’ll accomplish our goals. So let’s begin with downloading the latest SpeedFan version and installing it onto our server(s) or system(s) which we’re planning to monitor. You can download SpeedFan from here.

    Working your way around its installation and possibly configuring it afterward won’t be a problem at all, so let’s move further. We want to make sure SpeedFan is always running on the necessary systems. So we can either make it run as a service, or put it into your startup applications, or anything similar. You should check out the Microsoft guide on How to create a Windows service by using Sc.exe. It’s a good read.

    All right, so we’ve made sure SpeedFan is always running on our systems. The next step is hooking up the systems with that so-called SpeedFan SNMP Extension. You can download the latest version from this page. At the time of writing it’s 0.1.0, but we’ve had positive experiences with 0.0.4-xx versions as well. So the pre-final v1 version stage shouldn’t discourage anyone. It’s nothing fancy, it does work—and that’s all.

    To work properly, of course, your Windows operating systems must have the Microsoft SNMP service installed, enabled, and currently running. Describing how to do this is beyond the scope of this article, but you can read these two guides. This article also requires that you have at least some sort of basic SNMP protocol experience, such as how to retrieve values (e.g.; snmpwalk) and what MIB OIDs are.

    Now you can create your own data templates based on data sources in the way that you want. This is where you can customize. In the table below you can find the list of OIDs that you need to use. The values are for temperatures, voltages, and fan speeds (RPMs). As you can see, the final digit is the only value that changes; it starts at 0 and goes up to 12. So if you want to monitor 10 fans, you’ll know their OIDs.

    “temp0” => ".1.3.6.1.4.1.16.0.1.0"

    “temp1” => ".1.3.6.1.4.1.16.0.1.1"

    “temp2” => ".1.3.6.1.4.1.16.0.1.2"

    [...]

    “temp12” => ".1.3.6.1.4.1.16.0.1.12"

    “volt0” => ".1.3.6.1.4.1.16.0.3.0"

    “volt1” => ".1.3.6.1.4.1.16.0.3.1"

    “volt2” => ".1.3.6.1.4.1.16.0.3.3"

    [...]

    “volt12” => ".1.3.6.1.4.1.16.0.3.12"

    “fan0” => ".1.3.6.1.4.1.16.0.2.0"

    “fan1” => ".1.3.6.1.4.1.16.0.2.1"

    “fan2” => ".1.3.6.1.4.1.16.0.2.2"

    [...]

    “fan12” => ".1.3.6.1.4.1.16.0.2.12"

    Once everything is up and running (SNMP service + SpeedFan + SNMP Extension for SpeedFan), then theoretically you should be able to test by retrieving the values of the above OIDs via the walk command. Try it before fiddling with Cacti. There is still a bit of formatting left to do. The values retrieved are in Celsius and one hundred times larger than the actual number. So you need to divide them by 100 and then convert to Fahrenheit, if need be.

    As a final pointer regarding this, if you are struggling with the above, then check out this thread by a moderator on Cacti Forums. In that thread you can find “ready-to-run” templates for Cacti in a ZIP archive. They come with clear instructions and a generic template. You can modify that to fit your needs. This way you don’t need to create all of your templates from scratch. All you need, though, are the OIDs.

    More Server Administration Articles
    More By Barzan 'Tony' Antal


       · Hi there!I saw your link to the Waikato LUG's Perl script for converting the...
     

    SERVER ADMINISTRATION ARTICLES

    - Understanding Awk in the UNIX Shell
    - Stream Editor in the UNIX Shell
    - Processes in the UNIX Shell
    - Migrating from Windows to Wine
    - Wine: Not Another Emulator
    - Preventive Measures to Block SSH Attacks
    - Monitoring Temperatures with Cacti
    - Cacti: RRDTool-based Graphing Solution
    - Network Magic 5.0 Review
    - Netfilter and Iptables Overview
    - Installing and Configuring Squid
    - Clickfree PC Backup Systems Compared
    - Squid, the Caching Proxy
    - Regular Expressions in the Unix Shell
    - Source Code Version Control Solutions





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 8 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek