Net-SNMP lm_sensors temperature, fan speed, voltage monitor
Moderators: Developers, Moderators
Re: Fixed it
Sorry to wakeup this old thread
Just one question:
Anyone got lm_sensors with the net-snmp 5.1.3.1 on the SuSE Enterprise 9 (SLES9) running?
From which version on is there support for this?
If it doesn't work, I will have to write some scripts
Just one question:
Anyone got lm_sensors with the net-snmp 5.1.3.1 on the SuSE Enterprise 9 (SLES9) running?
From which version on is there support for this?
If it doesn't work, I will have to write some scripts
Re: Fixed it
I did it meanwhile.knebb wrote:If it doesn't work, I will have to write some scripts
To all who are interested in it:
First, the script itself:
Code: Select all
#!/bin/bash
TFILE="/tmp/tmp.$$"
sensors > $TFILE
RET=""
case $2 in
"temp")
RET=`grep -1 "$1 DDR VRM" $TFILE| tail -1|awk '{print $1}'|sed s/+//g|cut -d "▒" -f 1`
;;
"fan")
RET=`grep "$1 Fan" $TFILE | tail -1| awk '{print $3}'`
;;
"volt")
RET=`grep "$1 Volt" $TFILE| tail -1| awk '{print $3}'| sed s/+// g`
;;
esac
rm -f $TFILE
echo $RET
Code: Select all
exec .1.3.6.1.4.1.2021.555 lms1 /root/read_sensors.sh CPU1 temp
exec .1.3.6.1.4.1.2021.556 lms2 /root/read_sensors.sh CPU2 temp
exec .1.3.6.1.4.1.2021.557 lms3 /root/read_sensors.sh CPU1 volt
exec .1.3.6.1.4.1.2021.558 lms4 /root/read_sensors.sh CPU2 volt
exec .1.3.6.1.4.1.2021.559 lms5 /root/read_sensors.sh CPU1 fan
exec .1.3.6.1.4.1.2021.560 lms6 /root/read_sensors.sh CPU2 fan
Just if someone needs some hints.
- RaduAlexandru
- Posts: 43
- Joined: Mon Mar 28, 2005 5:06 pm
- Location: Bucharest, Romania
- Contact:
- RaduAlexandru
- Posts: 43
- Joined: Mon Mar 28, 2005 5:06 pm
- Location: Bucharest, Romania
- Contact:
- RaduAlexandru
- Posts: 43
- Joined: Mon Mar 28, 2005 5:06 pm
- Location: Bucharest, Romania
- Contact:
- RaduAlexandru
- Posts: 43
- Joined: Mon Mar 28, 2005 5:06 pm
- Location: Bucharest, Romania
- Contact:
I don't think so... Try using other scripts...
I found a nice replacement in http://forums.cacti.net/about11590.html
I found a nice replacement in http://forums.cacti.net/about11590.html
Thanks!!! I will have a look!!!!!!!RaduAlexandru wrote:I don't think so... Try using other scripts...
I found a nice replacement in http://forums.cacti.net/about11590.html
Who is online
Users browsing this forum: No registered users and 3 guests