Ad Widget

Collapse

Zabbix monitor VMWare Storage?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrosetto
    Member
    • Apr 2015
    • 38

    #1

    Zabbix monitor VMWare Storage?

    Is there any way to monitor the storage from VMWare Health Status. I found the information from the following URL but can't figure out for the life of me how to incorporate it into the template.

    https://{vmware url}/mob/?moid=ha-host&doPath=summary.runtime.healthSystemRuntime.ha rdwareStatusInfo.storageStatusInfo

    Also here is the output of the URL

    Data Object Type: HostStorageElementInfo[]
    Parent Managed Object ID: ha-host
    Property Path: summary.runtime.healthSystemRuntime.hardwareStatus Info.storageStatusInfo

    Properties
    Name Type Value
    [0] HostStorageElementInfo
    Name Type Value
    name string "Controller 500605B009C76280 (Intel (R) RAID Controller RS2BL040)"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [1] HostStorageElementInfo
    Name Type Value
    name string "Drive 252_4 on controller 500605B009C76280 Fw: CV23 - ONLINE"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [2] HostStorageElementInfo
    Name Type Value
    name string "Drive 252_5 on controller 500605B009C76280 Fw: CV26 - ONLINE"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [3] HostStorageElementInfo
    Name Type Value
    name string "Drive 252_6 on controller 500605B009C76280 Fw: CV26 - ONLINE"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [4] HostStorageElementInfo
    Name Type Value
    name string "Drive 252_7 on controller 500605B009C76280 Fw: CV26 - ONLINE"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [5] HostStorageElementInfo
    Name Type Value
    name string "RAID 6 StorageVolume Logical Volume 500605B009C76280_0 on controller 500605B009C76280, Drives( - OPTIMAL"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [6] HostStorageElementInfo
    Name Type Value
    name string "Port 0 on Controller 500605B009C76280"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [7] HostStorageElementInfo
    Name Type Value
    name string "Port 1 on Controller 500605B009C76280"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [8] HostStorageElementInfo
    Name Type Value
    name string "Port 2 on Controller 500605B009C76280"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"
    [9] HostStorageElementInfo
    Name Type Value
    name string "Port 3 on Controller 500605B009C76280"
    operationalInfo HostStorageOperationalInfo[] Unset
    status ElementDescription
    Name Type Value
    key string "Green"
    label string "Green"
    summary string "Physical element is functioning as expected"

    Any help would be greatly appreciated.

    Thanks.
  • jrosetto
    Member
    • Apr 2015
    • 38

    #2
    Nobody monitoring raid cards on VMWare?

    Comment

    • Colttt
      Senior Member
      Zabbix Certified Specialist
      • Mar 2009
      • 878

      #3
      so, at the moment it is not possible, but you can create a feature request

      maybe you can also use SNMP/IPMI?
      Debian-User

      Sorry for my bad english

      Comment

      • jrosetto
        Member
        • Apr 2015
        • 38

        #4
        The the RAID Controller being an addon card I don't believe it is possible to monitor it with IPMI but please someone correct me if I am wrong.

        I am looking into SNMP. Fingers crossed.

        Comment

        • steveboyson
          Senior Member
          • Jul 2013
          • 582

          #5
          CIM/WBEM may be an option. Does your server hardware vendor (who is it, btw?) have a CIM provider for ESXi?

          I know that HP has ;-)

          Comment

          • jrosetto
            Member
            • Apr 2015
            • 38

            #6
            The server board is an Intel S2600CP4. As far as I can tell it only supports IPMI. Unfortunately I can only monitor the software raid over IPMI and it doesn't give me any info of the RAID card which by the way is a RS2BL040 in a raid 6 configuration.

            Comment

            • steveboyson
              Senior Member
              • Jul 2013
              • 582

              #7
              And the data you posted in your opener thread is not sufficient for you I assume?

              Then there is only IPMI I'm afraid.

              Comment

              • jrosetto
                Member
                • Apr 2015
                • 38

                #8
                The data in my first post is exactly what I would like to monitor I am just not sure how to get Zabbix to pull the data. It is a VMWare MOB output. Basically you login to a webpage and can view all kinds of different information about the VMWare server.

                If it would be helpful I can setup a test environment for viewing temporarily if someone thinks that it is feasible to pull this data. I think it would be a huge step forward for Zabbix and monitoring VMWare as you could get basically all hardware status of any server through the MOB interface.

                Originally posted by steveboyson
                And the data you posted in your opener thread is not sufficient for you I assume?

                Then there is only IPMI I'm afraid.

                Comment

                • steveboyson
                  Senior Member
                  • Jul 2013
                  • 582

                  #9
                  If the MOB data is fine for you, you would write a custom script to pull the data (via curl, wget or some other HTTP fetch tool like Perl's LWP or even in PHP or Ruby, Python etc.)

                  Then you have to parse the received data and feed it into Zabbix, either as regular or trapper item, depending on how long the query will take (Zabbix has a max. timeout of 30s for regular items).

                  Comment

                  • jrosetto
                    Member
                    • Apr 2015
                    • 38

                    #10
                    After researching I think CURL would do the job. I ran a few tests and curl does output the HTML from the url I posted. Are there any tutorials on parsing this data and loading it into Zabbix?

                    Originally posted by steveboyson
                    If the MOB data is fine for you, you would write a custom script to pull the data (via curl, wget or some other HTTP fetch tool like Perl's LWP or even in PHP or Ruby, Python etc.)

                    Then you have to parse the received data and feed it into Zabbix, either as regular or trapper item, depending on how long the query will take (Zabbix has a max. timeout of 30s for regular items).

                    Comment

                    • steveboyson
                      Senior Member
                      • Jul 2013
                      • 582

                      #11
                      Originally posted by jrosetto
                      After researching I think CURL would do the job. I ran a few tests and curl does output the HTML from the url I posted. Are there any tutorials on parsing this data and loading it into Zabbix?

                      For sure they are. What scripting language do you use?
                      For Perl there are plenty of HTML parser out there. You could start with HTML::Parser or ask aunty G00gle.

                      Comment

                      • jrosetto
                        Member
                        • Apr 2015
                        • 38

                        #12
                        I'm going to have to brush up on my perl skills. I guess where I am confused is getting the data into Zabbix.

                        Originally posted by steveboyson
                        For sure they are. What scripting language do you use?
                        For Perl there are plenty of HTML parser out there. You could start with HTML::Parser or ask aunty G00gle.

                        Comment

                        • steveboyson
                          Senior Member
                          • Jul 2013
                          • 582

                          #13
                          See the Zabbix docs for that.
                          Either just return the data on <STDOUT> or use a Zabbix trapper item.
                          Didn't I mentioned that before? ;-))

                          Comment

                          • jrosetto
                            Member
                            • Apr 2015
                            • 38

                            #14
                            Sorry, I am new to all of this. Quite possible losing my mind trying to figure it all out .

                            I am getting some results with the output

                            Here is the command I am using.

                            curl -k -u {user}:{pass} 'https://{vmware mob url}:30000/mob/?moid=ha-host&doPath=runtime.healthSystemRuntime.hardwareSt atusInfo.storageStatusInfo' -s | w3m -dump -T text/html | grep -w 'name\|status\|RAID\|Fw:'

                            Here is the data.

                            name string "Controller 500605B009A14550 (Intel (R)
                            RAID Controller RS2BL040)"
                            status ElementDescription label string "Green"
                            name string "Drive 252_4 on controller 500605B009A14550
                            Fw: CC45 - UNCONFIGURED GOOD"
                            status ElementDescription label string "Green"
                            name string "Drive 252_5 on controller 500605B009A14550
                            Fw: CC45 - UNCONFIGURED GOOD"
                            status ElementDescription label string "Green"
                            name string "Drive 252_6 on controller 500605B009A14550
                            Fw: CC45 - UNCONFIGURED GOOD"
                            status ElementDescription label string "Green"
                            name string "Drive 252_7 on controller 500605B009A14550
                            Fw: CC45 - UNCONFIGURED GOOD"
                            status ElementDescription label string "Green"
                            "RAID 6 StorageVolume Logical Volume
                            name string 500605B009A14550_0 on controller
                            status ElementDescription label string "Green"
                            name string "Port 0 on Controller 500605B009A14550"
                            status ElementDescription label string "Green"
                            name string "Port 1 on Controller 500605B009A14550"
                            status ElementDescription label string "Green"
                            name string "Port 2 on Controller 500605B009A14550"
                            status ElementDescription label string "Green"
                            name string "Port 3 on Controller 500605B009A14550"
                            status ElementDescription label string "Green"

                            Now I just have to figure out how to incorporate it.

                            Originally posted by steveboyson
                            See the Zabbix docs for that.
                            Either just return the data on <STDOUT> or use a Zabbix trapper item.
                            Didn't I mentioned that before? ;-))

                            Comment

                            • steveboyson
                              Senior Member
                              • Jul 2013
                              • 582

                              #15
                              Zabbix expects ONE result for ONE query. That means you can return just ONE value when using the STDOUT method.

                              Thus I recommended the "trapper way". Parse your stuff and send your different values to the corresponding different trapper items.

                              All that should be covered in the docs, though ...

                              Comment

                              Working...