I am trying to create a SNMP query for the krFileSystemGroup of the SMC MIB. I have attached the query file so that you can see what I have done so far.
Due to the way SUN have setup the mib I have to use an OID/REGEXP to get the index value. I have 3 input fields, Index, MountPoint and DiskName. The correct index value is used for the first input field but the 2nd and 3rd use the full OID as the index value. This means that the wrong value is returned in the query. I have included the verbose query results below so you can see what is returned by the poller.
Can anyone tell me what I am doing wrong.
Thanks in advance.
******************************************************
DATA QUERY DEBUG INFORMATION
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\web\Apache2\htdocs\cacti/resource/snmp_queries/SMCkrUFSFileSystemGroup.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.1'
+ Located input field 'krUFSFileSystemIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.1'
+ Found item [krUFSFileSystemIndex='/'] index: 1.47 [from value]
+ Found item [krUFSFileSystemIndex='/db2'] index: 4.47.100.98.50 [from value]
+ Found item [krUFSFileSystemIndex='/opt'] index: 4.47.111.112.116 [from value]
+ Located input field 'krUFSFileSystemMountPoint' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.2'
+ Found item [krUFSFileSystemMountPoint='/'] index: enterprises.42.2.12.2.2.12.4.1.1.1.2.1.47 [from value]
+ Found item [krUFSFileSystemMountPoint='/db2'] index: enterprises.42.2.12.2.2.12.4.1.1.1.2.4.47.100.98.50 [from value]
+ Found item [krUFSFileSystemMountPoint='/opt'] index: enterprises.42.2.12.2.2.12.4.1.1.1.2.4.47.111.112.116 [from value]
+ Located input field 'krUFSFileSystemDiskName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.3'
+ Found item [krUFSFileSystemDiskName='/dev/md/dsk/d0'] index: enterprises.42.2.12.2.2.12.4.1.1.1.3.1.47 [from value]
+ Found item [krUFSFileSystemDiskName='/dev/dsk/c4t600015D000232E000000000000000B12d0s0'] index: enterprises.42.2.12.2.2.12.4.1.1.1.3.4.47.100.98.50 [from value]
+ Found item [krUFSFileSystemDiskName='/dev/md/dsk/d4'] index: enterprises.42.2.12.2.2.12.4.1.1.1.3.4.47.111.112.116 [from value]
+ Found data query XML file at 'C:\web\Apache2\htdocs\cacti/resource/snmp_queries/SMCkrUFSFileSystemGroup.xml'
+ Found data query XML file at 'C:\web\Apache2\htdocs\cacti/resource/snmp_queries/SMCkrUFSFileSystemGroup.xml'
+ Found data query XML file at 'C:\web\Apache2\htdocs\cacti/resource/snmp_queries/SMCkrUFSFileSystemGroup.xml'
SNMP Query index issue for Sun Management Centre.
Moderators: Developers, Moderators
SNMP Query index issue for Sun Management Centre.
- Attachments
-
- SMCkrUFSFileSystemGroup.zip
- Query Script
- (653 Bytes) Downloaded 85 times
Last edited by Chalnoth on Thu Jul 07, 2005 9:40 pm, edited 1 time in total.
Posting your xml script would be helpful.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Attachement not right
I did include the query script in the attachement if that's what you mean.
However when I click on it it wants to save the file as download.php.
If I rename the file to download.zip I can then extract the xml file.
For convenience I will paste the contents below.
++++++++++++++++++++++++
<interface>
<name>Get krFileSystem</name>
<oid_index>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.12\.4\.1\.1\.1\.1\.([0-9\.]*)$</oid_index_parse>
<index_order>krUFSFileSystemIndex:krUFSFileSystemMountPoint:krUFSFileSystemDiskName</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<krUFSFileSystemIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.1</oid>
</krUFSFileSystemIndex>
<krUFSFileSystemMountPoint>
<name>Mount Point</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.2</oid>
</krUFSFileSystemMountPoint>
<krUFSFileSystemDiskName>
<name>Device Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.3</oid>
</krUFSFileSystemDiskName>
<krUFSFileSystemSize>
<name>Total size (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.4</oid>
</krUFSFileSystemSize>
<krUFSFileSystemFreeSpace>
<name>Available space (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.5</oid>
</krUFSFileSystemFreeSpace>
<krUFSFreeSpaceForNonSU>
<name>Available space - non SU (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.6</oid>
</krUFSFreeSpaceForNonSU>
<krUFSFileSystemPctUsedSpace>
<name>Space used (%)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.7</oid>
</krUFSFileSystemPctUsedSpace>
<krUFSTotNumOfInodes>
<name>Total no. of inodes</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.8</oid>
</krUFSTotNumOfInodes>
<krUFSTotNumOfInodesAvail>
<name>Available inodes</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.9</oid>
</krUFSTotNumOfInodesAvail>
<krUFSPctInodesUsed>
<name>Inodes used (%)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.10</oid>
</krUFSPctInodesUsed>
</fields>
</interface>
However when I click on it it wants to save the file as download.php.
If I rename the file to download.zip I can then extract the xml file.
For convenience I will paste the contents below.
++++++++++++++++++++++++
<interface>
<name>Get krFileSystem</name>
<oid_index>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.12\.4\.1\.1\.1\.1\.([0-9\.]*)$</oid_index_parse>
<index_order>krUFSFileSystemIndex:krUFSFileSystemMountPoint:krUFSFileSystemDiskName</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<krUFSFileSystemIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.1</oid>
</krUFSFileSystemIndex>
<krUFSFileSystemMountPoint>
<name>Mount Point</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.2</oid>
</krUFSFileSystemMountPoint>
<krUFSFileSystemDiskName>
<name>Device Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.3</oid>
</krUFSFileSystemDiskName>
<krUFSFileSystemSize>
<name>Total size (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.4</oid>
</krUFSFileSystemSize>
<krUFSFileSystemFreeSpace>
<name>Available space (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.5</oid>
</krUFSFileSystemFreeSpace>
<krUFSFreeSpaceForNonSU>
<name>Available space - non SU (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.6</oid>
</krUFSFreeSpaceForNonSU>
<krUFSFileSystemPctUsedSpace>
<name>Space used (%)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.7</oid>
</krUFSFileSystemPctUsedSpace>
<krUFSTotNumOfInodes>
<name>Total no. of inodes</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.8</oid>
</krUFSTotNumOfInodes>
<krUFSTotNumOfInodesAvail>
<name>Available inodes</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.9</oid>
</krUFSTotNumOfInodesAvail>
<krUFSPctInodesUsed>
<name>Inodes used (%)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.12.2.2.12.4.1.1.1.10</oid>
</krUFSPctInodesUsed>
</fields>
</interface>
Who is online
Users browsing this forum: No registered users and 0 guests