SNMP - Get Mounted Partitions

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
tpang13
Posts: 12
Joined: Sun Feb 11, 2007 9:04 pm

SNMP - Get Mounted Partitions

Post by tpang13 »

I had monitor over 50+ servers disk space with cacti 0.86j without any problem. but i cannot get the correct disk space value from one of our windows 2000 server connecting HP MSA1000 SAN,

There are 27 drives, but some of them are showing 0 value. I create them with the "Windows 2000/XP Host" host template, do i miss any steps ?

** Here is the SNMP - Get Mounted Partitions - data query
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'c:/Inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php 10.176.0.80 89 1:161:500:public:::MD5::[None] index'
+ Executing script query 'c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php 10.176.0.80 89 1:161:500:public:::MD5::[None] query index'
+ Found item [hrStorageIndex='1'] index: 1
+ Found item [hrStorageIndex='2'] index: 2
+ Found item [hrStorageIndex='3'] index: 3
+ Found item [hrStorageIndex='4'] index: 4
+ Found item [hrStorageIndex='5'] index: 5
+ Found item [hrStorageIndex='6'] index: 6
+ Found item [hrStorageIndex='7'] index: 7
+ Found item [hrStorageIndex='8'] index: 8
+ Found item [hrStorageIndex='9'] index: 9
+ Found item [hrStorageIndex='10'] index: 10
+ Found item [hrStorageIndex='11'] index: 11
+ Found item [hrStorageIndex='12'] index: 12
+ Found item [hrStorageIndex='13'] index: 13
+ Found item [hrStorageIndex='14'] index: 14
+ Found item [hrStorageIndex='15'] index: 15
+ Found item [hrStorageIndex='16'] index: 16
+ Found item [hrStorageIndex='17'] index: 17
+ Found item [hrStorageIndex='18'] index: 18
+ Found item [hrStorageIndex='19'] index: 19
+ Found item [hrStorageIndex='20'] index: 20
+ Found item [hrStorageIndex='21'] index: 21
+ Found item [hrStorageIndex='22'] index: 22
+ Found item [hrStorageIndex='23'] index: 23
+ Found item [hrStorageIndex='24'] index: 24
+ Found item [hrStorageIndex='25'] index: 25
+ Executing script query 'c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php 10.176.0.80 89 1:161:500:public:::MD5::[None] query description'
+ Found item [hrStorageDescr='A:'] index: 1
+ Found item [hrStorageDescr='C: Label:System Serial Number 883f90c1'] index: 2
+ Found item [hrStorageDescr='D:'] index: 3
+ Found item [hrStorageDescr='E:'] index: 4
+ Found item [hrStorageDescr='F:'] index: 5
+ Found item [hrStorageDescr='G:'] index: 6
+ Found item [hrStorageDescr='H:'] index: 7
+ Found item [hrStorageDescr='I:'] index: 8
+ Found item [hrStorageDescr='J:'] index: 9
+ Found item [hrStorageDescr='K: Label:xxx_data Serial Number 6409f561'] index: 10
+ Found item [hrStorageDescr='L: Label:yyy_data Serial Number f0673f6f'] index: 11
+ Found item [hrStorageDescr='M:'] index: 12
+ Found item [hrStorageDescr='N:'] index: 13
+ Found item [hrStorageDescr='O:'] index: 14
+ Found item [hrStorageDescr='P: Label:zzz_data Serial Number 84fe43f7'] index: 15
+ Found item [hrStorageDescr='Q:'] index: 16
+ Found item [hrStorageDescr='R:'] index: 17
+ Found item [hrStorageDescr='S:'] index: 18
+ Found item [hrStorageDescr='T: Label:aaa_data Serial Number 2467d8ce'] index: 19
+ Found item [hrStorageDescr='U:'] index: 20
+ Found item [hrStorageDescr='V:'] index: 21
+ Found item [hrStorageDescr='W: Label:bbb_data Serial Number e4d80268'] index: 22
+ Found item [hrStorageDescr='X: Label:ccc_data Serial Number 68822f83'] index: 23
+ Found item [hrStorageDescr='Y: Label:ddd_data Serial Number cec2c1d'] index: 24
+ Found item [hrStorageDescr='Virtual Memory'] index: 25
+ Executing script query 'c:\php\php.exe -q c:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php 10.176.0.80 89 1:161:500:public:::MD5::[None] query sau'
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 1
+ Found item [hrStorageAllocationUnits='512 Bytes'] index: 2
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 3
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 4
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 5
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 6
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 7
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 8
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 9
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 10
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 11
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 12
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 13
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 14
+ Found item [hrStorageAllocationUnits='2048 Bytes'] index: 15
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 16
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 17
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 18
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 19
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 20
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 21
+ Found item [hrStorageAllocationUnits='2048 Bytes'] index: 22
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 23
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 24
+ Found item [hrStorageAllocationUnits='65536 Bytes'] index: 25
+ Found data query XML file at 'c:/Inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'c:/Inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'c:/Inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
Attachments
disk drives on the server which is HP MSA1000 SAN connected
disk drives on the server which is HP MSA1000 SAN connected
untitled2.jpg (46.68 KiB) Viewed 12958 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Walk the hostResources mib and post it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tpang13
Posts: 12
Joined: Sun Feb 11, 2007 9:04 pm

Post by tpang13 »

i got an error when use snmpwalk to get the value from that server.
the command is :
snmpwalk -Os -c public -v 1 servername hostResources
Error in packet.
Reason: (genError) A general failure occured
Failed object: hostResourcesMibModule
[/code]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Then snmpwalk .1.3.6.1.2.1.25.2.3.1
tpang13
Posts: 12
Joined: Sun Feb 11, 2007 9:04 pm

Post by tpang13 »

command:
snmpwalk -Os -c public -v 1 cnhkgfnp01 .1.3.6.1.2.1.25.2.3.1
result:
hrStorageIndex.1 = INTEGER: 1
hrStorageIndex.2 = INTEGER: 2
hrStorageIndex.3 = INTEGER: 3
hrStorageIndex.4 = INTEGER: 4
hrStorageIndex.5 = INTEGER: 5
hrStorageIndex.6 = INTEGER: 6
hrStorageIndex.7 = INTEGER: 7
hrStorageIndex.8 = INTEGER: 8
hrStorageIndex.9 = INTEGER: 9
hrStorageIndex.10 = INTEGER: 10
hrStorageIndex.11 = INTEGER: 11
hrStorageIndex.12 = INTEGER: 12
hrStorageIndex.13 = INTEGER: 13
hrStorageIndex.14 = INTEGER: 14
hrStorageIndex.15 = INTEGER: 15
hrStorageIndex.16 = INTEGER: 16
hrStorageIndex.17 = INTEGER: 17
hrStorageIndex.18 = INTEGER: 18
hrStorageIndex.19 = INTEGER: 19
hrStorageIndex.20 = INTEGER: 20
hrStorageIndex.21 = INTEGER: 21
hrStorageIndex.22 = INTEGER: 22
hrStorageIndex.23 = INTEGER: 23
hrStorageIndex.24 = INTEGER: 24
hrStorageIndex.25 = INTEGER: 25
hrStorageType.1 = OID: hrStorageTypes.5
hrStorageType.2 = OID: hrStorageTypes.4
hrStorageType.3 = OID: hrStorageTypes.7
hrStorageType.4 = OID: hrStorageTypes.4
hrStorageType.5 = OID: hrStorageTypes.4
hrStorageType.6 = OID: hrStorageTypes.4
hrStorageType.7 = OID: hrStorageTypes.4
hrStorageType.8 = OID: hrStorageTypes.4
hrStorageType.9 = OID: hrStorageTypes.4
hrStorageType.10 = OID: hrStorageTypes.4
hrStorageType.11 = OID: hrStorageTypes.4
hrStorageType.12 = OID: hrStorageTypes.4
hrStorageType.13 = OID: hrStorageTypes.4
hrStorageType.14 = OID: hrStorageTypes.4
hrStorageType.15 = OID: hrStorageTypes.4
hrStorageType.16 = OID: hrStorageTypes.4
hrStorageType.17 = OID: hrStorageTypes.4
hrStorageType.18 = OID: hrStorageTypes.4
hrStorageType.19 = OID: hrStorageTypes.4
hrStorageType.20 = OID: hrStorageTypes.4
hrStorageType.21 = OID: hrStorageTypes.4
hrStorageType.22 = OID: hrStorageTypes.4
hrStorageType.23 = OID: hrStorageTypes.4
hrStorageType.24 = OID: hrStorageTypes.4
hrStorageType.25 = OID: hrStorageTypes.3
hrStorageDescr.1 = STRING: A:\
hrStorageDescr.2 = STRING: C:\ Label:System Serial Number 883f90c1
hrStorageDescr.3 = STRING: D:\
hrStorageDescr.4 = STRING: E:\
hrStorageDescr.5 = STRING: F:\
hrStorageDescr.6 = STRING: G:\
hrStorageDescr.7 = STRING: H:\
hrStorageDescr.8 = STRING: I:\
hrStorageDescr.9 = STRING: J:\
hrStorageDescr.10 = STRING: K:\ Label:xxx Serial Number 6409f561
hrStorageDescr.11 = STRING: L:\ Label:xxx Serial Number f0673f6f
hrStorageDescr.12 = STRING: M:\
hrStorageDescr.13 = STRING: N:\
hrStorageDescr.14 = STRING: O:\
hrStorageDescr.15 = STRING: P:\ Label:xxx Serial Number 84fe43f7
hrStorageDescr.16 = STRING: Q:\
hrStorageDescr.17 = STRING: R:\
hrStorageDescr.18 = STRING: S:\
hrStorageDescr.19 = STRING: T:\ Label:xxx Serial Number 2467d8ce
hrStorageDescr.20 = STRING: U:\
hrStorageDescr.21 = STRING: V:\
hrStorageDescr.22 = STRING: W:\ Label:xxx Serial Number e4d80268
hrStorageDescr.23 = STRING: X:\ Label:xxx Serial Number 68822f83
hrStorageDescr.24 = STRING: Y:\ Label:xxx Serial Number cec2c1d
hrStorageDescr.25 = STRING: Virtual Memory
hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
hrStorageAllocationUnits.2 = INTEGER: 512 Bytes
hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
hrStorageAllocationUnits.4 = INTEGER: 0 Bytes
hrStorageAllocationUnits.5 = INTEGER: 0 Bytes
hrStorageAllocationUnits.6 = INTEGER: 0 Bytes
hrStorageAllocationUnits.7 = INTEGER: 0 Bytes
hrStorageAllocationUnits.8 = INTEGER: 0 Bytes
hrStorageAllocationUnits.9 = INTEGER: 0 Bytes
hrStorageAllocationUnits.10 = INTEGER: 4096 Bytes
hrStorageAllocationUnits.11 = INTEGER: 4096 Bytes
hrStorageAllocationUnits.12 = INTEGER: 0 Bytes
hrStorageAllocationUnits.13 = INTEGER: 0 Bytes
hrStorageAllocationUnits.14 = INTEGER: 0 Bytes
hrStorageAllocationUnits.15 = INTEGER: 2048 Bytes
hrStorageAllocationUnits.16 = INTEGER: 0 Bytes
hrStorageAllocationUnits.17 = INTEGER: 0 Bytes
hrStorageAllocationUnits.18 = INTEGER: 0 Bytes
hrStorageAllocationUnits.19 = INTEGER: 4096 Bytes
hrStorageAllocationUnits.20 = INTEGER: 0 Bytes
hrStorageAllocationUnits.21 = INTEGER: 0 Bytes
hrStorageAllocationUnits.22 = INTEGER: 2048 Bytes
hrStorageAllocationUnits.23 = INTEGER: 4096 Bytes
hrStorageAllocationUnits.24 = INTEGER: 4096 Bytes
hrStorageAllocationUnits.25 = INTEGER: 65536 Bytes
hrStorageSize.1 = INTEGER: 0
hrStorageSize.2 = INTEGER: 35536767
hrStorageSize.3 = INTEGER: 0
hrStorageSize.4 = INTEGER: 0
hrStorageSize.5 = INTEGER: 0
hrStorageSize.6 = INTEGER: 0
hrStorageSize.7 = INTEGER: 0
hrStorageSize.8 = INTEGER: 0
hrStorageSize.9 = INTEGER: 0
hrStorageSize.10 = INTEGER: 4477518
hrStorageSize.11 = INTEGER: 8829053
hrStorageSize.12 = INTEGER: 0
hrStorageSize.13 = INTEGER: 0
hrStorageSize.14 = INTEGER: 0
hrStorageSize.15 = INTEGER: 1533951
hrStorageSize.16 = INTEGER: 0
hrStorageSize.17 = INTEGER: 0
hrStorageSize.18 = INTEGER: 0
hrStorageSize.19 = INTEGER: 6397878
hrStorageSize.20 = INTEGER: 0
hrStorageSize.21 = INTEGER: 0
hrStorageSize.22 = INTEGER: 1048032
hrStorageSize.23 = INTEGER: 767095
hrStorageSize.24 = INTEGER: 107527053
hrStorageSize.25 = INTEGER: 48779
hrStorageUsed.1 = INTEGER: 0
hrStorageUsed.2 = INTEGER: 30749319
hrStorageUsed.3 = INTEGER: 0
hrStorageUsed.4 = INTEGER: 0
hrStorageUsed.5 = INTEGER: 0
hrStorageUsed.6 = INTEGER: 0
hrStorageUsed.7 = INTEGER: 0
hrStorageUsed.8 = INTEGER: 0
hrStorageUsed.9 = INTEGER: 0
hrStorageUsed.10 = INTEGER: 4364907
hrStorageUsed.11 = INTEGER: 7609993
hrStorageUsed.12 = INTEGER: 0
hrStorageUsed.13 = INTEGER: 0
hrStorageUsed.14 = INTEGER: 0
hrStorageUsed.15 = INTEGER: 1472582
hrStorageUsed.16 = INTEGER: 0
hrStorageUsed.17 = INTEGER: 0
hrStorageUsed.18 = INTEGER: 0
hrStorageUsed.19 = INTEGER: 6302435
hrStorageUsed.20 = INTEGER: 0
hrStorageUsed.21 = INTEGER: 0
hrStorageUsed.22 = INTEGER: 45361
hrStorageUsed.23 = INTEGER: 711194
hrStorageUsed.24 = INTEGER: 4183146
hrStorageUsed.25 = INTEGER: 5155
hrStorageAllocationFailures.1 = Counter32: 0
hrStorageAllocationFailures.2 = Counter32: 0
hrStorageAllocationFailures.3 = Counter32: 0
hrStorageAllocationFailures.4 = Counter32: 0
hrStorageAllocationFailures.5 = Counter32: 0
hrStorageAllocationFailures.6 = Counter32: 0
hrStorageAllocationFailures.7 = Counter32: 0
hrStorageAllocationFailures.8 = Counter32: 0
hrStorageAllocationFailures.9 = Counter32: 0
hrStorageAllocationFailures.10 = Counter32: 0
hrStorageAllocationFailures.11 = Counter32: 0
hrStorageAllocationFailures.12 = Counter32: 0
hrStorageAllocationFailures.13 = Counter32: 0
hrStorageAllocationFailures.14 = Counter32: 0
hrStorageAllocationFailures.15 = Counter32: 0
hrStorageAllocationFailures.16 = Counter32: 0
hrStorageAllocationFailures.17 = Counter32: 0
hrStorageAllocationFailures.18 = Counter32: 0
hrStorageAllocationFailures.19 = Counter32: 0
hrStorageAllocationFailures.20 = Counter32: 0
hrStorageAllocationFailures.21 = Counter32: 0
hrStorageAllocationFailures.22 = Counter32: 0
hrStorageAllocationFailures.23 = Counter32: 0
hrStorageAllocationFailures.24 = Counter32: 0
hrStorageAllocationFailures.25 = Counter32: 0
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

As you can see from the snmpwalk, Windows is not showing sizes for any that don't have a Label:xxx. Are the others the SAN drives?
tpang13
Posts: 12
Joined: Sun Feb 11, 2007 9:04 pm

Post by tpang13 »

only c: and y: is local HDD, all the others are drive from the HP MSA1000 SAN

c: drive = 17GB
y: drive = 410GB
Attachments
only c: and y: drive are local partition
only c: and y: drive are local partition
untitled2.jpg (73.98 KiB) Viewed 12870 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

So, the problem IS that your snmp agent is not including information properly for this SAN. You should check with HP and see if their Insight Manager presents the data better. If so, you should write a template around their information.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests