Code: Select all
.1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58
Code: Select all
.1.3.6.1.4.1.9600.1.1.1.1.3
Code: Select all
.iso.3.6.1.4.1.9600.1.1.1...
TheWitness
Moderators: Developers, Moderators
Code: Select all
.1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58
Code: Select all
.1.3.6.1.4.1.9600.1.1.1.1.3
Code: Select all
.iso.3.6.1.4.1.9600.1.1.1...
it should be querying for.1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58
or so you can see it clearer.1.3.6.1.4.1.9600.1.1.1.1.1.3.2.83.58
.1.3.6.1.4.1.9600.1.1.1.1.3.iso.3.6.1.4.1.9600.1.1.1.1.1.2.83.58
Just to be sure...the <oid_index_parse> regexp should just return the part you consider the index so the red part in this sample, right ?Host: email, SNMP Query: win32 - test
Index: SNMPv2-SMI::enterprises.9600.1.2.61.1.1.4.48.32.67.58, Field Name: infInstance, Field Value: 0 C:
OID: .1.3.6.1.4.1.9600.1.2.61.1.1.SNMPv2-SMI::enterprises.9600.1.2.61.1.1.4.48.32.67.58
Host: email, SNMP Query: win32 - test
Index: SNMPv2-SMI::enterprises.9600.1.2.61.1.1.4.49.32.68.58, Field Name: infInstance, Field Value: 1 D:
OID: .1.3.6.1.4.1.9600.1.2.61.1.1.SNMPv2-SMI::enterprises.9600.1.2.61.1.1.4.49.32.68.58
Host: email, SNMP Query: win32 - test
Index: SNMPv2-SMI::enterprises.9600.1.2.61.1.1.4.50.32.70.58, Field Name: infInstance, Field Value: 2 F:
OID: .1.3.6.1.4.1.9600.1.2.61.1.1.SNMPv2-SMI::enterprises.9600.1.2.61.1.1.4.50.32.70.58
Host: email, SNMP Query: win32 - test
Index: SNMPv2-SMI::enterprises.9600.1.2.61.1.1.6.95.84.111.116.97.1, Field Name: infInstance, Field Value: _Total
OID: .1.3.6.1.4.1.9600.1.2.61.1.1.SNMPv2-SMI::enterprises.9600.1.2.61.1.1.6.95.84.111.116.97.108
So either the "positive lookbehind" I use in my regexp is not implemented or the xml parser gets confused by the <= that is used in the regexp.Warning: Variable passed to each() is not an array or object in /var/www/html/cacti/lib/data_query.php on line 490
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/cacti/lib/data_query.php:490)
in /var/www/html/cacti/host.php on line 75
Code: Select all
<query>
<name>Win32 Physical Disk Table - SNMP (Informant)</name>
<description>Using SNMP-Informant Queries for a list of logical disks and their stats</description>
<oid_index>.1.3.6.1.4.1.9600.1.2.61.1</oid_index>
<oid_index_parse>OID/REGEXP:^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.([0-9\.]+)$</oid_index_parse>
<index_order>infInstance</index_order>
<index_order_type>alphabetic</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<infInstance>
<name>Disk Instance</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9600.1.2.61.1.1</oid>
</infInstance>
<infAvgReadQueue>
<name>Avg Read Queue</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9600.1.2.61.1.10</oid>
</infAvgReadQueue>
<infAvgWriteQueue>
<name>Avg Write Queue</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9600.1.2.61.1.11</oid>
</infAvgWriteQueue>
<infCurrentQueue>
<name>Current Queue</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9600.1.2.61.1.15</oid>
</infCurrentQueue>
</fields>
</query>
The query still doesn't work as I was hoping but I think there is some progress. If I try to graph I get:+ Running data query [16].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/home/loonv/win32_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.2.61.1'
+ Located input field 'infInstance' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.2.61.1.1'
+ Found item [infInstance='0 C:'] index: 4.48.32.67.58 [from value]
+ Found item [infInstance='1 D:'] index: 4.49.32.68.58 [from value]
+ Found item [infInstance='2 F:'] index: 4.50.32.70.58 [from value]
+ Found item [infInstance='_Total'] index: 6.95.84.111.116.97.108 [from value]
+ Found data query XML file at '/home/loonv/win32_disk.xml'
+ Found data query XML file at '/home/loonv/win32_disk.xml'
+ Found data query XML file at '/home/loonv/win32_disk.xml'
But this could be a graph template problem.Notice: Undefined index: sgg_16 in /var/www/html/cacti/graphs_new.php on line 71
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/cacti/graphs_new.php:71) in /var/www/html/cacti/graphs_new.php on line 310
Users browsing this forum: No registered users and 0 guests