Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


lm-sensors + smart disk temps (localhost only no snmp)

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
Alives
Cacti User


Joined: 11 Jul 2005
Posts: 103

PostPosted: Sun Apr 06, 2008 3:04 pm    Post subject: lm-sensors + smart disk temps (localhost only no snmp) Reply with quote

This is a script/template I run on my box that also runs cacti so I do not need snmp enabled lm-sensors.

The number of sensors on my motherboard is very low so you will probably need to modify this script to make it work for you.

You will need to install lm-sensors for this to work. No, you do not need to re-compile it with snmp enabled. You will also need smartmontools to get the drive temperatures.



graph_image.php.png
 Description:
 Filesize:  33.12 KB
 Viewed:  1772 Time(s)

graph_image.php.png



cacti_graph_template_sensors_thermal.xml
 Description:

Download
 Filename:  cacti_graph_template_sensors_thermal.xml
 Filesize:  16.56 KB
 Downloaded:  233 Time(s)


sensors-cacti.pl
 Description:

Download
 Filename:  sensors-cacti.pl
 Filesize:  166 Bytes
 Downloaded:  173 Time(s)


disk-temp.pl
 Description:

Download
 Filename:  disk-temp.pl
 Filesize:  359 Bytes
 Downloaded:  155 Time(s)

Back to top
Alives
Cacti User


Joined: 11 Jul 2005
Posts: 103

PostPosted: Sun Apr 06, 2008 6:43 pm    Post subject: Reply with quote

The smart disk temps also requires a modification to your sudoers list:

Code:
www-data ALL=NOPASSWD: /usr/sbin/smartctl


In this case, www-data is the user that runs cacti and it is given access to run smartctl as root without requiring a password.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group