[mrtg] Unknown SNMP Variable

Paul Rising paul.rising at redit.com
Thu Mar 17 08:51:55 CET 2011


I have found a work around to MRTG issuing the Unknown SNMP Variable.  The
issue is that when you use the option LoadMibs and point to the mib file,
MRTG is not creating the oid-mib-cache.txt file in the WorkDir.  To solve
this issue, I created the oid-mib-cache.txt file and for the variable and
corresponding OID minus the index value.

oid-mib-cache.txt
tpEsCircuitIRMS .1.3.6.1.4.1.10381.1.3.1.3.2.1.12

MRTG config file target line (includes the index value)
Target[ckt_amp_1]: tpEsCircuitIRMS.1&tpEsCircuitIRMS.1:<community>@<ip
address>

I hope this information is useful.

----
Paul - Network Operations Specialist




> From: Paul Rising <paul.rising at redit.com>
> Date: Wed, 9 Feb 2011 05:04:05 -0800
> To: Daniel McDonald <dan.mcdonald at austinenergy.com>
> Cc: mrtg <mrtg at lists.oetiker.ch>
> Subject: Re: [mrtg] Unknown SNMP Variable
> Resent-From: Paul Rising <paul.rising at redit.com>
> Resent-Date: Wed,  9 Feb 2011 05:04:26 -0800 (PST)
> 


> It does have IMPORTS:
> 
> IMPORTS
>    org, dod, internet, directory, mgmt, experimental, private,
> enterprises
>      FROM RFC1155-SMI
>    OBJECT-TYPE
>      FROM RFC-1212
>    DisplayString
>      FROM RFC-1213;
> 
> The MIB is supplied by the vendor for the power system.  Is there a
> possible bug in FreeBSD 8.x?  This configuration works on previous
> versions of FreeBSD 7.x.
> 
> ----
> Paul - Network Operations Specialist
> 
> 
> 
> 
> On Feb 8, 2011, at 5:39 AM, Daniel McDonald wrote:
> 
>> On 2/8/11 7:15 AM, "Paul Rising" <Paul.Rising at redIT.com> wrote:
>> 
>>> I am receiving the following SNMP variable errors:
>>> 
>>> Unknown SNMP var PB1-CB1-Current.0
>>>  at /usr/local/bin/mrtg line 2343
>>> Unknown SNMP var PB1-Current-Ground-Panelboard.0
>>>  at /usr/local/bin/mrtg line 2343
>>> 2011-02-04 03:45:00: WARNING: Expected a number but got '166 days,
>>> 2:42:04'
>>> 2011-02-04 03:45:00: WARNING: Expected a number but got 'Not Set'
>>> 
>>> 
>>> Below is a portion of the mrtg configuration file:
>>> ## Global Config Options
>>> WorkDir: /home/mrtg/PDU_CABS
>>> LoadMibs: /usr/local/share/snmp/mibs/BCMSplus-sub.mib
>> 
>> Does the /usr/local/share/snmp/mibs/BCMSplus-sub.mib file have any
>> IMPORTS
>> lines?  You may need to load other pre-requisite mibs in order to
>> parse that
>> file properly.
>> 
>> -- 
>> Daniel J McDonald, CCIE # 2495, CISSP # 78281
>> 
>> _______________________________________________
>> mrtg mailing list
>> mrtg at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
> 
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg




More information about the mrtg mailing list