[mrtg] Re: Cisco 4003

Daniel J McDonald dan.mcdonald at austinenergy.com
Thu Aug 7 14:35:43 MEST 2003


On Wed, 2003-08-06 at 12:05, Chu, Quang wrote:
> Hi all,
> I am having problem monitoring for anything beside bandwidth and errors for
> the cisco 4003(version 5.4).  I am interesting in monitor for CPU,
> PowerSupply, and Temperature on this switch.  The error msg that I keep
> getting is I tried loading the MIBs with the LoadMIBs option, but that isn't
> working either. 

You need to add to your LOADMIBS line every mib that is in the IMPORTS
section of the mib you want.  The mib parser is pretty unsofficitated.
IMPORTS
    Integer32, IpAddress, TimeTicks, Counter32
            FROM SNMPv2-SMI-v1
    OBJECT-TYPE
            FROM RFC-1212
    TRAP-TYPE
            FROM RFC-1215
    DisplayString, RowStatus, TruthValue
            FROM SNMPv2-TC-v1
    fddimibPORTSMTIndex, fddimibPORTIndex
            FROM FDDI-SMT73-MIB
    OwnerString, ifName, ifIndex
            FROM IF-MIB
    Unsigned32
            FROM CISCO-TC
    workgroup
            FROM CISCO-SMI
    ringStationMacAddress
            FROM TOKEN-RING-RMON-MIB
    PhysicalIndex
            FROM ENTITY-MIB
    VlanIndex
            FROM CISCO-VTP-MIB;

to get those items, you will need at least to add the CISCO-TC,
CISCO-SMI, and ENTITY-MIB to your LoadMibs: statement.

>  The configuration for the switch has IP permit set for snmp
> as well as snmp enabled with public community string.  Has anyone got
> anything else beside bandwidth and errors monitor on this switch? If yes,
> can you send me part of the cfg? Any help is greatly appreciated.
>  
> My cfg for power supply status
> 
> #  or for NT
> WorkDir: C:\mrtg\thresholdresult
> 
> ### Global Defaults
> 
> LoadMIBs: C:\mrtg\bin\CiscoMIB\CISCO-STACK-MIB.oid
> RunAsDaemon: Yes
> 
> #  to get bits instead of bytes and graphs growing to the right
> Options[_]: integer,gauge,noo
> 
> EnableIPv6: no
> 
> ## Interface 1 >> Descr: 'sc0' | Name: 'sc0' | Ip: '192.168.10.89' | Eth:
> '00-03-6b-12-13-ff' ###
> 
> Target[192.168.10.89-CPU]: ]:
> chassisPs1Status&chassisPs2Status:public at 192.168.10.89:
> SetEnv[192.168.10.89-CPU]: MRTG_INT_IP="192.168.10.89" MRTG_INT_DESCR="sc0"
> MaxBytes[192.168.10.89-CPU]: 100
> Title[192.168.10.89-CPU]: CPU Percentage for 192.168.10.89
> 
> ------------------------------------------------------------
> 
> My Error
> 
> C:\mrtg\bin>perl mrtg test4003.cfg
> Daemonizing MRTG ...
> Do Not close this window. Or MRTG will die
> Unknown SNMP var chassisPs1Status
>  at mrtg line 1751
> Unknown SNMP var chassisPs2Status
>  at mrtg line 1751
> WARNING: Expected a number but got '20:01:17'
> WARNING: Expected a number but got 'PDX4K3-12-3'
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
-- 
Daniel J McDonald <dan.mcdonald at austinenergy.com>
Austin Energy

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list