Ad Widget

Collapse

esxcli in external check script or HP Smart Array under vSphere

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Free4ert
    Junior Member
    • Sep 2011
    • 3

    #1

    esxcli in external check script or HP Smart Array under vSphere

    Hello for every one.
    I have HP Smart Array P410 controller.
    I try to receive info about the raid status via esxcli.

    On Zabbix Server:
    sudo -u zabbix esxcli --server "my_host_ip" ssacli cmd -q "ctrl all show status" >> STATUS.txt

    If I run this in shell everything is good and work perfect.
    But if I use zabbix external check function: hp-array-esxi.sh[{HOST.IP}]
    I have error:
    Runtime error: coercing to Unicode: need string or buffer, NoneType found

    Anybody use esxcli in external script ?
    And how to debug this error? Zabbix_server.log look good:
    In zbx_popen() command: '/usr/lib/zabbix/externalscripts/hp-array-esxi.sh "my_host_ip"

    Or maybe somebody know another way how to receive raid info without use login/password. esxcli use credential store, it is not perfect but enough for me.

    I listed about hp management agents for vSphere + SNMP, but I can't find it..

    System Info: CentOS 6.7 x64 + Zabbix 2.2.12 / HP ProLiant DL180 G6 + vSphere 5.5 U3
    Last edited by Free4ert; 27-07-2017, 07:07.
Working...