[mrtg] SNMP get problem.
Jan Hugo Prins
jhp at jhprins.org
Tue Aug 30 08:54:36 MEST 2005
Hello,
I'm trying to make some graphics of the temperature and the one other
value of 2 network modules (Laserbit Gigabit Pinto). There is an
application that is managing those systems and that is also a SNMP agent.
I can read all values with snmpwalk, but when I ask mrtg to give me those
values and make a nice plot of it I don't get anything. In debug mode I
see that it says something about a simple If (Interface?) 1 and then is
strips the last 1 from the first snmp string, at least that is what it
looks like to me.
I tested the same config file from linux and I got the same results.
Could someone please help me solve this problem?
Greetings,
Jan Hugo Prins
--------------------------config----------------------------------------
RunAsDaemon: no
Workdir: f:\userdata\iis\mrtg
EnableIPv6: no
Target[PiazaTemp]:
1.3.6.1.4.1.17587.12.2.1.10.1&1.3.6.1.4.1.17587.12.2.1.10.1:READSTRING at 130.14
4.215.238:::::2 MaxBytes[PiazaTemp]: 100
Options[PiazaTemp]: gauge, nopercent, absolute
YLegend[PiazaTemp]: Temperature laserbit Piaza
ShortLegend[PiazaTemp]: Temperature
WithPeak[PiazaTemp]: wmy
Title[PiazaTemp]: Laserbit Piaza
PageTop[PiazaTemp]: <H1>Laserbit Piaza</H1>
Target[MathildelaanTemp]:
1.3.6.1.4.1.17587.12.2.1.10.2&1.3.6.1.4.1.17587.12.2.1.10.2:READSTRING at 130.14
4.215.238:::::2 MaxBytes[MathildelaanTemp]: 100
Options[MathildelaanTemp]: gauge, nopercent, absolute
YLegend[MathildelaanTemp]: Temperature laserbit Mathildelaan
ShortLegend[MathildelaanTemp]: Temperature
WithPeak[MathildelaanTemp]: wmy
Title[MathildelaanTemp]: Laserbit Mathildelaan
PageTop[MathildelaanTemp]: <H1>Laserbit Mathildelaan</H1>
Target[PiazaDetector]:
1.3.6.1.4.1.17587.12.2.1.11.1&1.3.6.1.4.1.17587.12.2.1.11.1:READSTRING at 130.14
4.215.238:::::2 MaxBytes[PiazaDetector]: 100
Options[PiazaDetector]: gauge, nopercent, absolute
YLegend[PiazaDetector]: Detector level laserbit Piaza
ShortLegend[PiazaDetector]: Detector
WithPeak[PiazaDetector]: wmy
Title[PiazaDetector]: Laserbit Piaza
PageTop[PiazaDetector]: <H1>Laserbit Piaza</H1>
Target[MathildelaanDetector]:
1.3.6.1.4.1.17587.12.2.1.11.2&1.3.6.1.4.1.17587.12.2.1.11.2:READSTRING at 130.14
4.215.238:::::2 MaxBytes[MathildelaanDetector]: 100
Options[MathildelaanDetector]: gauge, nopercent, absolute
YLegend[MathildelaanDetector]: Detector level laserbit Mathildelaan
ShortLegend[MathildelaanDetector]: Detector
WithPeak[MathildelaanDetector]: wmy
Title[MathildelaanDetector]: Laserbit Mathildelaan
PageTop[MathildelaanDetector]: <H1>Laserbit Mathildelaan</H1>
----------------------------endconfig--------------------------------------
----------------------------debug------------------------------------------
C:\Program Files\mrtg\bin>perl mrtg laserbit.cfg2 --debug="snpo"
WARNING:
--snpo: run snmpget from
1.3.6.1.4.1.17587.12.2.1.10&1.3.6.1.4.1.17587.12.2.1.10
:READSTRING at 130.144.215.238
--snpo: simple If: .1
--snpo: simple If: .1
--snpo: SNMPGet from READSTRING at 130.144.215.238:::::2 --
1.3.6.1.4.1.17587.12.2.1.10.1,1.3.6.1.4.1.17587.12.2.1.10.1,sysUptime,sysName
SNMP Error:
no response received
SNMPv2c_Session (remote host: "130.144.215.238" [130.144.215.238].161)
community: "READSTRING"
request ID: 255616923
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at C:/Program Files/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 490
SNMPGET Problem for 1.3.6.1.4.1.17587.12.2.1.10.1
1.3.6.1.4.1.17587.12.2.1.10.1
sysUptime sysName on READSTRING at 130.144.215.238:::::2:v4only
at mrtg line 1921
--snpo: SNMPfound -- 'undef', 'undef', 'undef', 'undef'
WARNING: skipping because at least the query for
1.3.6.1.4.1.17587.12.2.1.10.1 on 130.144.215.238 did not succeed
WARNING: no data for
1.3.6.1.4.1.17587.12.2.1.10&1.3.6.1.4.1.17587.12.2.1.10:READSTRING at 130.144.21
5.238. Skipping further queries for Host 130.144.215.238 in this round.
ERROR: Target[piazatemp][_IN_] ' $target->[0]{$mode} ' did not eval into
defined data
ERROR: Target[piazatemp][_OUT_] ' $target->[0]{$mode} ' did not eval into
defined data
ERROR: Target[mathildelaantemp][_IN_] ' $target->[1]{$mode} ' did not eval
into defined data
ERROR: Target[mathildelaantemp][_OUT_] ' $target->[1]{$mode} ' did not
eval into defined data
ERROR: Target[piazadetector][_IN_] ' $target->[2]{$mode} ' did not eval
into defined data
ERROR: Target[piazadetector][_OUT_] ' $target->[2]{$mode} ' did not eval
into defined data
ERROR: Target[mathildelaandetector][_IN_] ' $target->[3]{$mode} ' did not
eval into defined data
ERROR: Target[mathildelaandetector][_OUT_] ' $target->[3]{$mode} ' did not
eval into defined data
-------------------------------enddebug----------------------------------
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list