milkacow
2007-04-11 20:14:25 UTC
Hello all. I am looking for some assistance using mrtg with a snmp
capable temperature monitor in my server room. i have been battling
this for two days now and can't figure this out.
I installed the TemPager MIB i got from AVTech onto my debian box
into /usr/share/snmp/mibs folder. after much trial and error (never
used snmp aside from mrtg and monitoring ethernet connections) i got
the following to work:
debian:/etc# snmpgetnext -c public -v1 192.168.66.119 TEMPAGER-
MIB:tempReading1F
TEMPAGER-MIB::tempReading1F.0 = INTEGER: 8172
or
debian:/etc# snmpget -Cf -v1 -c public 192.168.66.119 TEMPAGER-
MIB:tempReading1F.0
TEMPAGER-MIB::tempReading1F.0 = INTEGER: 8172
or
debian:/etc# snmpwalk -c public -v1 192.168.66.119 TEMPAGER-
MIB:tempReading1F
TEMPAGER-MIB::tempReading1F.0 = INTEGER: 8172
and
debian:/etc# snmptranslate -On TEMPAGER-MIB:tempReading1F
.1.3.6.1.4.1.20916.1.1.1.1.5
Above INTEGER is the correct reading of the temperature inside the
rack, as the device has a web interface. I know its a little warm,
but the whole reasoning behind this project is to convince upper
management to invest in better cooling devices.
On any note.
I have a mrtg config file with the following:
----------------------------------------
LoadMIBs: /usr/share/snmp/mibs/tempager.mib.txt
Target[tempager.s1]: 1.3.6.1.4.1.20916.1.1.1.1.5:***@192.168.66.119
PageTop[tempager.s1]: <H1>Temperature In Rack</H1>
WorkDir: /var/www/mrtg/temp
Options[tempager.s1]: nopercent,growright,gauge,noinfo
MaxBytes[tempager.s1]: 10000
Title[tempager.s1]: Temperature In Rack
YLegend[tempager.s1]: Degrees in F
ShortLegend[tempager.s1]: Degrees
LegendI[tempager.s1]: temp:
LegendO[tempager.s1]:
Legend1[tempager.s1]: temperature
----------------------------------------
then running mrtg i get:
-------------------------------------------
debian:/etc# mrtg mrtg-temp.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10.5)
SNMPv1_Session (remote host: "192.168.66.119" [192.168.66.119].161)
community: "public"
request ID: 1159437221
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for ifInOctets.5 ifOutOctets.5 sysUptime sysName on
***@192.168.66.119::::::v4only
at /usr/bin/mrtg line 1840
ERROR: Target[tempager.s1][_IN_] '1.3.6.1.4.1.20916.1.1.1.1. $target-
ERROR: Target[tempager.s1][_OUT_] '1.3.6.1.4.1.20916.1.1.1.1. $target-
-------------------------------------------------
firstly, it looks like its trying to poll something not specified:
debian:/etc# snmptranslate 1.3.6.1.2.1.2.2.1.10.5
IF-MIB::ifInOctets.5
secondly, i have no idea what mrtg is doing since there is the 5
missing from the Error line.
I have tried changing the target to anyway i can think of, with no
success.
Is there something wrong with my target line?
thanks in advance,
-Dustin
capable temperature monitor in my server room. i have been battling
this for two days now and can't figure this out.
I installed the TemPager MIB i got from AVTech onto my debian box
into /usr/share/snmp/mibs folder. after much trial and error (never
used snmp aside from mrtg and monitoring ethernet connections) i got
the following to work:
debian:/etc# snmpgetnext -c public -v1 192.168.66.119 TEMPAGER-
MIB:tempReading1F
TEMPAGER-MIB::tempReading1F.0 = INTEGER: 8172
or
debian:/etc# snmpget -Cf -v1 -c public 192.168.66.119 TEMPAGER-
MIB:tempReading1F.0
TEMPAGER-MIB::tempReading1F.0 = INTEGER: 8172
or
debian:/etc# snmpwalk -c public -v1 192.168.66.119 TEMPAGER-
MIB:tempReading1F
TEMPAGER-MIB::tempReading1F.0 = INTEGER: 8172
and
debian:/etc# snmptranslate -On TEMPAGER-MIB:tempReading1F
.1.3.6.1.4.1.20916.1.1.1.1.5
Above INTEGER is the correct reading of the temperature inside the
rack, as the device has a web interface. I know its a little warm,
but the whole reasoning behind this project is to convince upper
management to invest in better cooling devices.
On any note.
I have a mrtg config file with the following:
----------------------------------------
LoadMIBs: /usr/share/snmp/mibs/tempager.mib.txt
Target[tempager.s1]: 1.3.6.1.4.1.20916.1.1.1.1.5:***@192.168.66.119
PageTop[tempager.s1]: <H1>Temperature In Rack</H1>
WorkDir: /var/www/mrtg/temp
Options[tempager.s1]: nopercent,growright,gauge,noinfo
MaxBytes[tempager.s1]: 10000
Title[tempager.s1]: Temperature In Rack
YLegend[tempager.s1]: Degrees in F
ShortLegend[tempager.s1]: Degrees
LegendI[tempager.s1]: temp:
LegendO[tempager.s1]:
Legend1[tempager.s1]: temperature
----------------------------------------
then running mrtg i get:
-------------------------------------------
debian:/etc# mrtg mrtg-temp.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10.5)
SNMPv1_Session (remote host: "192.168.66.119" [192.168.66.119].161)
community: "public"
request ID: 1159437221
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for ifInOctets.5 ifOutOctets.5 sysUptime sysName on
***@192.168.66.119::::::v4only
at /usr/bin/mrtg line 1840
ERROR: Target[tempager.s1][_IN_] '1.3.6.1.4.1.20916.1.1.1.1. $target-
[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.)
or string at (eval 6) line 1.ERROR: Target[tempager.s1][_OUT_] '1.3.6.1.4.1.20916.1.1.1.1. $target-
[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.)
or string at (eval 7) line 1.-------------------------------------------------
firstly, it looks like its trying to poll something not specified:
debian:/etc# snmptranslate 1.3.6.1.2.1.2.2.1.10.5
IF-MIB::ifInOctets.5
secondly, i have no idea what mrtg is doing since there is the 5
missing from the Error line.
I have tried changing the target to anyway i can think of, with no
success.
Is there something wrong with my target line?
thanks in advance,
-Dustin