Ad Widget

Collapse

Hardware raid monitoring Windows with Dell PERC 6/i

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lars
    Junior Member
    • Jul 2012
    • 4

    #1

    Hardware raid monitoring Windows with Dell PERC 6/i

    Evening,

    I'm running Windows 2003/2008 with hardware raid using DELL PERC 6/i Integrated RAID Controllers and I'm looking on to surveying these using Zabbix.

    Under Linux I have mpt-status, MegaCli as well as mdstat (sw raid) and some shellscripts which pretty much returns 1 or 0 if the volumes are Optimal or not as well as the same thing with the batteries, and this is pretty much what I'm looking to do with Windows as well.

    Would there, by any chance, be any programs with this raid controller that could be queried for OPTIMAL/DEGRADED which I could write a tiny VB/Batch script around perhaps?

    Any answer is appricated.

    Regards
  • lars
    Junior Member
    • Jul 2012
    • 4

    #2
    I just found out about omreport on Windows which I'll try to base something around, if I solve it I'll make sure to post it right here.

    Comment

    • lars
      Junior Member
      • Jul 2012
      • 4

      #3
      Originally posted by lars
      I just found out about omreport on Windows which I'll try to base something around, if I solve it I'll make sure to post it right here.
      And here's the finished product as promised:

      This is a powershell script checking the output from Dell's OpenManage 'omreport' program, it checks if the string "Health : Ok" exists, and gives back 0 if it doesn't, this is for the battery.

      Code:
      omreport chassis batteries | %{ if ($_ -imatch 'Health\s*:\s*Ok\s*$') { 1; break } } -End { 0 }
      ... and this is for the virtual drive.

      Code:
      omreport storage vdisk controller=0 | %{ if ($_ -imatch 'Status\s*:\s*Ok\s*$') { 1; break } } -End { 0 }
      I run this in zabbix_agentd.conf like this

      Code:
      UserParameter=raid.battery,%systemroot%\system32\windowspowershell\v1.0\powershell.exe -nologo C:\zabbix\zbx_raid_battery.ps1
      UserParameter=raid.disks,%systemroot%\system32\windowspowershell\v1.0\powershell.exe -nologo C:\zabbix\zbx_raid_disks.ps1
      I'll be adding support for multiple virtual drives very soon.
      Last edited by lars; 24-07-2012, 09:22.

      Comment

      • lars
        Junior Member
        • Jul 2012
        • 4

        #4
        Making the above disk surveillance deprecated, here's support for multiple vdisk's.
        Code:
        omreport storage vdisk controller=0 | ?{$_ -match "^status"} | %{$status=1}{if($_ -notlike "*OK*"){$status=0}}{$status}
        Last edited by lars; 30-07-2012, 09:59.

        Comment

        • rthonpm
          Member
          • Jan 2016
          • 41

          #5
          I'm in an environment where SNMP is blocked so your PowerShell script has allowed me to better monitor all of my physical servers.

          With a few tweaks, I've been able to monitor all of the physical drives in my RAID arrays, as well as the overall health of the RAID itself, and the battery for the controller.

          My only issue is that I've had to stay with the basic up/down monitoring. Does anyone with more PowerShell experience know if there's a way to use the values from the OpenManage templates that have been submitted for SNMP to monitor the state of components using omreport and to have Zabbix report the actual state as opposed to the more binary method of either OK or not OK?

          Comment

          Working...