Ad Widget

Collapse

check-esx-hardware.py: No Values in LogicalVolume

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ruddimaster
    Member
    • Dec 2016
    • 49

    #1

    check-esx-hardware.py: No Values in LogicalVolume

    Yesterday I ran in a issue by chance:

    I have no values in Logical Values and can't figure out why...




    ./check-esx-hardware.py -i server -u user -p password -d --zabbix-hostname 123456789 --show-inventory
    Code:
    [...]
    123456789   vmware.hardwarehealthstate['PowerSupply2']      5
    123456789   vmware.hardwarehealthstate['Disk1onHPSA1Port1IBox1Bay1279GBDataDisk']   5
    123456789   vmware.hardwarehealthstate['Disk2onHPSA1Port1IBox1Bay2279GBDataDisk']   5
    123456789   vmware.hardwarehealthstate['Disk3onHPSA1Port1IBox1Bay3279GBDataDisk']   0
    123456789   vmware.hardwarehealthstate['Disk4onHPSA1Port1IBox1Bay4279GBDataDisk']   5
    123456789   vmware.hardwarehealthstate['Disk5onHPSA1Port2IBox1Bay5279GBDataDisk']   5
    123456789   vmware.hardwarehealthstate['Disk6onHPSA1Port2IBox1Bay6279GBDataDisk']   5
    123456789   vmware.hardwarehealthstate['Disk7onHPSA1Port2IBox1Bay7558GBDataDisk']   5
    123456789   vmware.hardwarehealthstate['Disk8onHPSA1Port2IBox1Bay8558GBDataDisk']   5
    123456789   vmware.hardwarehealthstate['HPSmartArrayP410iControllerEmbeddedHPSA1']  5
    123456789   vmware.hardwarehealthstate['LogicalVolume1onHPSA1RAID51955GBDisk1,2,3,4,5,6,7,8InterimRecovery']        10
    123456789   vmware.hardwarehealthstate['BatteryonHPSA1']    5
    123456789   vmware.hardwarehealthstate[heartbeat]    1
    [.............]
    123456789    vmware.hardwareitems    {  ...........},{ "{#ITEM_KEY}":"LogicalVolume1onHPSA1RAID51955GBDisk1,2,3,4,5,6,7,8InterimRecovery","{#ITEM_NAME}":"Logical Volume 1 on HPSA1  RAID 5  1955GB  Disk 1,2,3,4,5,6,7,8  Interim Recovery" },{

    check-esx-hardware.py -i server -u user -p password -d --zabbix-hostname 123456789 -d -x|zabbix_sender -z 127.0.0.1 -i - -vv
    zabbix_sender [12334]: DEBUG: answer [{"response":"success","info":"processed: 85; failed: 1; total: 86; seconds spent: 0.054240"}]
    info from server: "processed: 85; failed: 1; total: 86; seconds spent: 0.054240"
    sent: 86; skipped: 0; total: 86


    Zabbix-Server-Log with loglevel 5
    [...]
    17379:20170807:120414.093 In substitute_key_macros() data:'vmware.hardwarehealthstate['{#ITEM_KEY}']'
    17379:20170807:120414.093 In substitute_lld_macros() data:''{#ITEM_KEY}''
    17379:20170807:120414.093 End of substitute_lld_macros():SUCCEED data:''LogicalVolume1onHPSA1RAID51955GBDisk1,2,3,4 ,5,6,7,8InterimRecovery''
    17379:20170807:120414.093 End of substitute_key_macros():SUCCEED data:'vmware.hardwarehealthstate["'LogicalVolume1onHPSA1RAID51955GBDisk1,2,3,4,5,6, 7,8InterimRecovery'"]'
    17379:20170807:120414.093 In substitute_key_macros() data:'vmware.hardwarehealthstate['{#ITEM_KEY}']'
    17379:20170807:120414.093 In substitute_lld_macros() data:''{#ITEM_KEY}''
    [...]

    It seems everthing looks fine....

    I have this issue on all VMware-Hosts.
    I can't find the source og this problem.. Have anyone the same issue?
    Have anyone a hint for me to solve this?

    Zabbix 3.2.7 on Ubuntu 16.04 LTS

    Dirk
    Last edited by Ruddimaster; 14-08-2017, 11:08.
  • Ruddimaster
    Member
    • Dec 2016
    • 49

    #2
    None has the same problem?

    Comment

    • allexpetrov
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2017
      • 361

      #3
      Originally posted by Ruddimaster
      None has the same problem?
      Hello Ruddimaster!

      Also you could attach a screenshot of the default graph called Zabbix data gathering process busy in % .

      Regards,
      Alex

      Comment

      • Ruddimaster
        Member
        • Dec 2016
        • 49

        #4
        Hi Alex,

        thanks for your reply...
        Attached Files

        Comment

        • Ruddimaster
          Member
          • Dec 2016
          • 49

          #5
          Do you need more information? Where should I take a look?
          In inventory or "latest data" I see the volume, but no status (5)...

          Comment

          • Ruddimaster
            Member
            • Dec 2016
            • 49

            #6
            I have now a proxy too and the same Problem...

            Comment

            • Ruddimaster
              Member
              • Dec 2016
              • 49

              #7
              could it be that does not accept , (comma)?

              --show inventory
              Code:
              HP Smart Array P410i Controller  Embedded  HPSA1                     HealthState = 5
              Logical Volume 1 on HPSA1  RAID 5  1955GB  Disk 1,2,3,4,5,6,7,8  HealthState = 5
              Battery on HPSA1                                                                 HealthState = 5
              -d
              Code:
              ,{ "{#ITEM_KEY}":"LogicalVolume1onHPSA1RAID51955GBDisk1,2,3,4,5,6,7,8","{#ITEM_NAME}":"Logical Volume 1 on HPSA1  RAID 5  1955GB  Disk 1,2,3,4,5,6,7,8" }
              -x
              Code:
              123123-123-123123-123123123123    vmware.hardwarehealthstate['HPSmartArrayP410iControllerEmbeddedHPSA1']  5
              123123-123-123123-123123123123    vmware.hardwarehealthstate['LogicalVolume1onHPSA1RAID51955GBDisk1,2,3,4,5,6,7,8']       5
              123123-123-123123-123123123123    vmware.hardwarehealthstate['BatteryonHPSA1']    5
              ... -x|zabbix_sender -z 127.0.0.1 -i -
              Code:
              info from server: "processed: 174; failed: 1; total: 175; seconds spent: 0.004061"
              sent: 175; skipped: 0; total: 175

              show latest data --- with "Show items without data"
              Code:
              Health state of IPMI SEL                                                                              2017-09-30 16:00:06               5            Graph
              Health state of Logical Volume 1 on HPSA2 RAID 5 2934GB Disk 1,2,3,4,5,6,7,8                                                                      Graph
              Health state of Memory                                                                                2017-09-30 16:00:06              5            Graph

              one thing to all other entries the comma (,) is differnet.
              it seems that the script itself work proper, but not in combination with zabbix_sender.
              Last edited by Ruddimaster; 30-09-2017, 16:24.

              Comment

              • Ruddimaster
                Member
                • Dec 2016
                • 49

                #8
                Hello,
                now I have add a DELL-Server to my Monitoring. but there is no "Health state of Logical Volume..." It seems that this item is on Proliant servers.

                I am not a programmer... Can someone support me to add a filter to wipe the commas within check-esx-hardware.py? I hope the commas are the problem.

                Comment

                • kaspars.mednis
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2017
                  • 349

                  #9
                  Hello !
                  just some test...
                  Code:
                  zabbix_sender -z ZBX_SERVER -s "ZBX_HOST" -k "vmware.hardwarehealthstate['LogicalVolume1onHPSA1RAID51955GBDisk1,2,3,4,5,6,7,8']" -o 1
                  info from server: "processed: 1;[B] failed: 0[/B]; total: 1; seconds spent: 0.000093"
                  sent: 1; skipped: 0; total: 1
                  Code:
                  zabbix_sender -z ZBX_SERVER -s "ZBX_HOST" -k vmware.hardwarehealthstate['LogicalVolume1onHPSA1RAID51955GBDisk1,2,3,4,5,6,7,8'] -o 1
                  info from server: "processed: 0; [B]failed: 1[/B]; total: 1; seconds spent: 0.000061"
                  sent: 1; skipped: 0; total: 1
                  if the zabix key is in double quotes, commas cause no problems

                  Best regards,
                  Kaspars

                  Comment

                  Working...