Ad Widget

Collapse

HP P2000 G3 monitoring (Zabbix 2.0)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • iuramd88
    replied
    Please help

    The script doesn't work for me. When I run the script "hp-msa.pl fqdn stats" I get the following error: Undefined subroutine &main::XMLin called at ./hp-msa.pl line 120.
    The same error I see in zabbix_server.log file. The OS I use for zabbix is FreeBSD.

    Leave a comment:


  • avk
    replied
    Originally posted by aib
    well, you have no choice.
    Code:
    # yum install zabbix-sender
    That's not in the user manual.
    Thanks!

    Leave a comment:


  • aib
    replied
    well, you have no choice.
    Code:
    # yum install zabbix-sender

    Leave a comment:


  • avk
    replied
    Originally posted by extress
    your Zabbix has been installed through yum or manually ?
    I have yum installed Zabbix.

    Originally posted by extress
    edit : and if you try
    Code:
    updatedb && locate zabbix_sender
    nothing
    Last edited by avk; 12-03-2014, 14:28.

    Leave a comment:


  • extress
    replied
    Originally posted by avk
    whereis zabbix_sender
    zabbix_sender:

    nothing
    your Zabbix has been installed through yum or manually ?

    edit : and if you try
    Code:
    updatedb && locate zabbix_sender

    Leave a comment:


  • avk
    replied
    Originally posted by extress
    try this command :
    Code:
    whereis zabbix_sender
    whereis zabbix_sender
    zabbix_sender:

    nothing

    Leave a comment:


  • extress
    replied
    Originally posted by avk
    I can't find zabbix_sender in /usr/local/bin.
    I have CentOS 6.5. Which path to look?
    try this command :
    Code:
    whereis zabbix_sender

    Leave a comment:


  • avk
    replied
    Originally posted by extress
    You must adapt the $zabbixSender variable that fit your installation, in my case :
    $zabbixSender="/usr/local/bin/zabbix_sender";
    I can't find zabbix_sender in /usr/local/bin.
    I have CentOS 6.5. Which path to look?

    Leave a comment:


  • extress
    replied
    Originally posted by avk
    ./hp-msa.pl fqdn stats

    Can't exec "/usr/bin/zabbix_sender": No such file or directory at ./hp-msa.pl line 168.
    Use of uninitialized value in pattern match (m//) at ./hp-msa.pl line 168.
    You must adapt the $zabbixSender variable that fit your installation, in my case :
    $zabbixSender="/usr/local/bin/zabbix_sender";

    edit : the same goes with $zabbixConfd, $USERNAME and $PASSWORD ...
    Last edited by extress; 12-03-2014, 12:26.

    Leave a comment:


  • avk
    replied
    ./hp-msa.pl fqdn stats

    ./hp-msa.pl fqdn stats

    Can't exec "/usr/bin/zabbix_sender": No such file or directory at ./hp-msa.pl line 168.
    Use of uninitialized value in pattern match (m//) at ./hp-msa.pl line 168.

    Leave a comment:


  • sarou
    replied
    Hi,


    Thanks for template & Perl script.

    I have a little problem, I try to create Items to check LUNs & Volumes but nothing appear in Lastest Datas Tabs. I can see "Sensor" but that's all.

    Does anybody could say if I create item correctly ?




    Thank you for answer and have a nice day.



    PS : The Sensor Item appears but the value is "0" since 3 days...
    Last edited by sarou; 20-02-2014, 09:34.

    Leave a comment:


  • tikondrus
    replied
    simple sollution:
    yum install 'perl(IO::Socket::SSL)'

    Leave a comment:


  • tikondrus
    replied
    Originally posted by prem
    Running CentOS 6.3 x86_64 with perl-5.10.1-127.el6.x86_64 hp-msa.pl returns the following error:

    syntax error at line 1, column 0, byte 0 at /usr/lib64/perl5/XML/Parser.pm line 187

    It would be great if someone could help me please. Thanks!
    a have the same problem.
    Running CentOS 6.5 x86_64 with perl-5.10.1-136.el6.x86_64

    can anybody help me?

    Leave a comment:


  • Sententiosus
    replied
    HASH error

    Hello,

    we like to monitor our MSA 2000 and while we trying the script we getting the error:
    Not a HASH reference at /usr/lib/zabbix/externalscripts/hp-msa.pl line 18.
    Code:
     my $ua = shift;
        my $sessionKey = shift;
        my $url = shift;
        my $objectName = shift;
        my $idName = shift;
        my $type = shift;
        my $zbxArray = shift;
        my $req = HTTP::Request->new(GET => $url);
        $req->header('sessionKey' => $sessionKey );
        $req->header('dataType' => 'api' );
        my $res = $ua->request($req);
        my $ref = XMLin($res->content, KeyAttr => "oid");
        foreach my $oid (values %{$ref->{OBJECT}}) {
           [SIZE="2"][FONT="Arial Black"] if ($oid->{name} eq $objectName) {[/FONT][/SIZE]
                my $reference;
                foreach my $entry (@{$oid->{PROPERTY}}) {
                    if ($entry->{name} =~ /^($idName)$/) {
                        $reference = {'{#HP_P2000_ID}' => $entry->{content}, '{#HP_P2000_TYPE}' => $type};
                        last;
                    }
                }
                push @{$zbxArray}, {%{$reference}};
            }
        }
    }
    Line 18 is marked. Has someone the same issue or maybe the solution?

    Thanks

    Leave a comment:


  • dima_dm
    replied
    Originally posted by elvar
    Has anyone added anything to this script / template to detect disk and volume failures by chance?
    I added SNMP Item
    .1.3.6.1.4.1.232.11.2.10.1.0
    And trigger
    {Template_HP_P2000_G3_FC:cpqHoMibStatusArray.last( 0)}#133396

    Leave a comment:

Working...