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.
Hello, I'm having a hard time getting an snmp query working. is it possible for me to create a snmp data query / xml file if the snmp data is outputting in the below format? Or will i have to use generic snmp oid and manually create the graphs?
I am most interested in getting the values of hostname and of .101.1 together.
A second option, taking the "indexed data" approach into account would be to create a SNMP Data Query: http://docs.cacti.net/manual:087:3a_adv ... alkthrough
Second one is more complex in creating the resource but is technically the better approach
Reinhard
Thanks, I've been trying option 2, but with no results. I created the snmp query as per the link you sent, and it keeps returning 0 items 0 rows.
+ Running data query [21].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ XML file parsed ok.
+ Executing script for list of indexes ' '
+ Executing script query ' '
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
I've been messing around with the regex stuff, still no luck unfortunately. Which part of the oid should i be targeting for the index parsing? I think I've tried everything. Any suggestions would be appreciated.
kayex wrote:Here's another snmpwalk and my regex stuff below. Still not finding any items/rows in Cacti unfortunately.
Post the verbose query from Cacti for the script.
Looks like the oid_index_parse is wrong too, the $ should be moved to the outside of the parans, i.e. <oid_index_parse>OID/REGEXP:([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
Thanks, I moved the $ in the regex to the outside. Here's the verbose output:
+ Running data query [21].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.12196.12.1.1.11'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
Thanks BSOD2600 - your XML did end up working. I had to remove and re-add the associated query to get it going.
When parsing, is it normal that it displays back all indexes? is there any way to just grab the X.2.1 ones as the indexes/names and X.101.1 as the output/value? When creating graphs, it has a bunch of garbage entries at the top, and the vsName (proper ones) are located at the very bottom.
+ Running data query [21].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.12196.12.1.1.11'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.2.1' value: 'CC_IMAP'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 143'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.2.1' value: 'CC_HTTPS'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 443'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.2.1' value: 'E2K3_DNS'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p udp 53'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.2.1' value: 'E2K3_LDAP'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 389'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.2.1' value: 'EFW_SMTP_262_263'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.101.1' value: '2171'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.2.1' value: 'EFW_SMTP_270_271'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.101.1' value: '5'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.2.1' value: 'EFW_SMTP_280_281'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.2.1' value: 'E2K3_SMTP'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.101.1' value: '9'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.2.1' value: 'E2K7_SMTP'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.2.1' value: 'OUTBOUND_MAIL_295_395'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.2.1' value: 'EFW_SMTP2_280_281'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.2.1' value: 'E2K7_SMTP_RELAY'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.2.1' value: 'OCS_AV_EDGE01_EXT_HTTPS'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 443'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.103.1' value: ''
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.2.1' value: 'OCS_AV_EDGE01_EXT_STUN'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p udp 3478'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.103.1' value: ''
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.98.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.2.1' results: '98.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.98.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.98.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.98.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.98.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.98.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.99.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.2.1' results: '99.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.99.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.99.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.99.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.99.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.99.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.99.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.100.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.2.1' results: '100.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.100.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.100.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.100.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.100.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.100.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.100.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.101.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.2.1' results: '101.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.101.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.101.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.101.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.101.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.101.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.101.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.102.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.2.1' results: '102.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.102.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.102.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.102.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.102.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.102.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.102.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.103.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.2.1' results: '103.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.103.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.103.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.103.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.103.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.103.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.103.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.104.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.2.1' results: '104.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.104.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.104.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.104.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.104.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.104.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.104.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.105.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.2.1' results: '105.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.105.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.105.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.105.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.105.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.105.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.105.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.106.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.2.1' results: '106.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.106.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.106.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.106.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.106.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.106.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.106.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.107.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.2.1' results: '107.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.107.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.107.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.107.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.107.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.107.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.107.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.108.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.2.1' results: '108.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.108.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.108.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.108.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.108.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.108.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.108.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.109.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.2.1' results: '109.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.109.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.109.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.109.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.109.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.109.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.109.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.110.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.2.1' results: '110.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.110.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.110.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.110.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.110.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.110.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.110.103.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.1.1' results: '1.3.6.1.4.1.12196.12.1.1.11.111.1.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.2.1' results: '111.2.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.3.1' results: '1.3.6.1.4.1.12196.12.1.1.11.111.3.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.100.1' results: '1.3.6.1.4.1.12196.12.1.1.11.111.100.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.101.1' results: '1.3.6.1.4.1.12196.12.1.1.11.111.101.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.102.1' results: '1.3.6.1.4.1.12196.12.1.1.11.111.102.1'
+ index_parse at OID: '1.3.6.1.4.1.12196.12.1.1.11.111.103.1' results: '1.3.6.1.4.1.12196.12.1.1.11.111.103.1'
+ Located input field 'vsName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.12196.12.1.1.11'
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.98.1.1 [from value]
+ Found item [vsName='CC_IMAP'] index: 98.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 143'] index: 1.3.6.1.4.1.12196.12.1.1.11.98.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.98.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.98.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.98.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.98.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.99.1.1 [from value]
+ Found item [vsName='CC_HTTPS'] index: 99.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 443'] index: 1.3.6.1.4.1.12196.12.1.1.11.99.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.99.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.99.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.99.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.99.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.100.1.1 [from value]
+ Found item [vsName='E2K3_DNS'] index: 100.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p udp 53'] index: 1.3.6.1.4.1.12196.12.1.1.11.100.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.100.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.100.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.100.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.100.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.101.1.1 [from value]
+ Found item [vsName='E2K3_LDAP'] index: 101.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 389'] index: 1.3.6.1.4.1.12196.12.1.1.11.101.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.101.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.101.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.101.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.101.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.102.1.1 [from value]
+ Found item [vsName='EFW_SMTP_262_263'] index: 102.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'] index: 1.3.6.1.4.1.12196.12.1.1.11.102.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.102.100.1 [from value]
+ Found item [vsName='2183'] index: 1.3.6.1.4.1.12196.12.1.1.11.102.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.102.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.102.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.103.1.1 [from value]
+ Found item [vsName='EFW_SMTP_270_271'] index: 103.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'] index: 1.3.6.1.4.1.12196.12.1.1.11.103.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.103.100.1 [from value]
+ Found item [vsName='7'] index: 1.3.6.1.4.1.12196.12.1.1.11.103.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.103.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.103.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.104.1.1 [from value]
+ Found item [vsName='EFW_SMTP_280_281'] index: 104.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'] index: 1.3.6.1.4.1.12196.12.1.1.11.104.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.104.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.104.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.104.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.104.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.105.1.1 [from value]
+ Found item [vsName='E2K3_SMTP'] index: 105.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'] index: 1.3.6.1.4.1.12196.12.1.1.11.105.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.105.100.1 [from value]
+ Found item [vsName='8'] index: 1.3.6.1.4.1.12196.12.1.1.11.105.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.105.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.105.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.106.1.1 [from value]
+ Found item [vsName='E2K7_SMTP'] index: 106.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'] index: 1.3.6.1.4.1.12196.12.1.1.11.106.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.106.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.106.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.106.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.106.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.107.1.1 [from value]
+ Found item [vsName='OUTBOUND_MAIL_295_395'] index: 107.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'] index: 1.3.6.1.4.1.12196.12.1.1.11.107.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.107.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.107.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.107.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.107.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.108.1.1 [from value]
+ Found item [vsName='EFW_SMTP2_280_281'] index: 108.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'] index: 1.3.6.1.4.1.12196.12.1.1.11.108.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.108.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.108.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.108.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.108.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.109.1.1 [from value]
+ Found item [vsName='E2K7_SMTP_RELAY'] index: 109.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 25'] index: 1.3.6.1.4.1.12196.12.1.1.11.109.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.109.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.109.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.109.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.109.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.110.1.1 [from value]
+ Found item [vsName='OCS_AV_EDGE01_EXT_HTTPS'] index: 110.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 443'] index: 1.3.6.1.4.1.12196.12.1.1.11.110.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.110.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.110.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.110.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.110.103.1 [from value]
+ Found item [vsName='1'] index: 1.3.6.1.4.1.12196.12.1.1.11.111.1.1 [from value]
+ Found item [vsName='OCS_AV_EDGE01_EXT_STUN'] index: 111.2.1 [from value]
+ Found item [vsName='/usr/bin/php -f /var/www/html/kempt/puller.php p udp 3478'] index: 1.3.6.1.4.1.12196.12.1.1.11.111.3.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.111.100.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.111.101.1 [from value]
+ Found item [vsName='0'] index: 1.3.6.1.4.1.12196.12.1.1.11.111.102.1 [from value]
+ Found item [vsName=''] index: 1.3.6.1.4.1.12196.12.1.1.11.111.103.1 [from value]
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/kemp_active_connections.xml'
Which of the values fits together? are the 101. 102 .103 a group or are the 1,101 a pair?
Multidimensional Mibs are quite a fun to deal with.
take a look at a Regex(p) website, they are easy to learn and to understand. There are a lot of babystep tutorials out there. It´s no big deal capturing 2 fields of the oid instead of one.
But therefor that I don´t understand what your Mib does and how Its organized I can´t tell.
1.3.6.1.4.1.12196.12.1.1.11.->98<- I guess this is the interessting you have to capture.
And this is the information group you want to gather:
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.1.1' value: '1'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.2.1' value: 'CC_IMAP'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.3.1' value: '/usr/bin/php -f /var/www/html/kempt/puller.php p tcp 143'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.100.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.101.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.102.1' value: '0'
+ Index found at OID: '1.3.6.1.4.1.12196.12.1.1.11.98.103.1' value: ''
This Regex capture both values fields in seperate buffers
\.12\.1\.1\.11\.([[:digit:]])\.([[:digit:]])\.1$
But I dont see anything in your dump, that is a usable index-return-value. Use the first field as a index.
Maybe you are faster writing a derived script-server-script (which is even faster) instead of trying to figure this out.