Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I have been fighting for some time already, to get this working, but still, with no luck.
It's a "Alvarion Walkair3000 system" with 2933 enterprise ID, that I need to monitor.
SNMPWalk over device index OID .1.3.6.1.4.1.2933.1.2.17.1.1.1.1.1 returns:
+ Running data query [10].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/local/www/apache22/data/cactiBeta/resource/snmp_queries/alvarion_walkair.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2933.1.2.17.1.1.1.1.1' Index Count: 0
+ No SNMP data returned
+ Running data query [10].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/local/www/apache22/data/cactiBeta/resource/snmp_queries/alvarion_walkair.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2933.1.2.17.1.1.1.1.1' Index Count: 0
+ No SNMP data returned
I think the error message is pretty self explanatory. You need to add <oid_num_indexes> in your xml file.
<interface>
<name>Get SNMP Interfaces</name>
<description>Queries a host for a list of monitorable interfaces</description>
<oid_index>.1.3.6.1.2.1.2.2.1.1</oid_index>
<oid_num_indexes>.1.3.6.1.2.1.2.1.0</oid_num_indexes>
<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.2.2.1.1</oid>
</ifIndex>
</fields>
</interface>
classen wrote:
I think the error message is pretty self explanatory. You need to add <oid_num_indexes> in your xml file.
Thats not an error, thats warning with notice 'Index Count Changed' emulated by counting oid_index entries oid_num_indexes is optional field, as said in all documents as most devices doesn't have such value.
Any way, I tried it, and got same result. I found one OID for that device, with integer value of 14. That time, only difference was, it used snmpget for oid_num_indexes OID, and got value 14, showed it - the next snmpwalk for indexes, returned 0.
The warning is indeed a warning only; there's no need to change that.
But I'm wondering why the sweep over the index does not return sensible data. May you please provide us with the snmpwalk statement that you've used on cli? Did you select specific snmp options for that?
R.
I am experiencing the same problem with 0.8.7i/spine
+ Executing SNMP get for num of indexes @ '.1.3.6.1.4.1.2636.3.2.1.3.0' Index Count: 86
+ Debug: cacti_snmp_walk(x.x.x.x,public,.1.3.6.1.4.1.2636.3.2.3.1.1,2) - sizeof(snmp_indexes)=0 (I added this to check)
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2636.3.2.3.1.1' Index Count: 0
I have compared packet captures from a 'verbose query' and manually from the CLI. The bulkget cacti requests has max-repetitions set to 20 but the device does not respond when it is above 17
snmp.c in php5-snmp has max-repetition hard coded to 20.
pdu->max_repetitions = 20;
I decreased this to 15 and recompiled php5-snmp, restarted apache and the snmp queries now work within cacti.
Juniper MX80 and RE2000 (MX240/480/960) as at JunOS 11.X. The Juniper routers do no respond if the max-rep is above 17.
tjh
Wow, I just stumbled across the same issue. php-snmp unconditionally uses bulkwalk. You can't cahnge neither max-rep nor refrain from using bulkwalk. Only way to do this from "outside" is to use snmp version 1 instead of version 2. But this may have other drawbacks
R.
I am also facing the same issue for juniper m120 qos and TE tunnel template.
i also tried to check snmp.c in php5-snmp but there is no max-repetition hard coded to 20.
I am using UBUNTU.
Kindly help me to resolve this issue.
Running data query [21].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/juniper_intcos.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries
+ Executing script for list of indexes 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea index' Index Count: 0
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query index'
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query desc'
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query ifname'
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query ifalias'
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query iftype'
I am also facing the same issue for juniper m120 qos and TE tunnel template.
i also tried to check snmp.c in php5-snmp but there is no max-repetition hard coded to 20.
I am using UBUNTU.
Kindly help me to resolve this issue.
Running data query [21].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/juniper_intcos.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries
+ Executing script for list of indexes 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea index' Index Count: 0
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query index'
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query desc'
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query ifname'
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query ifalias'
+ Executing script query 'perl /usr/share/cacti/site/scripts/junipercos.pl 10.160.4.226 idea query iftype'
I has similar error until i changed Data Input Metod in Data Template, it was "Get Scrip Data", i changed it to "Get SNMP Data".