|
|
| Author |
Message |
Alives Cacti User
Joined: 11 Jul 2005 Posts: 103
|
Posted: Sun Apr 06, 2008 3:04 pm Post subject: lm-sensors + smart disk temps (localhost only no snmp) |
|
|
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.
| Description: |
|
| Filesize: |
33.12 KB |
| Viewed: |
1772 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
cacti_graph_template_sensors_thermal.xml |
| Filesize: |
16.56 KB |
| Downloaded: |
233 Time(s) |
| Description: |
|
 Download |
| Filename: |
sensors-cacti.pl |
| Filesize: |
166 Bytes |
| Downloaded: |
173 Time(s) |
| 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
|
Posted: Sun Apr 06, 2008 6:43 pm Post subject: |
|
|
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 |
|
 |
|