Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Data Query - Windows Server via SNMP

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
mlmargotto



Joined: 22 Aug 2006
Posts: 2

PostPosted: Wed Aug 23, 2006 10:12 am    Post subject: Data Query - Windows Server via SNMP Reply with quote

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?
Back to top
fabio



Joined: 02 Nov 2005
Posts: 24
Location: Alicante SPAIN

PostPosted: Thu Aug 24, 2006 5:00 am    Post subject: Reply with quote

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.
Back to top
mlmargotto



Joined: 22 Aug 2006
Posts: 2

PostPosted: Thu Aug 31, 2006 8:09 am    Post subject: Success Reply with quote

Aloha Fabio.

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

Thanks!

sdS

Moises
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group