-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
Milestone
Description
From a verbose query:
Click to show Data Query output for field 'volTotalSize2'
Total: 13.690000, Delta: 0.000000, Located input field 'volTotalSize2' [walk]
Total: 18.810000, Delta: 5.120000, Executing SNMP walk for data @ '.1.3.6.1.4.1.24681.2.2.19.1.3'
Found item [volTotalSize2='50.7 (50.7 TB)'] index: 1 [from regexp value parse]
Click to show Data Query output for field 'volUsedSize2'
Total: 18.810000, Delta: 0.000000, Located input field 'volUsedSize2' [walk]
Total: 21.320000, Delta: 2.510000, Executing SNMP walk for data @ '.1.3.6.1.4.1.24681.2.2.19.1.4'
Found item [volUsedSize2='23.0 (23.0 TB)'] index: 1 [from regexp value parse]
The XML used:
<interface>
<name>QNAP Volumes via SNMP</name>
<description>Queries a QNAP NAS for a list of monitorable volume</description>
<oid_index>.1.3.6.1.4.1.24681.2.2.19.1.1</oid_index>
<oid_num_indexes>.1.3.6.1.4.1.24681.2.2.18</oid_num_indexes>
<index_order>volDescr:volStatus:volIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<volIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.24681.2.2.19.1.1</oid>
</volIndex>
<volDescr>
<name>Description</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.24681.2.2.19.1.2</oid>
</volDescr>
<volTotalSize2>
<name>Total Size</name>
<method>walk</method>
<source>VALUE/REGEXP:([0-9]*(\.[0-9]*)?) TB$</source>
<direction>input-output</direction>
<oid>.1.3.6.1.4.1.24681.2.2.19.1.3</oid>
</volTotalSize2>
<volUsedSize2>
<name>Used Size</name>
<method>walk</method>
<source>VALUE/REGEXP:([0-9]*(\.[0-9]*)?) TB$</source>
<direction>input-output</direction>
<oid>.1.3.6.1.4.1.24681.2.2.19.1.4</oid>
</volUsedSize2>
<volStatus>
<name>Status</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.24681.2.2.19.1.5</oid>
</volStatus>
</fields>
</interface>
The results received from cacti.log using spine:
2021-06-23 18:12:03 - SPINE: Poller[Main Poller] PID[15243] Device[SAN6 - QNAP ((IP removed))] HT[1] DS[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0] Graphs[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0 ] TT[2326.70] SNMP: v2: (IP removed), dsname: volTotalSize2, oid: .1.3.6.1.4.1.24681.2.2.19.1.3.1, value: 50.7
2021-06-23 18:12:01 - SPINE: Poller[Main Poller] PID[15243] Device[SAN6 - QNAP ((IP removed))] HT[1] DS[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0] Graphs[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0 ] TT[1188.25] SNMP: v2: (IP removed), dsname: volUsedSize2, oid: .1.3.6.1.4.1.24681.2.2.19.1.4.1, value: U
2021-06-23 18:12:01 - SPINE: Poller[Main Poller] PID[15243] WARNING: Invalid Response, Device[SAN6 - QNAP ((IP removed))] HT[1] DS[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0] Graphs[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0 ] SNMP: v2: (IP removed), dsname: volUsedSize2, oid: .1.3.6.1.4.1.24681.2.2.19.1.4.1, value: 23.0 TB
The results received from cacti.log using cmd.php:
2021-06-23 18:17:03 - POLLER: Poller[Main Poller] PID[17114] Device[SAN6 - QNAP ((IP removed))] DS[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0] Graphs[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0 ] TT[1237.91] SNMP: v2: (IP removed), dsname: volUsedSize2, oid: .1.3.6.1.4.1.24681.2.2.19.1.4.1, output: 23.0
2021-06-23 18:17:01 - POLLER: Poller[Main Poller] PID[17114] Device[SAN6 - QNAP ((IP removed))] DS[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0] Graphs[SAN6 - QNAP ((IP removed)) - Space - Lun0San6_0 ] TT[1302.64] SNMP: v2: (IP removed), dsname: volTotalSize2, oid: .1.3.6.1.4.1.24681.2.2.19.1.3.1, output: 50.7
Cacti and spine version: 1.2.17