Data Query - Windows Server via SNMP

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
mlmargotto
Posts: 2
Joined: Tue Aug 22, 2006 10:00 am

Data Query - Windows Server via SNMP

Post by mlmargotto »

I'm creating my first Data Query File to obtain the diskFree Statistics, via SNMP, from SNMP_Information_Standard package.

The XML code used:

<interface>
<name>Buscar por unidades logicas</name>
<oid_index>.1.3.6.1.4.1.9600.1.1.1.1</oid_index>
<index_order>dskIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<dskIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9600.1.1.1.1.1</oid>
</dskIndex>
<dskFree>
<name>Disk Free</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9600.1.1.1.1.20</oid>
</dskFree>
</fields>
</interface>

I create the Data Query and receive this information on Verbose Query

Data Query Debug Information

+ Running data query [21].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/snmpi_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.1.1.1'
+ Located input field 'dskIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Found item [dskIndex='C:'] index: 58 [from value]
+ Found item [dskIndex='D:'] index: 58 [from value]
+ Found item [dskIndex='_Total'] index: 108 [from value]
+ Located input field 'dskFree' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.1.1.1.20'
+ Found item [dskFree='2317'] index: 58 [from value]
+ Found item [dskFree='10450'] index: 58 [from value]
+ Found item [dskFree='12767'] index: 108 [from value]
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/snmpi_disk.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/snmpi_disk.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/snmpi_disk.xml'

This result is OK but, if i want create graph for this host, only show me the logical volume D and _Total. The logical volume C doesn't show for me to create graph. Why?
User avatar
fabio
Posts: 24
Joined: Wed Nov 02, 2005 6:34 am
Location: Alicante SPAIN

Post by fabio »

Hello,

to implement the indexed Data Queries, you have to be very careful with the Index you use as the "primary key". It seems that both disks C and D have the same index, so probably they are the same physical disk but different partitions. You should try with other index or with other OID to walk, for example the SNMP Table for partitions or logical volumes that is what you really seem to be willing to check.

Hope this helps.

Best regards,

Fabio.
mlmargotto
Posts: 2
Joined: Tue Aug 22, 2006 10:00 am

Success

Post by mlmargotto »

Aloha Fabio.

I make the SNMPWALK on Cacti linux server and get the real index.

Thanks!

sdS

Moises
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests