Ad Widget

Collapse

Monitoring storage HP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emy74
    Junior Member
    • Oct 2017
    • 12

    #1

    Monitoring storage HP

    Hi, I'm trying to monitor HP 2062 storage, there is no updated template so I'm trying to adapt HP-MSA ver4.4, I use 5.2.6. I modified the template and the python script zbx-hpmsa.py by updating the user and password, but when it does the LLD discovery for each item I get the same error
    Code:
    discovery rule "msa2062-ctrl2.priv7o:zbx-hpmsa.py["-a", "{$API.VER}", "-u", "{$MSA.USERNAME}", "-p", "{$MSA.PASSWORD}", "lld", "{HOST.CONN}", "disks"]" became not supported: Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'CACHE ERROR: (db: /var/tmp/zbx-hpmsa/zbx-hpmsa.cache.db) unable to open database file
    Can someone help me?
    As an operating system I'm on Ubuntu 20.04
    Thanks
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    In your case, LLD does not return JSON, but an error message (and cannot parse it).
    Fix the error (CACHE ERROR: (db: /var/tmp/zbx-hpmsa/zbx-hpmsa.cache.db) unable to open database file)
    Check the existence of this file and the rights to it.
    Here is a link to the project - maybe you will find the necessary configuration information - https://github.com/asand3r/zbx-hpmsa
    https://github.com/asand3r/zbx-hpmsa...d-Installation (did ./zbx-hpmsa.py install ??)
    Last edited by Hamardaban; 22-11-2021, 16:03.

    Comment

    • emy74
      Junior Member
      • Oct 2017
      • 12

      #3
      Hi Hamardaban,
      thanks for reply. I follow how to configuration https://github.com/asand3r/zbx-hpmsa...d-Installation, now dir zbx-hpmsa/ and file zbx-hpmsa.cache.db are true. But I always error JSON.

      Code:
      discovery rule "msa2062-ctrl1.priv7o:zbx-hpmsa.py["-a", "{$API.VER}", "-u", "{$MSA.USERNAME}", "-p", "{$MSA.PASSWORD}", "lld", "{HOST.CONN}", "controllers"]" became not supported: Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'ERROR: 2 : Invalid sessionkey'
      I tried to do:

      Code:
      root@zabbix:/usr/lib/zabbix/externalscripts# ./zbx-hpmsa.py lld msa2062-ctrl1.priv7o disks
      ERROR: 2 : Invalid sessionkey
      how can I solve?
      Thanks

      Comment

      Working...