Monitoring performance of an HP EVA SAN

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
robmize
Posts: 1
Joined: Thu Feb 16, 2012 8:52 am

Re: Monitoring performance of an HP EVA SAN

Post by robmize »

Not sure if you are still trying to get this to work, but I had the same problem as you. I wanted to post my solution in case anyone in the future runs across this...

My problem was that SELinux was enabled and preventing apache from executing the python script. I had the same debug messages claiming that it was executing the query, but no results and nothing in the logs. I disabled SELinux and it started to work.

JakeB wrote:First off...thanks for your help Lalbee99 and others!!!

Yeah, I can run it from the CLI as the Apache user and my Cacti user (data returned is EVA01):

[root@itsys ~]# su cactiuser
[cactiuser@itsys root]$ python /var/www/html/cacti/scripts/query_wmi.py --host cv01.sample.domain.com --authentication-file /etc/cacti/cv01.sample.domain.com.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAStorageArray index
EVA01
[cactiuser@itsys root]$ exit
exit
[root@itsys ~]# su apache
bash-4.1$ python /var/www/html/cacti/scripts/query_wmi.py --host cv01.sample.domain.com --authentication-file /etc/cacti/cv01.sample.domain.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAStorageArray index
EVA01
bash-4.1$ exit

Still nothing in the Poller Cache and the Device Associated Data Query still lists: Success [0 Items, 0 Rows]

Here is the output from a Verbose Data Query:

+ Running data query [16].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/eva_virtualdisks.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'python /var/www/html/cacti/scripts/query_wmi.py --host cv01.mythos.suresource.com --authentication-file /etc/cacti/cv01.sample.domain.com.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAVirtualDisk index'
+ Executing script query 'python /var/www/html/cacti/scripts/query_wmi.py --host cv01.sample.domain.com --authentication-file /etc/cacti/cv01.mythos.suresource.com.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAVirtualDisk query friendlyname'
+ Executing script query 'python /var/www/html/cacti/scripts/query_wmi.py --host cv01.sample.domain.com --authentication-file /etc/cacti/cv01.mythos.suresource.com.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAVirtualDisk query Name'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/eva_virtualdisks.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/eva_virtualdisks.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/eva_virtualdisks.xml'
morvanf
Posts: 1
Joined: Wed Sep 05, 2012 6:46 am

Re: Monitoring performance of an HP EVA SAN

Post by morvanf »

Hello All,

I installed the CACTI EVA Plugin with success, but i need to have the diskgroup space utilisation (for capacity planning).

Someone can help me please ? There is a other plugin th have this graph ?

Bests Regards
ltfrebac
Posts: 2
Joined: Fri Aug 24, 2007 9:03 am

Re: Monitoring performance of an HP EVA SAN

Post by ltfrebac »

I am having trouble installing the templates on Cacti 0.8.8. Templates from earlier package 2010-03-10 works but cacti-evaperf-2010-03-15.tar.gz does not install. I get a white page in browser and in /var/log/httpd/error_log i get:

[Mon Oct 15 09:30:42 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Only variable references should be returned by reference in /var/www/cacti/lib/import.php on line 689, referer: http://xxx.xxx.com:8080/cacti/templates_import.php
[Mon Oct 15 09:30:42 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Unsupported operand types in /var/www/cacti/lib/import.php on line 86, referer: http://xxx.xxx.com:8080/cacti/templates_import.php
yjbenigni
Posts: 3
Joined: Fri Aug 09, 2013 9:00 am

Re: Monitoring performance of an HP EVA SAN

Post by yjbenigni »

Hello cacti Man,

i have the same trouble than "ltfrebac" with an cacti 0.8.8.a-2 on a CentOS 6.4 and cacti-evaperf-2010-03-15.tar.gz
Import template dosn't work ...
Sometime white page on Firefox when i Import the xml file and sometime just this :
Notice: Only variable references should be returned by reference in /usr/share/cacti/lib/import.php on line 689 Fatal error: Unsupported operand types in /usr/share/cacti/lib/import.php on line 86
and in /var/log/httpd/error_log
[Fri Aug 09 15:56:16 2013] [error] [client 1.1.1.1] PHP Notice: Only variable references should be returned by reference in /usr/share/cacti/lib/import.php on line 689, referer: http://xxxxx/cacti/templates_import.php
[Fri Aug 09 15:56:16 2013] [error] [client 1.1.1.1] PHP Fatal error: Unsupported operand types in /usr/share/cacti/lib/import.php on line 86, referer: http://xxxx/cacti/templates_import.php
php.ini :
..
file_uploads = On
..
memory_limit = 768M

An idea ... or where can i download the package 2010-03-10 who should work fine ... hummm

Thank's for your help
Best Regards
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: Monitoring performance of an HP EVA SAN

Post by trungtano »

Hello

I have result error with hash format when I try to import the template to Cacti

parse_xml_hash ERROR wrong hash format I have Version 0.8.7i

How to solve this? Do anyone have another template?

Thank a lot
draurdraur
Posts: 1
Joined: Thu Oct 10, 2013 9:53 am

Re: Monitoring performance of an HP EVA SAN

Post by draurdraur »

I have tested this on centos 5 and centos 6

There is no grapg generated.
/var/log/cacti/query_eva.log is empty

I get text in log if I press green circle in Associated Data Queries.
There is:

Code: Select all

python /usr/share/cacti/scripts/query_wmi.py --host servername --authentication-file /etc/cacti/servername.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAVirtualDisk num_indexes

ERROR: unknown option num_indexes
There is not EVA Graph templates in drop-down list at Associated Graph Templates.

If I run:

Code: Select all

wmic --namespace='root\CIMV2'  --authentication-file /etc/cacti/servername.pw //servername "SELECT * FROM Win32_PerfRawData_EVAPMEXT_HPEVAStorageController"
CLASS: Win32_PerfRawData_EVAPMEXT_HPEVAStorageController

(null)|Description|Frequency_Object|Frequency_PerfTime|Frequency_Sys100NS|Name|PercentDataTransferTime|PercentProcessorTime|Timestamp_Object|Timestamp_PerfTime|Timestamp_Sys100NS
(null)|(null)|0|0|10000000|FIRMA_EVA_1:PAFUBA19SWC0AD|1|1|0|0|130258985916460000
Or:

Code: Select all

wmic --namespace='root\CIMV2'  --authentication-file /etc/cacti/servername.pw //servername "select Name from Win32_ComputerSystem"
CLASS: Win32_ComputerSystem
Name
SERVERNAME

There is also error in RRDTool (See image)
On one compueet there is onlt QueueDepth source available, and on other none.
Attachments
Clipboard03.jpg
Clipboard03.jpg (139.29 KiB) Viewed 2424 times
Clipboard02.jpg
Clipboard02.jpg (97.55 KiB) Viewed 2424 times
Clipboard01.jpg
Clipboard01.jpg (109.65 KiB) Viewed 2424 times
JaTe
Posts: 1
Joined: Sun Oct 27, 2013 2:03 pm

Re: Monitoring performance of an HP EVA SAN

Post by JaTe »

There is the reason why import template is failing.

<hash_0500214845c983ed5f6678a0252168035ba7e3>
<name>Ratio, Multiply by 1024</name>
<items>
<hash_140021714fd4d5c2b7decdd10aae7e8d759665>
<sequence>1</sequence>
<type>5</type>
<value>21</value>
</hash_140021714fd4d5c2b7decdd10aae7e8d759665>
<hash_1400219ad923c943c45ac3c4ceec93aa379726>
<sequence>2</sequence>
<type>6</type>
<value>1024</value>
</hash_1400219ad923c943c45ac3c4ceec93aa379726>
<hash_140021225a75658716373483a46725b1dac019>
<sequence>3</sequence>
<type>2</type>
<value>3</value>
</hash_140021225a75658716373483a46725b1dac019>
</items>
</hash_0500214845c983ed5f6678a0252168035ba7e3>
</cacti>

If you change this type to anything else it will import that template with no errors. However i don't have any clue what will happen if i change this type value to 5 or 4.
yjbenigni
Posts: 3
Joined: Fri Aug 09, 2013 9:00 am

Re: Monitoring performance of an HP EVA SAN

Post by yjbenigni »

Thank's JaTe for your help.

When i change <type>5</type>
the message :
Error: XML parse error.

I look for a cacti_host_template_eva_commandview.xml file

or zip archive ...

Best regards
yjbenigni
Posts: 3
Joined: Fri Aug 09, 2013 9:00 am

Re: Monitoring performance of an HP EVA SAN

Post by yjbenigni »

Hello,
@JaTe, after several modification, it's good for me. Import template OK !!!
<type>3</type> was the last test.

Thank's for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests