monitor hddtemp from remote machine

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

Moderators: Developers, Moderators

Post Reply
pregopresto
Posts: 4
Joined: Wed Aug 23, 2006 7:47 am

monitor hddtemp from remote machine

Post by pregopresto »

Hi!

Thanks to the great HowTo: install and configure the Net-SNMP agent I just managed to monitor the hddtemp from a remote machine.

I have the following Script:

Code: Select all

#!/bin/bash

smartctl -a /dev/sda | grep "Current Drive Temperature:" | awk '{print $4}'
and I added the following line to my /etc/snmp/snmpd.conf
exec temp /bin/bash /root/skripte/get_hddtemp_for_snmp.sh
In Cacti I went to the corresponding device, created a new Graph Template: SNMP - Generic OID Template and added the Custom Data OID. In my case it was: .1.3.6.1.4.1.2021.8.1.101.1

Read the above mentioned Howto in order to get better infos ;-) Maybe it helps somebody..

Greetings, prego
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

I'm glad this howto sounds useful to you :)

In the future I'll add a note about scripts which are slow to run (the solution is to run them in crontab, write their result to a log, and read the log using Net-SNMP).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest