Ad Widget

Collapse

HP P2000 G3 monitoring (Zabbix 2.0)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Interrupt
    replied
    Originally posted by aglees_esy
    That error rings a bell with me. You installed the JSON components?
    This is installed ...
    (sudo apt-get install libjson-perl => libjson-perl is already the newest version.)

    Leave a comment:


  • aglees_esy
    replied
    Code:
    Could not open file /var/tmp/zabbix/zabbixSenderHP[removed by me]_22091 at /usr/share/zabbix/externalscripts/hp-msa.pl line 165.
    I'm getting the above when the sensor item runs. Weird thing is that when I run the script from the shell it works perfectly - even the disk health sensors.

    Any ideas on what might be going wrong?

    I thought it might be permissions on the /var/tmp/zabbix folder, but everything is allowed. I thought it might be the Agentd timeout on processing, so set that to 10 seconds. No dice.

    Leave a comment:


  • aglees_esy
    replied
    Originally posted by Interrupt
    Hello

    Thx for making this template for the HP P2000.
    I have a bit of a problem installing this template.
    I'm still getting the "Can't use string ("status") as a HASH ref while "strict refs" in use at /etc/zabbix/externalscripts/hp-msa.pl line 60" error.
    i tried to install the IO::Socker::SSL but is was already installed.
    Anyone else got this issue?

    Ubuntu 14.04
    Zabbix 2.4.4
    Perl 5.18.2
    That error rings a bell with me. You installed the JSON components?

    Leave a comment:


  • Interrupt
    replied
    Hash

    Hello

    Thx for making this template for the HP P2000.
    I have a bit of a problem installing this template.
    I'm still getting the "Can't use string ("status") as a HASH ref while "strict refs" in use at /etc/zabbix/externalscripts/hp-msa.pl line 60" error.
    i tried to install the IO::Socker::SSL but is was already installed.
    Anyone else got this issue?

    Ubuntu 14.04
    Zabbix 2.4.4
    Perl 5.18.2

    Leave a comment:


  • aglees_esy
    replied
    Originally posted by winsash
    Hello, Crispytown!

    Unfourtunatly, your solution didn't take effect for me. I still have "0", when I run script. And if I try start manually Zabbix_sender:
    PHP Code:
    zabbix_sender -/etc/zabbix/zabbix_agentd.conf -/var/tmp/zabbixSenderHPP2000_pmt-p2000.pmt.loc_30085 
    I have the same error:
    PHP Code:
    info from server"processed: 0; failed: 55; total: 55; seconds spent: 0.001006"
    sent55skipped0total55 
    I tried removing the
    Code:
    $type
    variable from the following line, and now it works albeit the individual disk health sensors don't work

    line 88 (sub getZabbixValues)
    Code:
    $outputString .= "$hostname hp.p2000.stats[$type,$key,$itemKey] $colHash->{$key}->{$itemKey}\n";
    Was looking at how the Zabbix-Sender works, and I think that
    Code:
    $type
    variable throws it off.

    Leave a comment:


  • winsash
    replied
    Originally posted by crispytown
    I had the same issues with the files being created but not importing the data.

    Code:
    info from server: "processed: 0; failed: 55; total: 55; seconds spent: 0.000757" 
    sent: 55; skipped: 0; total: 55
    What I did to get it to work was make sure in the configuration for the host... that the "Host Name" is the spelled the same as the Agent interfaces "DNS Name". See Capture.jpg
    Hello, Crispytown!

    Unfourtunatly, your solution didn't take effect for me. I still have "0", when I run script. And if I try start manually Zabbix_sender:
    PHP Code:
    zabbix_sender -/etc/zabbix/zabbix_agentd.conf -/var/tmp/zabbixSenderHPP2000_pmt-p2000.pmt.loc_30085 
    I have the same error:
    PHP Code:
    info from server"processed: 0; failed: 55; total: 55; seconds spent: 0.001006"
    sent55skipped0total55 
    Attached Files

    Leave a comment:


  • undisSss
    replied
    I have set HP p2000 g3 iSCSI storage monitoring. In two weeks Access to the storage via http https got lost.controller restart works to help. There are a lot of people in the Internet with the same problem but no solution. Has anyone experienced the same problem? Should I update firmware? Current version TS220R004.

    Leave a comment:


  • adambmedent
    replied
    Originally posted by crispytown
    I had the same issues with the files being created but not importing the data.

    Code:
    info from server: "processed: 0; failed: 55; total: 55; seconds spent: 0.000757" 
    sent: 55; skipped: 0; total: 55
    What I did to get it to work was make sure in the configuration for the host... that the "Host Name" is the spelled the same as the Agent interfaces "DNS Name". See Capture.jpg
    I gave it a shot but I still just get a value of 0.

    Leave a comment:


  • crispytown
    replied
    I had the same issues with the files being created but not importing the data.

    Code:
    info from server: "processed: 0; failed: 55; total: 55; seconds spent: 0.000757" 
    sent: 55; skipped: 0; total: 55
    What I did to get it to work was make sure in the configuration for the host... that the "Host Name" is the spelled the same as the Agent interfaces "DNS Name". See Capture.jpg
    Attached Files

    Leave a comment:


  • adambmedent
    replied
    I am running into the same issue.

    [root@zabbix externalscripts]# ./hp-msa.pl cloudst1a stats
    0

    I can also comment out.

    die "Can not remove file $sendFile!" unless(unlink ($sendFile));

    Then I end up with a /var/tmp/zabbixSenderHPP2000_cloudst1a_3719 which has good info. Just not sure what the issue is.

    Leave a comment:


  • winsash
    replied
    stats results 0

    Hello all!

    My system is:
    • OS: Ubuntu 14.04
    • Zabbix Server 2.4.3
    • Zabbix-Sender 2.4.3
    • Zabbig-Get 2.4.3

    When I run pl-script with key “stats”, it returns result “0”.

    When I comment string
    PHP Code:
    die "Can not remove file $sendFile!" unless(unlink ($sendFile)); 
    and run pl-script again, I see file zabbixSenderHPP2000_%hostname%_ in folder /var/tmp and this file contains data.

    When I try manually use zabbix-sender like this:
    PHP Code:
    zabbix_sender -/etc/zabbix/zabbix_agentd.conf -/var/tmp/zabbixSenderHPP2000_%hostname%
    I have these results:
    PHP Code:
    info from server"processed: 0; failed: 55; total: 55; seconds spent: 0.000757"
    sent55skipped0total55 
    It log files in zabbix server I have no errors about P2000 items.

    Whan can it be?

    Thank you!

    P.S. Sorry for my bad English.

    Leave a comment:


  • ViktorJJ
    replied
    Hp msa 2000 g2

    Just a note:
    to get authenthicated on MSA G2 arrays (2312, 2324, etc.) you need add a cookie to request:
    $req->header('Cookie' => "wbiusername=$USERNAME; wbisessionkey=$sessionKey" );
    and there is no performance data in G2 arrays API.

    Leave a comment:


  • nilldot
    replied
    from log>> timeout while executing a shell

    HP P2000 MSM SAS:hp-msa.pl["{HOST.CONN}","lld"]" became not supported: timeout while executing a shell script


    HP P2000 MSM SAS:hp-msa.pl["{HOST.CONN}"]" changed: time-out while executing a shell script



    I though something wrong with {HOST.X} part, thus replaced this part with IP address, still no luck.

    Any help?
    Thanks

    Env.
    Zabbix 2.2.6
    CentOS release 6.5 (Final)

    ####
    Update


    Timeout were sorted out by increasing timeout value to 30 in the zabbix config file. Though, I still can see some timeouts.

    But all my graphs are empty!

    On emore thing, I can't see file /var/tmp/zabbixSender* being created!
    Last edited by nilldot; 01-10-2014, 10:04. Reason: Latest info

    Leave a comment:


  • vymysleny
    replied
    Import problem

    Hello
    When I imported template to zabbix 2.2 , 7 application folder was created , but only one item. As I saw on one screen, there have to be lot of paarameters (and according XML too). Is there any problem with importing 2.0 template to 2.2 zabbix.

    Leave a comment:


  • AmPheT
    replied
    Hi,

    Thanks for your script, i tried it today and it works fine except i have some trouble with controllers and enclosure status.

    I can see the items so that means discovery is ok but no data for those, the others items like disk, speed etc.. are ok. I have no errors from zabbix server logs, no timeout, i am monitoring two differents enclosure with two differents firmware and same for both.

    Thanks for your help.

    Leave a comment:

Working...