help: xml how to deal with No Index table in Mibs.

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

help: xml how to deal with No Index table in Mibs.

Post by menjia »

i am just a new cactiuser,yesterday i write the first snmp_queries xml file,i wanti it to get lists info from cisco gatekeeper, here is the code.

Code: Select all

<interface>
	<name>Get cisco Gatekeeper Zone Info</name>
	<description>Queries a Gk for a list of Lzone and Remote Zones</description>
	<oid_index>.1.3.6.1.4.1.9.10.40.1.1.1.1.2</oid_index>
	<fields>
		<ZoneName>
			<name>ZoneName</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9.10.40.1.1.1.1.2</oid>
		</ZoneName>
		<IrrFrequency>
			<name>Irr Frequency</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9.10.40.1.1.1.1.6</oid>
		</IrrFrequency>
		<LocalZone>
			<name>Local zone</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9.10.40.1.1.1.1.7</oid>
		</LocalZone>
		<EndpointTimeouts>
			<name>Gw Timeouts times</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9.10.40.1.1.1.1.10</oid>
		</EndpointTimeouts>
		<OtherFailures>
			<name>Other Failures</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9.10.40.1.1.1.1.11</oid>
		</OtherFailures>
		<LRQs>
			<name>Send LRQ times</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.9.10.40.1.1.1.1.12</oid>
		</LRQs>
	</fields>
</interface>
i have not find a oid-index in CiscoGatekeeperMib;like Ifindex in Interface table Mib-2;so i do not how to define the oid-index in my xml query file;i have tried make ZoneName and ZoneEntry as its oid-indx value;but failed,when i add this date query to a host(gatekeeper), i get the status:Success [0 Items, 0 Rows]
Data Query Debug Information:

Code: Select all

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/addon/GkZone.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.10.40.1.1.1.1.2'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/addon/GkZone.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/addon/GkZone.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/addon/GkZone.xml'
could you help me with it ,it is my firest xml file,i really want it to work.

here is the CiscoGatekeepermib structure.

http://forums.cacti.net/files/noindex.jpg
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

All variables that you will not graph should have <direction>input</direction>. Compare to the Interface Traffix XML Template at <path_cacti>/resources/snmp_queries
Reinhard
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

Post by menjia »

thanks

my xml works and graph is fine
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Would you please mind to share your results with us? To do so, please use the export function and post your Template(s) to the Scripts and Templates forum. Some screenshots of your graphs would be nice, too.
happy cactiing
Reinhard
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

Post by menjia »

ok, i have just thinked to do so,for it is my first xml graph template.

i will do it in few days.

this is my new problem,i have no idea how to resolve it,if you do no mid.share your idea about it .
http://forums.cacti.net/viewtopic.php?t=10697

thank .
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests