Get Hardware Sensors with lm_sensors

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
LiquidKernel
Posts: 8
Joined: Fri Sep 20, 2002 11:18 am
Location: San Francisco, CA
Contact:

Get Hardware Sensors with lm_sensors

Post by LiquidKernel »

Hello fellow cacti-users!

I started using cacti today, and have it setup perfectly. I can honestly say that this package is outstanding and is marvel of PHP programming.

I'm sure many of you are aware of lm_sensors, the hardware sensor monitoring package for Linux. There already is a script to send it's output to RRDtool using a shell script., but I thought it'd be great to have the ability to graph it inside cacti.

So here's my contribution, written in PHP.

You can get it here: http://www.gfxcafe.com/scripts/lm_sensors.phps

The basic details of how to set it up in cacti are in the comment. However, you might be a bit confussed on which proc devices are for which sensor, so here's a quick list:

inX - these devices are for voltages, depending the chip you're using there will be a different number of them.

tempX - different tempartures from thermistors on the motherboard (temp1 is usually the first CPU).

fanX - various fans.

I am not to sure about the others, if anyone knows (or if anything above is inaccurate), please correct me. Hope some of you find this useful :)
.: Serge
http://sergio.gfxcafe.com
chloubs

Post by chloubs »

tanks a lot for this script
santosh

whar is the file

Post by santosh »

:evil:
LiquidKernel
Posts: 8
Joined: Fri Sep 20, 2002 11:18 am
Location: San Francisco, CA
Contact:

Post by LiquidKernel »

Sorry for the dead link, fixed it, didn't realize I deleted the "scripts" folder when I was doing a cleanup on my web server's document root.
.: Serge
http://sergio.gfxcafe.com
nightwisher
Posts: 12
Joined: Fri Sep 05, 2008 9:14 am
Location: Bosnia
Contact:

Post by nightwisher »

Link is dead :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Plenty of other hardware temp scripts / templates on this forum -- Search.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests