How would I go about creating the correct xml file as whenever I try to graph I am getting nan, O. The weird thing I noticed was cacti was adding the pool name to the oid?
SNMP WALK result
[root@syslog snmp_queries]# snmpwalk -c default@public -v2c 10.109.3.113 1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.1.6.112.111.111.108.45.52.0.196.200.88.21 = STRING: "pool-4"
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.1.6.112.111.111.108.45.53.0.196.200.88.5 = STRING: "pool-5"
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.1.6.112.111.111.108.45.54.0.196.200.88.22 = STRING: "pool-6"
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.4.6.112.111.111.108.45.52.0.196.200.88.21 = INTEGER: 1
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.4.6.112.111.111.108.45.53.0.196.200.88.5 = INTEGER: 1
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.4.6.112.111.111.108.45.54.0.196.200.88.22 = INTEGER: 1
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.5.6.112.111.111.108.45.52.0.196.200.88.21 = INTEGER: 20851
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.5.6.112.111.111.108.45.53.0.196.200.88.5 = INTEGER: 176
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.5.6.112.111.111.108.45.54.0.196.200.88.22 = INTEGER: 23101
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.6.6.112.111.111.108.45.52.0.196.200.88.21 = INTEGER: 20851
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.6.6.112.111.111.108.45.53.0.196.200.88.5 = INTEGER: 176
SNMPv2-SMI::enterprises.2636.3.39.1.7.1.1.4.1.6.6.112.111.111.108.45.54.0.196.200.88.22 = INTEGER: 23101
[root@syslog snmp_queries]# vi srxnat.xml
XML FILE
<interface>
<name>NAT pool index</name>
<oid_index>.1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.1</oid_index>
<index_order>VSINDEX</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<VSINDEX>
<name>Index</name>
<source>index</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.1</oid>
</VSINDEX>
<jnxJsNatSrcPoolName>
<name>poolname</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.1</oid>
</jnxJsNatSrcPoolName>
<SrcNumPortInuse>
<name>portsinuse</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.5</oid>
</SrcNumPortInuse>
</fields>
</interface>
Cacti verbose query
+ Running data query [23].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/srxnat.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.1'
+ Index found at OID: '1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.1.6.112.111.111.108.45.52.0.196.200.88.21' value: 'pool-4'
+ Index found at OID: '1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.1.6.112.111.111.108.45.53.0.196.200.88.5' value: 'pool-5'
+ Index found at OID: '1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.1.6.112.111.111.108.45.54.0.196.200.88.22' value: 'pool-6'
+ Located input field 'jnxJsNatSrcPoolName' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.2636.3.39.1.7.1.1.4.1.1'
+ Found item [jnxJsNatSrcPoolName='pool-4'] index: 21 [from value]
+ Found item [jnxJsNatSrcPoolName='pool-5'] index: 5 [from value]
+ Found item [jnxJsNatSrcPoolName='pool-6'] index: 22 [from value]
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/srxnat.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/srxnat.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/srxnat.xml'
~
~
SNMP Index is a STRING Juniper srx nat
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP Index is a STRING Juniper srx nat
So what is the problem? The output looks fine to me.
R.
R.
Who is online
Users browsing this forum: No registered users and 6 guests