really confused...
so this is the data xml now:
Code: Select all
<interface>
<name>CC-AS Statistics</name>
<description>listing the service-based charging (FBC) CC-AS statistics for each APN.</description>
<oid_index>.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2</oid_index>
<oid_index_parse>OID/REGEXP:^[.]*1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.(.*)</oid_index_parse>
<index_order>ccasIndex</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<ccasIndex>
<name>Index</name>
<source>index</source>
<direction>input</direction>
</ccasIndex>
<ccasName>
<name>CC AS Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2</oid>
</ccasName>
<apnName>
<name>APN Name</name>
<method>walk</method>
<source>OID/REGEXP:^[.]*1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.(.*)\.[0-9]{1,3}$</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2</oid>
</apnName>
....
<ccasUserUnknown>
<name>User Unknown</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.10</oid>
</ccasUserUnknown>
</fields>
</interface>
+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ggsnCcas.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2'
+ Index found at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.26.5' value: 'P-gy'
+ Index found at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.31.1' value: 'A-OCS'
+ Index found at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.32.3' value: 'A-OCS-EMM_DAS'
...
+ index_parse at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.26.5' results: '26.5'
+ index_parse at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.31.1' results: '31.1'
+ index_parse at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.32.3' results: '32.3'
...
+ Inserting index data for field 'ccasIndex' [value='26.5']
+ Inserting index data for field 'ccasIndex' [value='31.1']
+ Inserting index data for field 'ccasIndex' [value='32.3']
...
+ Located input field 'ccasName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2'
+ Found item [ccasName='P-gy'] index: 26.5 [from value]
+ Found item [ccasName='A-OCS'] index: 31.1 [from value]
+ Found item [ccasName='A-OCS-EMM_DAS'] index: 32.3 [from value]
...
+ Located input field 'apnName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2'
+ Found item [apnName='26'] index: 26.5 [from regexp oid parse]
+ Found item [apnName='31'] index: 31.1 [from regexp oid parse]
+ Found item [apnName='32'] index: 32.3 [from regexp oid parse]
...
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ggsnCcas.xml'
graph is created ok, and the data source looks fine with the correct index....
HOWEVER - if spine is the poller the rrd file doesn not get created...
cmd. php creates the rrd file and collects the data, but running either one from comand line, yields:
02/09/2011 05:47:33 PM - SPINE: Poller[0] Host[40] TH[1] RECACHE: Processing 149 items in the auto reindex cache for '10.x.x.x'
No log handling enabled - turning on stderr logging
snmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failure02/09/2011 05:47:35 PM - SPINE: Poller[0] Host[40] TH[1] NOTE: There are '8' Polling Items for this Host
02/09/2011 05:47:35 PM - SPINE: Poller[0] Host[40] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
or
php -q /var/www/cacti/cmd.php 40 40
No log handling enabled - turning on stderr logging
snmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failuresnmp_build: unknown failure
while cmd is polling, data is collected.
if i turn spine on - no more collection
unless i change the data query by modifyng the xml so it includes the leading . in the index:
Running data query [11].
Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ggsnCcas.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2'
+ Index found at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.26.5' value: 'P-gy'
+ Index found at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.31.1' value: 'A-OCS'
+ Index found at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.32.3' value: 'A-OCS-EMM_DAS'
...
+ index_parse at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.26.5' results: '.26.5'
+ index_parse at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.31.1' results: '.31.1'
+ index_parse at OID: '1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2.32.3' results: '.32.3'
...
+ Inserting index data for field 'ccasIndex' [value='.26.5']
+ Inserting index data for field 'ccasIndex' [value='.31.1']
+ Inserting index data for field 'ccasIndex' [value='.32.3']
...
+ Located input field 'ccasName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2'
+ Found item [ccasName='P-gy'] index: .26.5 [from value]
+ Found item [ccasName='A-OCS'] index: .31.1 [from value]
+ Found item [ccasName='A-OCS-EMM_DAS'] index: .32.3 [from value]
...
+ Located input field 'apnName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.2'
+ Found item [apnName='.26'] index: .26.5 [from regexp oid parse]
+ Found item [apnName='.31'] index: .31.1 [from regexp oid parse]
+ Found item [apnName='.32'] index: .32.3 [from regexp oid parse]
...
now spine is happy:
02/09/2011 06:08:54 PM - SPINE: Poller[0] Host[40] TH[1] NOTE: There are '8' Polling Items for this Host
02/09/2011 06:08:54 PM - SPINE: Poller[0] Host[40] TH[1] DS[8562] SNMP: v2: x.x.x.x, dsname: snmp_oid, oid: .1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.10.33.2, value: 0
02/09/2011 06:08:54 PM - SPINE: Poller[0] Host[40] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
02/09/2011 06:08:54 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
02/09/2011 06:08:54 PM - SPINE: Poller[0] DEBUG: Thread Cleanup Complete
but newly created graphs dont work as the index value starts with a '.'
02/09/2011 06:15:22 PM - SPINE: Poller[0] Host[40] TH[1] DS[8562] SNMP: v2: x.x.x.x, dsname: snmp_oid, oid: .1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.10.33.2, value: 0
02/09/2011 06:15:22 PM - SPINE: Poller[0] Host[40] TH[1] DS[8563] SNMP: v2: x.x.x.x, dsname: snmp_oid, oid: .1.3.6.1.4.1.10923.1.1.1.1.7.1.11.1.10..33.2, value: U
what is the official possition on the leading . when index values are parsed out of the oid with regular expressions?
why doesn't spine work on what seems to be correct data queries, while cmd.php does?
please help, any assistance greately appreciated
sorry to repost this, but i never got a reply to:
http://forums.cacti.net/viewtopic.php?f=2&t=41639
any help greately appreciated