pfoo / zabbix-HP

Tool providing HP server health value to a zabbix server using zabbix-sender
GNU General Public License v2.0
1 stars 4 forks source link

Posisble to add HDD temps ? #1

Open morgancoxuk opened 7 years ago

morgancoxuk commented 7 years ago

I have modified (locally) the 3.2 templates to work with Zabbix 3.0.x

One thing that is missing is the HDD temp reading, is there an easy way of adding it ?

i.e if you do

# hpssacli ctrl slot=0 pd all show detail

you see the output on the physical disk temps

i.e

      physicaldrive 1I:1:1
         Port: 1I
         Box: 1
         Bay: 1
         Status: OK
         Drive Type: Data Drive
         Interface Type: SAS
         Size: 4000.7 GB
         Drive exposed to OS: False
         Native Block Size: 512
         Rotational Speed: 7200
         Firmware Revision: HPDA
         Serial Number: S1Z1CKK10000K5512XPH
         Model: HP      MB4000FCWDK
         Current Temperature (C): 37
         Maximum Temperature (C): 47
         PHY Count: 2
         PHY Transfer Rate: 6.0Gbps, Unknown
         Drive Authentication Status: OK
         Carrier Application Version: 11
         Carrier Bootloader Version: 6
         Sanitize Erase Supported: False

      physicaldrive 1I:1:2
         Port: 1I
         Box: 1
         Bay: 2
         Status: OK
         Drive Type: Data Drive
         Interface Type: SAS
         Size: 4000.7 GB
         Drive exposed to OS: False
         Native Block Size: 512
         Rotational Speed: 7200
         Firmware Revision: HPDA
         Serial Number: S1Z1CQ1D0000K551408W
         Model: HP      MB4000FCWDK
         Current Temperature (C): 37
         Maximum Temperature (C): 45
         PHY Count: 2
         PHY Transfer Rate: 6.0Gbps, Unknown
         Drive Authentication Status: OK
         Carrier Application Version: 11
         Carrier Bootloader Version: 6
         Sanitize Erase Supported: False

So I could use

# hpssacli ctrl slot=0 pd all show detail |grep -i "current"

But my issue is the discovery part. My perl skills are not great.

Is there a way I can add the feature ?

pfoo commented 7 years ago

It should be quite easy to do as the raid script is already looping through HDD. Going to look at this today or tomorrow.

morgancoxuk commented 6 years ago

Many thanks !

Managed to port the template over to zabbix 3.0.x also.

Happy to upload the v 3.0.x template if you would like ?

morgancoxuk commented 6 years ago

Just to note: the addition of the physical disk temp monitoring seems to break the script if you have a failed drive - I have raised a new ticket

https://github.com/pfoo/zabbix-HP/issues/2