Re: XML files

<[email protected]> Wed, 12 Mar 2014 12:23:08 +0000
Newsgroups gmane.network.cacti.user
Message-ID <3551B37EE314514D824C3DADEF3AF3936639F689@GTLBMLXEN0001.bagmail.net>
Hello Ian!

After indexing you should change the method from <walk> to <get> in the xml like this:
            
                <infInCPU-Name>
                        <name>CPU-Name</name>
                        <method>get</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.2.1.47.1.1.1.1.7</oid>
                </infInCPU-Name>

>From <get> you only collect data from the index you created from .1.3.6.1.4.1.9.9.109.1.1.1.1.2

Regards
klaus

-----Ursprüngliche Nachricht-----
Von: Ian Bennett [mailto:[email protected]] 
Gesendet: Freitag, 28. Februar 2014 11:46
An: [email protected]
Betreff: [cacti-user] XML files

Evening all,
	I've been tinkering with snmp queries, writing XML files but have struck a snag.
	All of what I've done so far has used a single index to gather data from multiple instances, but
what if I need to gather data using different indexes??
	Here is what I'm trying to do. We have a number of Cisco 6500 switches in our network and I want to
collect CPU data for graphing. Depending on the types of modules installed in the slots, will depend
on how many CPUs are available to be interrogated.
	All the CPU info is under the base OID of .1.3.6.1.4.1.9.9.109.1.1.1.1
	The following is a walk of that OID from one of our switches:
.1.3.6.1.4.1.9.9.109.1.1.1.1.2.1 = 2017  #cpmCPUTotalPhysicalIndex
.1.3.6.1.4.1.9.9.109.1.1.1.1.2.2 = 2001
.1.3.6.1.4.1.9.9.109.1.1.1.1.2.3 = 5001
.1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 = 10    #cpmCPUTotal5sec
.1.3.6.1.4.1.9.9.109.1.1.1.1.3.2 = 55
.1.3.6.1.4.1.9.9.109.1.1.1.1.3.3 = 0
.1.3.6.1.4.1.9.9.109.1.1.1.1.4.1 = 5     #cpmCPUTotal1min
.1.3.6.1.4.1.9.9.109.1.1.1.1.4.2 = 30
.1.3.6.1.4.1.9.9.109.1.1.1.1.4.3 = 0
.1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 = 2     #cpmCPUTotal5min
.1.3.6.1.4.1.9.9.109.1.1.1.1.5.2 = 17
.1.3.6.1.4.1.9.9.109.1.1.1.1.5.3 = 0
	I've trimmed down the output for clarity.
	I can derive the index by REGEXing the OID .1.3.6.1.4.1.9.9.109.1.1.1.1.2, which allows me to
gather the 5 sec, 1 min and 5 min loads for each of the CPUs (three in this case).
	My problem is I also want to gather the "entPhysicalName" from a different OID
(.1.3.6.1.2.1.47.1.1.1.1.7) using the "cpmCPUTotalPhysicalIndex" reported by the first OIDs as an
index. A walk of them reveals:
.1.3.6.1.2.1.47.1.1.1.1.7.2017 = "CPU of Routing Processor"
.1.3.6.1.2.1.47.1.1.1.1.7.2001 = "CPU of Switching Processor"
.1.3.6.1.2.1.47.1.1.1.1.7.5001 = "CPU of Module 9"
	I want to use these values as inputs to describe to a user what the CPUs are. Thoughts??
	I've read all the doco I can find and can't see anything close to what I want to do.
	Any guidance or hints would be much appreciated.

Ian

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
cacti-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cacti-user

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech