Your device is not responding to the SNMP queries; this means a configuration 
error in either the device or in your Target line.

Check your device is contactable by ping; that there is no SNMP ACL in place 
preventing you; that you have the correct community string; that the IP is 
correct.

Try using snmpwalk to browse the OID from the commandline to test.

Steve

Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
[email protected]<mailto:[email protected]>
Ph: +64 9 373 7599 ext 86487

________________________________
From: mrtg [[email protected]] on behalf 
of Roger Smith [[email protected]]
Sent: Wednesday, 25 November 2015 5:44 a.m.
To: [email protected]
Subject: [FORGED] Re: [mrtg] [FORGED] MRTG and IT Watchdog sensor

I also tried the OID themselves:

Target[10.45.0.131_Temps]: 
1.3.6.1.4.1.21239.5.1.2.1.5&1.3.6.1.4.1.21239.5.1.4.1.5:[email protected]<mailto:1.3.6.1.4.1.21239.5.1.2.1.5%261.3.6.1.4.1.21239.5.1.4.1.5%[email protected]>


I got:
2015-11-24 08:44:18 -- SNMP Error:
receiving response PDU: An existing connection was forcibly closed by the 
remote host.
SNMPv1_Session (remote host: "10.45.0.131" [10.45.0.131].161)
                  community: "tcoe-snmp"
                 request ID: 1669607121
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at c:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 497
2015-11-24 08:44:18 -- SNMPGET Problem for 1.3.6.1.4.1.21239.5.1.2.1.5 
1.3.6.1.4.1.21239.5.1.4.1.5 sysUptime sysName on 
[email protected]::::::v4only
 at c:\mrtg\bin\mrtg line 2330
2015-11-24 08:44:18 -- 2015-11-24 08:44:18: ERROR: 
Target[10.45.0.131_temps][_IN_] ' $target->[0]{$mode} ' did not eval into 
defined data
2015-11-24 08:44:18 -- 2015-11-24 08:44:18: ERROR: 
Target[10.45.0.131_temps][_OUT_] ' $target->[0]{$mode} ' did not eval into 
defined data


-------------------------------------------------------------------
Date: Fri, 20 Nov 2015 21:36:46 +0000
From: Steve Shipway <[email protected]<mailto:[email protected]>>
To: Roger Smith <[email protected]<mailto:[email protected]>>, 
"[email protected]<mailto:[email protected]>"
        <[email protected]<mailto:[email protected]>>
Subject: Re: [mrtg] [FORGED]  MRTG and IT Watchdog sensor
Message-ID:
        
<5820dc553954e44fa1a36c78323ad148a3f95...@uxcn10-6.uoa.auckland.ac.nz<mailto:5820dc553954e44fa1a36c78323ad148a3f95...@uxcn10-6.uoa.auckland.ac.nz>>
Content-Type: text/plain; charset="iso-8859-1"

Target[10.45.0.135_internalTemp]: 
tempSensorTemp:[email protected]<mailto:tempSensorTemp%[email protected]><mailto:tempSensorTemp%[email protected]<mailto:tempSensorTemp%[email protected]>>

You must always give exactly two metrics to MRTG per Target (this is 
historical, because originally this was inbound and outbound data for network 
traffic).  If it is a single value, either duplicate it, or use pseudoZero.

Target[10.45.0.135_internalTemp]: 
tempSensorTemp&pseudoZero:[email protected]<mailto:tempSensorTemp%26pseudoZero%[email protected]><mailto:tempSensorTemp%[email protected]<mailto:tempSensorTemp%[email protected]>>

This is also assuming, of course, that the symbolic name tempSensorTemp can be 
expanded to an OID; for this to work, you need to have the MIB properly 
installed or referred to in the MRTG config file.  Otherwise, you can always 
use the numerical OID instead.

Now, your OID actually returns the value in deci-degrees, so you need to divide 
by 10 before storing to make the value an SI unit (Best Practice is to store 
values as SI units).

Target[10.45.0.135_internalTemp]: 
tempSensorTemp&pseudoZero:[email protected]<mailto:tempSensorTemp%26pseudoZero%[email protected]>
  /  10
<mailto:tempSensorTemp%[email protected]<mailto:tempSensorTemp%[email protected]>>

The spaces around the '/' are required.  This will mean the value is stored in 
degrees, and will display the correct numbers.  However, if you are not using 
RRDTool and are just using native MRTG, decimals are not supported in the 
backend storage, and so you might instead need to do

Factor[10.45.0.135_internalTemp]: 0.1

... which will divide by 10 at graphing time instead.

Since you do not want to graph the second item, just use the 'noo' ('No 
outgoing') option to suppress it.

Options[10.45.0.135_internalTemp]: gauge growright noo

HTH

Steve

Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>
Ph: +64 9 373 7599 ext 86487<tel:%2B64%209%20373%207599%20ext%2086487>

--
Roger Smith
Director, Information Systems
Tulare County Office of Education
559-739-0324
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to