Ad Widget

Collapse

HP P2000 G3 monitoring (Zabbix 2.0)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • elvar
    replied
    I managed to get an updated version working however, I do not think Dish's updated version of the original script & template will work due to what I believe is the inability to mix and match macro names (thanks to Volter for pointing this out) such as in the example at https://www.zabbix.com/documentation...evel_discovery. In their example they are all the same down each column.

    Attached is an updated version of the original script provided by OP which just contains the extra enclosure and disk elements. I then added the following prototype item...

    Code:
    Name: $1 $2 health
    Type: Zabbix trapper
    Key: hp.p2000.stats[{#HP_P2000_TYPE},{#HP_P2000_ID},health]
    Type of Information: Text

    Regards,
    Attached Files

    Leave a comment:


  • MyL0
    replied
    ssl

    One problem:

    LWP::Protocol::https::Socket: SSL connect attempt failed because of handshake problems error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3 alert bad record mac at /usr/local/share/perl/5.14.2/LWP/Protocol/http.pm line 41.

    Solution:
    Insert "use Net::SSL;" on top of script (install by cpan or other)

    and modify

    my $ua = LWP::UserAgent->new;

    by

    my $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0 });


    But my problem is the stat = 0 ...

    Thanks

    Leave a comment:


  • elvar
    replied
    Originally posted by dish
    Template update with disk and enclosures status monitoring support
    I'm seeing the following with this version...

    hp-msa.pl["{HOST.DNS1}","stats"]] error: Received value [] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]

    Edit1: My discovery item shows this error - "Value should be a JSON object."
    Last edited by elvar; 15-05-2014, 20:35.

    Leave a comment:


  • elvar
    replied
    Originally posted by avk
    I updated this version.
    ./hp-msa.pl fqdn lld returned data, but stats returned 0 and LATEST DATA was no longer change.
    I installed the old version of the script. ./hp-msa.pl fqdn lld returned data and stats returned 0 and LATEST DATA was started change.

    Yes I'm having problems with the new version as well.

    Leave a comment:


  • dish
    replied
    Originally posted by avk
    I updated this version.
    ./hp-msa.pl fqdn lld returned data, but stats returned 0 and LATEST DATA was no longer change.
    I installed the old version of the script. ./hp-msa.pl fqdn lld returned data and stats returned 0 and LATEST DATA was started change.
    Discovery rule have 1 day delay, try decrease (600 for example) it and disconnect and clear template from the host.

    You can comment string in file hp-msa.pl
    # die "Can not remove file $sendFile!" unless(unlink ($sendFile));
    and check data in file /var/tmp/zabbixSenderHPP2000_hostip...

    Leave a comment:


  • avk
    replied
    I updated this version.
    ./hp-msa.pl fqdn lld returned data, but stats returned 0 and LATEST DATA was no longer change.
    I installed the old version of the script. ./hp-msa.pl fqdn lld returned data and stats returned 0 and LATEST DATA was started change.
    Last edited by avk; 15-05-2014, 05:46.

    Leave a comment:


  • elvar
    replied
    Originally posted by dish
    Template update with disk and enclosures status monitoring support

    Woot! Can't wait to try it out.

    Thanks!

    Leave a comment:


  • dish
    replied
    Update

    Template update with disk and enclosures status monitoring support
    Attached Files

    Leave a comment:


  • aib
    replied
    Good for you!

    Leave a comment:


  • elvar
    replied
    I figured out why it wasn't working. I had accidentally deleted the sensor item which calls the script with the "stats" argument. All good now, thanks!

    Leave a comment:


  • elvar
    replied
    Originally posted by aib
    When you set 0 for History storage period (in days), Zabbix don't care about saving any data.
    You will see in debug log that data was received, but the wouldn't show in Latest data and wouldn't save in database.
    The item prototype's are configured for 7 days of history.

    Leave a comment:


  • aib
    replied
    When you set 0 for History storage period (in days), Zabbix don't care about saving any data.
    You will see in debug log that data was received, but the wouldn't show in Latest data and wouldn't save in database.

    Leave a comment:


  • elvar
    replied
    I have this working when I manually run the script but for whatever reason, it is not automatically showing data in "latest data" on its own. I can see the checks taking place in the zabbix debug log and it appears to be receiving data. I don't actually see any errors taking place but there is definitely no data populating unless I manually run it.

    Suggestions?

    Leave a comment:


  • elvar
    replied
    Originally posted by elvar
    Whenever I run ./hp-msa.pl fqdn stats I receive a result of 0 and nothing is written to /var/tmp/zabbixSenderHPP2000. I don't seem to be receiving any other errors though.

    Suggestions?
    Nevermind.

    Leave a comment:


  • elvar
    replied
    Whenever I run ./hp-msa.pl fqdn stats I receive a result of 0 and nothing is written to /var/tmp/zabbixSenderHPP2000. I don't seem to be receiving any other errors though.

    Suggestions?

    Leave a comment:

Working...