ZABBIX Forums  

Go Back   ZABBIX Forums > Zabbix Discussions and Feedback > Zabbix Cookbook

Reply
 
Thread Tools Display Modes
  #11  
Old 01-03-2016, 16:03
varnav varnav is offline
Member
 
Join Date: Jul 2009
Posts: 36
Default

For use this with HTTPS, edit the script, add:

use LWP::Protocol::https;
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;

and change everything from

http://

to

https://
Reply With Quote
  #12  
Old 01-03-2016, 16:23
michael.weber michael.weber is offline
Member
 
Join Date: Nov 2015
Posts: 81
Default

Thanks for that hint. I will add it to my first post and link to your post. Ok?
Reply With Quote
  #13  
Old 01-03-2016, 17:19
varnav varnav is offline
Member
 
Join Date: Jul 2009
Posts: 36
Default

Sure.

I also think this template would look well on http://share.zabbix.com
Reply With Quote
  #14  
Old 02-03-2016, 12:19
varnav varnav is offline
Member
 
Join Date: Jul 2009
Posts: 36
Default

Don't forget to increase Timeout value in zabbix_server.conf

Any ideas how to monitor IOPS?
Reply With Quote
  #15  
Old 02-03-2016, 13:18
varnav varnav is offline
Member
 
Join Date: Jul 2009
Posts: 36
Default

Also, there seems to be an error in disk trigger prototype. One of these should check for status that is "Up", not "Ok".

Should be:

Drive[{#KEY}] Status
{Template HP MSA 2040:hp-msa.pl[{$MSA1},"data", "disk", {#KEY}, "status"].iregexp(up)}=0
Reply With Quote
  #16  
Old 02-03-2016, 15:20
varnav varnav is offline
Member
 
Join Date: Jul 2009
Posts: 36
Default

I've published it with fixes to Zabbix Share:

https://share.zabbix.com/storage-devices/hp/hp-msa
Reply With Quote
  #17  
Old 04-03-2016, 05:17
kobe kobe is offline
Junior Member
 
Join Date: Mar 2016
Posts: 5
Default

Quote:
Originally Posted by michael.weber View Post
Please check the Server logs. In my logs i can see that sometimes to execution time for the script just to high and zabbix kills it. Can you check this?
Hi, I met below issue while I run hp-msa.pl, would you please help me to confirm what happened? Thanks.

[root@ externalscripts]# perl /usr/local/zabbix/share/zabbix/externalscripts/hp-msa.pl [IP address] data enclosure 2 health

mismatched tag at line 9, column 2, byte 186 at /usr/lib64/perl5/XML/Parser.pm line 187
Reply With Quote
  #18  
Old 24-03-2016, 18:59
tikondrus tikondrus is offline
Member
 
Join Date: Jan 2011
Posts: 35
Default

with latest version i have some errors.
1)
Code:
# /usr/lib/zabbix/externalscripts/hp-msa.pl msa2000-1 manage !manage lld
bash: !manage: event not found
but !manage - is default password. i cant use this script without changing password.

when i changed password it works:

Code:
# /usr/lib/zabbix/externalscripts/hp-msa.pl msa2000-1 manage Manage123 lld controller
{
   "data" : [
      {
         "{#KEY}" : "A",
         "{#CLASS}" : "Controller"
      },
      {
         "{#KEY}" : "B",
         "{#CLASS}" : "Controller"
      }
   ]
}
2) but in msa2040 does't work
# /usr/lib/zabbix/externalscripts/hp-msa.pl msa2400-1 manage Manage123 lld controller
Unsuccessful stat on filename containing newline at /usr/local/share/perl5/XML/Simple.pm line 950.
Unsuccessful stat on filename containing newline at /usr/local/share/perl5/XML/Simple.pm line 963.
File does not exist: Can't connect to msa2400-1:443

Name or service not known at /usr/share/perl5/LWP/Protocol/http.pm line 51.
at /usr/lib/zabbix/externalscripts/hp-msa.pl line 109.



3) old version create very usefull graphs but this version doesn't.

Template_HP_P2000_G3: {#HP_P2000_TYPE} {#HP_P2000_ID} IOPS
Template_HP_P2000_G3: {#HP_P2000_TYPE} {#HP_P2000_ID} Transfer Rate
Reply With Quote
  #19  
Old 24-03-2016, 21:08
varnav varnav is offline
Member
 
Join Date: Jul 2009
Posts: 36
Default

1) You can't use symbol '!' in command line just like that
2) Is your API available via HTTPS?
3) MSA2040 script does not seem to support that, I'm looking for a solution too
Reply With Quote
  #20  
Old 24-03-2016, 22:10
tikondrus tikondrus is offline
Member
 
Join Date: Jan 2011
Posts: 35
Default

API not availe via HTTPS.

Template_HP_P2000_G3 support MSA2040.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:17.