The regex is now working. It was a problem with a high max-repetition count hard coded within php5-snmp.
see thread - http://forums.cacti.net/viewtopic.php?f=12&t=44672
tjh
Search found 5 matches
- Sun Jan 01, 2012 4:31 pm
- Forum: Scripts and Templates
- Topic: Juniper MPLS LSP Data Query
- Replies: 4
- Views: 4006
- Sun Jan 01, 2012 4:29 pm
- Forum: Scripts and Templates
- Topic: Can't get SNMP index values with XML query, but snmpwalk can
- Replies: 11
- Views: 24435
Re: Can't get SNMP index values with XML query, but snmpwalk
I have resolved my problem. 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 ...
- Sun Jan 01, 2012 4:45 am
- Forum: Scripts and Templates
- Topic: Can't get SNMP index values with XML query, but snmpwalk can
- Replies: 11
- Views: 24435
Re: Can't get SNMP index values with XML query, but snmpwalk
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 index...
- Tue Dec 27, 2011 12:07 am
- Forum: Scripts and Templates
- Topic: Juniper MPLS LSP Data Query
- Replies: 4
- Views: 4006
Re: Juniper MPLS LSP Data Query
Now that I understand the oid_index_parse field I see that it is not correct. I have updated the field to use; ^.{27}\.(.*) Also; .*\.2636\.[0-9]\.[0-9]\.[0-9]\.[0-9]\.[0-9]\.(.*)$ Both produce the same result as above... is there a problem with the regex that I am using the parse the oid? index = ....
- Fri Dec 23, 2011 4:53 am
- Forum: Scripts and Templates
- Topic: Juniper MPLS LSP Data Query
- Replies: 4
- Views: 4006
Juniper MPLS LSP Data Query
Hi, After some assistance with a data query that is not returning any data when I run a 'verbose query' within cacti. Manual snmpwalk of the OID returns the data. As a base I have used the data query from this old post - http://forums.cacti.net/viewtopic.php?f=12&t=19985 I have updated the oid_i...