Hi,
I am using the ss_host_disk.php script to get the device description like below.
[root@server scripts]# php -q ss_host_disk.php server_IP 26 2:1611:10:public_string:::MD5::DES: query description
1!A:
2!C: Label:OS Serial Number dfe2434
3!D:
4!E: Label:ADS_DATA Serial Number grgr3434
5!Virtual Memory
6!Physical Memory
I can get the DiskLetters C and E from the above output. I am not sure how to use this script to get the DISKIDs so that I can use both the outputs (DiskID and DiskLetter) as an input for an another nagios plugin/script which to pullout PhysicalDisk(0 C:)\Disk Bytes/sec from a remote windows server. I run the below command to get the output
/usr/lib/nagios/plugins/check_nt -s public_string -H server_IP -p Port -v COUNTER -l "\PhysicalDisk(0 C\Disk Bytes/sec"
/usr/lib/nagios/plugins/check_nt -s public_string -H server_IP -p Port -v COUNTER -l "\PhysicalDisk(1 E:)\Disk Bytes/sec"
In this server 0 is the DiskID of Driverletter C and 1 for E.
I need to get the DiskID and DiskLetter using the ss_host_disk.php/snmp walk so that I can pass these values to the nagios plugin to get the required output. Please help me to get the DiskIDs printed, atm I can only get the DiskLetters using ss_host_disk.php/snmpwalk.
Please let me know if any additional information required.
Many Thanks
snmpwalk to show DiskID
Moderators: Developers, Moderators
Re: snmpwalk to show DiskID
If SNMP doesn't expose the info you're after then ss_host_disk.php isn't going to work. Likely, you're going to need to create/find a script which uses WMI and/or can pull perfmon counters. Looked into the snmp informant snmp agent addons?
| 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 |
Re: snmpwalk to show DiskID
Hi BSOD2600,
Thanks for your kind response. Yes, as you said snmpwalk is not giving me the PhysicalDisk IDs and so definitely I am not going to get the results from ss_host_disk.php
I have also checked the possibility of getting the values by incrementing the OIDs for the each disk and assigning 0,1,2 for drive letters C,D,E and likewise. But its not practical when we have servers with disk IDs and Disk letters like below, for eg:
0 C:
15 H:
16 S:
13 v:
9 X:
5 Y:
So the only workaround is to write a VB script which will list out the DiskIDs and letters and make use of the output for nrpe/cacti to generate graphs? please advice.
Is there any way I can get this whole thing sorted out?
Thanks and Regards,
Tuxsage.
Thanks for your kind response. Yes, as you said snmpwalk is not giving me the PhysicalDisk IDs and so definitely I am not going to get the results from ss_host_disk.php
I have also checked the possibility of getting the values by incrementing the OIDs for the each disk and assigning 0,1,2 for drive letters C,D,E and likewise. But its not practical when we have servers with disk IDs and Disk letters like below, for eg:
0 C:
15 H:
16 S:
13 v:
9 X:
5 Y:
So the only workaround is to write a VB script which will list out the DiskIDs and letters and make use of the output for nrpe/cacti to generate graphs? please advice.
Is there any way I can get this whole thing sorted out?
Thanks and Regards,
Tuxsage.
Re: snmpwalk to show DiskID
You already discarded the idea of using SNMP Informant? e.g. http://www.snmp-informant.com/snmp_informant-os.htm
| 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 |
Re: snmpwalk to show DiskID
Hi,
Thanks for your update. The problem is that I could not reply on any third party packages to get this working
Need to get the output via somescripts and have the values passed to check_nt
regards,
TuxSage.
Thanks for your update. The problem is that I could not reply on any third party packages to get this working
Need to get the output via somescripts and have the values passed to check_nt
regards,
TuxSage.
Who is online
Users browsing this forum: No registered users and 3 guests