Ad Widget

Collapse

HP P2000 G3 monitoring (Zabbix 2.0)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • i.kulagin
    replied
    I've got this error in zabbix-server.log:
    item [msa2000:hp-msa.pl["{HOST.DNS1}","stats"]] became not supported: Received value [] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
    But the /var/tmp/zabbixSenderHPP2000_* file is not empty and contains some usefull infomation. Is it possible that the problem with a perl parser? The script produced an error and asked about missing /usr/local/share/perl/5.14.2/XML/SAX/ParserDetails.ini. I have copied sample ParserDetails.ini from /etc/perl/XML/SAX/. Now it looks like this: Is it alright?
    Does anyone have any other suggestions about how to solve the problem?
    ----
    Ubuntu 12.04, zabbix 2.0.1.
    Last edited by i.kulagin; 02-08-2012, 10:27.

    Leave a comment:


  • meduzalt
    replied
    Originally posted by thesubmitter
    Having the same error here on a self compiled 2.0 install running debian squeeze and on msa g2 2312i
    I have the same Debian Squeeze
    Maybe it is related with Debian and Perl v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
    In some Forums it was noticed that after Perl upgraded from <5.10 to 5.10 appeared such error:
    Not a HASH reference at
    as alternative need test with another Perl version, but dont know how. Need Googling.

    Leave a comment:


  • thesubmitter
    replied
    Having the same error here on a self compiled 2.0 install running debian squeeze and on msa g2 2312i

    Originally posted by meduzalt
    Hello,

    I see it is good solution to monitor HP MSA, but I have problem with perl script.
    I have Zabbix 2.0.0 server, and want to monitor MSA 2324sa

    I've got error when execute:
    Code:
    ./hp-msa.pl FQDN stats 
    Not a HASH reference at ./hp-msa.pl line 60
    or
    Code:
    ./hp-msa.pl FQDN
    Not a HASH reference at ./hp-msa.pl line 33
    I dont understant what is wrong and cant find reference.
    Thanks

    Leave a comment:


  • meduzalt
    replied
    Hello,

    I see it is good solution to monitor HP MSA, but I have problem with perl script.
    I have Zabbix 2.0.0 server, and want to monitor MSA 2324sa

    I've got error when execute:
    Code:
    ./hp-msa.pl FQDN stats 
    Not a HASH reference at ./hp-msa.pl line 60
    or
    Code:
    ./hp-msa.pl FQDN
    Not a HASH reference at ./hp-msa.pl line 33
    I dont understant what is wrong and cant find reference.
    Thanks

    Leave a comment:


  • scr512
    replied
    Originally posted by scr512
    Under 30 seconds to be sure
    Code:
    time ./hp-msa.pl jckp2k-1a.rac.acl 
    
    real	0m5.440s
    user	0m0.634s
    sys	0m0.038s
    
    time ./hp-msa.pl jckp2k-1a.rac.acl stats
    0
    
    real	0m7.793s
    user	0m0.496s
    sys	0m0.037s
    Maybe I should be using a newer version of Zabbix 2?
    Code:
    /usr/local/sbin/zabbix_server --version
    
    Zabbix server v2.0.0 (revision 27675) (21 May 2012)
    Compilation time: Jul 16 2012 08:39:11
    I think I got this working... being the idiot that I am... I failed to notice that my Zabbix server and agentd configuration files were located in /usr/local/etc rather than /etc/zabbix

    Once I copied my configuration files over proper things now appear to be working.

    Leave a comment:


  • scr512
    replied
    Originally posted by Emir Imamagic
    How long do scripts take to execute:
    Code:
    time ./hp-msa.pl <HOSTNAME>
    time ./hp-msa.pl <HOSTNAME> stats
    Under 30 seconds to be sure
    Code:
    time ./hp-msa.pl jckp2k-1a.rac.acl 
    
    real	0m5.440s
    user	0m0.634s
    sys	0m0.038s
    
    time ./hp-msa.pl jckp2k-1a.rac.acl stats
    0
    
    real	0m7.793s
    user	0m0.496s
    sys	0m0.037s
    Maybe I should be using a newer version of Zabbix 2?
    Code:
    /usr/local/sbin/zabbix_server --version
    
    Zabbix server v2.0.0 (revision 27675) (21 May 2012)
    Compilation time: Jul 16 2012 08:39:11
    Last edited by scr512; 19-07-2012, 15:21.

    Leave a comment:


  • Emir Imamagic
    replied
    Originally posted by scr512
    Yes, this is set in server config as well... no joy.
    How long do scripts take to execute:
    Code:
    time ./hp-msa.pl <HOSTNAME>
    time ./hp-msa.pl <HOSTNAME> stats

    Leave a comment:


  • scr512
    replied
    Originally posted by Emir Imamagic
    You need to put this variable to Zabbix server config.

    Cheers
    Yes, this is set in server config as well... no joy.

    Leave a comment:


  • Emir Imamagic
    replied
    Originally posted by scr512
    Ok, I have that now setup. I've also configured my zabbix_agentd.conf to have a Timeout=30.
    You need to put this variable to Zabbix server config.

    Cheers

    Leave a comment:


  • scr512
    replied
    Originally posted by Emir Imamagic
    You need to configure add at least one Agent interface and put IP and DNS there. Afterwards you can remove this SNMP interface.

    Ok, I have that now setup. I've also configured my zabbix_agentd.conf to have a Timeout=30.

    Code:
    cat /etc/zabbix/zabbix_agentd.conf | grep Timeout
    ### Option: Timeout
    #	Spend no more than Timeout seconds on processing
    Timeout=30
    So, I seem to be getting a little further along. I am now running into this
    Code:
    1328:20120718:164423.314 item [jckp2k-1a.rac.acl:hp-msa.pl["{HOST.DNS1}","stats"]] became not supported: timeout while executing a shell script
    1328:20120718:164443.325 item [jckp2k-1a.rac.acl:hp-msa.pl["{HOST.CONN}"]] became not supported: timeout while executing a shell script
    1328:20120718:164528.345 item [jckp2k-1b.rac.acl:hp-msa.pl["{HOST.DNS1}","stats"]] became not supported: timeout while executing a shell script
    1326:20120718:164553.362 item [jckp2k-1b.rac.acl:hp-msa.pl["{HOST.CONN}"]] became not supported: timeout while executing a shell script

    Leave a comment:


  • Emir Imamagic
    replied
    Originally posted by scr512
    Hmm I seem to be going crazy

    I can definitely connect to the storage management interface from my Zabbix box using it's DNS name (SSH)

    Yet I am still getting le crazy log messages complaining about "*UNKNOWN*". I'll do some more Googling.


    So, does this look sane to you?
    You need to configure add at least one Agent interface and put IP and DNS there. Afterwards you can remove this SNMP interface.

    Leave a comment:


  • scr512
    replied
    Originally posted by Emir Imamagic
    The tricky part is that I used DNS name for stats. You have to make sure that:
    1. DNS attribute is properly defined in "Agent interfaces"
    2. DNS can be used to access storage controller and
    3. DNS is equivalent to the "Host name" attribute of the host.
    Hmm I seem to be going crazy

    I can definitely connect to the storage management interface from my Zabbix box using it's DNS name (SSH)

    Yet I am still getting le crazy log messages complaining about "*UNKNOWN*". I'll do some more Googling.


    So, does this look sane to you?

    Leave a comment:


  • Emir Imamagic
    replied
    Originally posted by scr512
    So actually the script looks to be working just fine, at least when I run it interactively from CLI I can see a bunch of useful data I would love to ingest.

    So, looking at the zabbix_server.log it is obvious that I am doing something wrong in my host configuration.

    Code:
    File does not exist: 500 Can't connect to *UNKNOWN*:443 (Bad hostname '*UNKNOWN*')
     at /usr/local/share/zabbix/externalscripts/hp-msa.pl line 120
    I'll poke around and see what I am doing. I will note that when I configured the hosts, I used an SNMP interface, not an agent interface. I do have an IP and DNS name set on the SNMP interface.
    The tricky part is that I used DNS name for stats. You have to make sure that:
    1. DNS attribute is properly defined in "Agent interfaces"
    2. DNS can be used to access storage controller and
    3. DNS is equivalent to the "Host name" attribute of the host.

    Leave a comment:


  • scr512
    replied
    Originally posted by Emir Imamagic
    Hello,

    I have exactly the same version so it should work fine.

    Is LLD working? Did you get all the controllers, vdisks and volumes configured in Zabbix? Script will report 0 if sending of at least a single value fails.

    Unfortunately I didn't have time to do decent debugging so I suggest commenting line:
    Code:
    die "Can not remove file $sendFile!" unless(unlink ($sendFile));
    After executing
    Code:
    hp-msa.pl FQDN stats
    check content of file "/var/tmp/zabbixSenderHPP2000".

    Also check Zabbix server logs for errors.
    So actually the script looks to be working just fine, at least when I run it interactively from CLI I can see a bunch of useful data I would love to ingest.

    So, looking at the zabbix_server.log it is obvious that I am doing something wrong in my host configuration.

    Code:
    File does not exist: 500 Can't connect to *UNKNOWN*:443 (Bad hostname '*UNKNOWN*')
     at /usr/local/share/zabbix/externalscripts/hp-msa.pl line 120
    I'll poke around and see what I am doing. I will note that when I configured the hosts, I used an SNMP interface, not an agent interface. I do have an IP and DNS name set on the SNMP interface.

    Leave a comment:


  • Emir Imamagic
    replied
    Unfortunately I don't have such storage here. Best way to find out is to give it a try

    Originally posted by thesubmitter
    Would this work for a g2 msa2312i?

    Leave a comment:

Working...