Monitoring performance of an HP EVA SAN

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

Moderators: Developers, Moderators

Post Reply
miwaszko
Posts: 6
Joined: Mon Feb 01, 2010 3:44 am

Re: Monitoring performance of an HP EVA SAN

Post by miwaszko »

Hello there palli. Do You updates of Your host template by any chance? The one from march gives some unmet dependency errors on 0.8.7g:

Code: Select all

Cacti has imported the following items:

CDEF
[success] Multiply by 1024 [update]
[success] Total All Data Sources [update]
[success] Ratio, Multiply by 1024 [update]

GPRINT Preset
[success] Normal [update]
[success] Exact Numbers [update]

Data Input Method
[success] Get Script Data (Indexed) [update]

Data Template
[success] EVA - VirtualDisk [update]
[success] EVA - PhysicalDiskGroup [update]
[success] EVA - HostConnection [update]
[success] EVA - StorageArray [update]
[success] EVA - StorageController [update]
[success] EVA - HostPortStatistics [update]

Graph Template
[success] EVA - VirtualDisk - Requests/Sec [update]
[success] EVA - VirtualDisk - Latency [update]
[success] EVA - VirtualDisk - Throughput [update]
[success] EVA - PhysicalDiskGroup - Latency [update]
[success] EVA - PhysicalDiskGroup - Requests / Second [update]
[success] EVA - PhysicalDiskGroup - Throughput [update]
[success] EVA - HostConnection - Queue Depth [update]
[success] EVA - StorageArray - Throughput [update]
[success] EVA - StorageArray - Requests/sec [update]
[success] EVA - StorageArray - IO Size [update]
[success] EVA - StorageController - CPU [update]
[success] EVA - HostPortStatistics - Requests / Second [update]
   + Unmet Dependency: (Data Template Item)
   + Found Dependency: (GPRINT Preset) Normal
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
[success] EVA - HostPortStatistics - Queue Depth [update]
[success] EVA - HostPortStatistics - Throughput [update]
   + Unmet Dependency: (Data Template Item)
   + Found Dependency: (CDEF) Multiply by 1024
   + Found Dependency: (GPRINT Preset) Normal
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)

Data Query
[success] Eva - Query new VirtualDisk [update]
[success] Eva - Query new PhysicalDiskGroup [update]
[success] Eva - Query new HostConnection [update]
[success] Eva - Query new StorageArray [update]
[success] Eva - Query new StorageController [update]
[success] Eva - Query HostPortStatistics [update]
   + Found Dependency: (Data Input Method) Get Script Data (Indexed)
   + Found Dependency: (Graph Template) EVA - HostPortStatistics - Requests / Second
   + Found Dependency: (Data Template) EVA - HostPortStatistics
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Found Dependency: (Graph Template) EVA - HostPortStatistics - Throughput
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Found Dependency: (Graph Template) EVA - HostPortStatistics - Queue Depth
   + Found Dependency: (Data Template Item) AvQueueDepth
   + Found Dependency: (Data Template) EVA - HostConnection

Host Template
[success] EVA Commandview [update]
The result is, that I have empty data queries, but of course the script (query_wmi.py) returns exptected and correct values.
miwaszko
Posts: 6
Joined: Mon Feb 01, 2010 3:44 am

Re: Monitoring performance of an HP EVA SAN

Post by miwaszko »

I see the problem is in the output_delimeter value... So if anyone encounters empty queries, check Your script output with eva script_queries.
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 »

I have the same all your problem and I try to run all fix but it not run
markfra
Posts: 1
Joined: Tue May 11, 2010 3:20 pm

Re: Issue with getting results in the Cacti console

Post by markfra »

ShadowCaster.gr wrote:
apaidas wrote:Hi there!

Here is the issue I face. The Data Queries on the Cacti console display "This data query returned 0 rows", but when I run the same queries on the Cacti server, I get the expected results from the EVA. This happens with all data queries. Can you please help me with that? Thank you in advance for your effort.
I have exactly the same problem on both our EVA's,

This data query returned 0 rows

but when i run the same query from the server console :

[cacti@noc ~]$ python /usr/apache2/htdocs/cacti/scripts/query_wmi.py --host eva6400-cmv.domain.com --authentication-file /etc/cacti/eva6400-cmv.domain.com.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAVirtualDisk query Name

6001-4380-05DE-D0C4-0000-F000-0011-0000_5000-1FE1-5024-40E0:H00X [5000-1FE1-5024-40E0]|6001-4380-05DE-D0C4-0000-F000-0011-0000_5000-1FE1-5024-40E0:H00X [5000-1FE1-5024-40E0]
6001-4380-05DE-D0C4-0000-F000-0041-0000_5000-1FE1-5024-40E0:H00X [5000-1FE1-5024-40E0]|6001-4380-05DE-D0C4-0000-F000-0041-0000_5000-1FE1-5024-40E0:H00X [5000-1FE1-5024-40E0]
6001-4380-05DE-D0C4-0000-F000-0016-0000_5000-1FE1-5024-40E0:102J [5000-1FE1-5024-40E0]|6001-4380-05DE-D0C4-0000-F000-0016-0000_5000-1FE1-5024-40E0:102J [5000-1FE1-5024-40E0]
6001-4380-05DE-D0C4-0000-F000-0037-0000_5000-1FE1-5024-40E0:H00X [5000-1FE1-5024-40E0]|6001-4380-05DE-D0C4-0000-F000-0037-0000_5000-1FE1-5024-40E0:H00X [5000-1FE1-5024-40E0]
6001-4380-05DE-D0C4-0000-F000-0027-0000_5000-1FE1-5024-40E0:102J [5000-1FE1-5024-40E0]|6001-4380-05DE-D0C4-0000-F000-0027-0000_5000-1FE1-5024-40E0:102J [5000-1FE1-5024-40E0]


Anybody has any clue ??

Regards,
Nick
Lets hope this helps some peeps in the future!

I had this exact same issue.
The problem in my case was:
- cacti poller running as cacti/cacti (u/g)
- apache running as httpd/httpd (u/g)

Now all the existing disks were queried fine, but adding new graphs always resulted in 0 rows.
How to debug:

- become httpd user and issue the same command (eg: query_wmi.py --host <hostname> --authentication-file /etc/cacti/<hostname>.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAVirtualDisk index)

I got the error: ERROR: Could not write to logfile /var/log/cacti/query_eva.log

Make sure that the query_eva.log is writeable for the user cacti AND httpd (i set it to: -rw-rw---- 1 cacti apache 121907650 Dec 27 13:10 query_eva.log)
Now you should be able to create new graphs again.
mikaelf
Posts: 25
Joined: Sun Mar 19, 2006 10:39 am
Location: Uppsala, Sweden

Re: Monitoring performance of an HP EVA SAN

Post by mikaelf »

miwaszko wrote:Hello there palli. Do You updates of Your host template by any chance? The one from march gives some unmet dependency errors on 0.8.7g:

Code: Select all

Cacti has imported the following items:

   + Unmet Dependency: (Data Template Item)
...
The result is, that I have empty data queries, but of course the script (query_wmi.py) returns exptected and correct values.
First of all, thank you palli for an excellent contribution!

I get the same unmet dependencies on Template Import and I guess that's why some graphs aren't working.

There is also a problem with the management appliance server where WMI seems flakey.
WMI stops working after a while and I get no data for my wmi queries, the workaround so far is to restart the service Windows Management Instrumentation.
mikaelf
Posts: 25
Joined: Sun Mar 19, 2006 10:39 am
Location: Uppsala, Sweden

Re: wmi sucks

Post by mikaelf »

palli wrote: You can try these (in the following order)
* Restart HP Evaperf service
* Run winmgmt /resyncperf
* Run wmiadap /f
* Restart Windows Management Infrastructure service
* Give HP a call, ask them to give you a hand
Nothing helps except Restarting Windows Management Infrastructure service.
Guess I'll try calling HP soon, has anyone else had any luck with this?

Symptom is that I have to restart the WMI service once every hour.
Everytime I've restarted the WMI service, the wmic client stops getting data after an hour.
Alphadog
Posts: 38
Joined: Tue Aug 04, 2009 12:58 am
Location: Bavaria near Germany

Re: Monitoring performance of an HP EVA SAN

Post by Alphadog »

mikaelf wrote: Symptom is that I have to restart the WMI service once every hour.
Everytime I've restarted the WMI service, the wmic client stops getting data after an hour.

Hey mikaelf,

I think the problem of having to restart the service every hour is on quite every system running the eva monitoring.

I createt a batch script put it into planned tasks so that it runs every half hour.

here's what it looks like :

Code: Select all

net stop "Trend Micro Client/Server Security Agent Listener"
net stop "Vmware Authorization Service"
net stop Windows-Verwaltungsinstrumentation 
reg import evaperf.reg
net start Windows-Verwaltungsinstrumentation
net start "Vmware Authorization Service"
net start "Trend Micro Client/Server Security Agent Listener"
lodctr /R
wmiadap /F

all you have to do is to resolve, which services DEPEND on your WMI service , start and restart it in the right order and then run lodctr /R (reloading the HPEVAPMEXT if it gets lost) and wmiadap /F

My file is currently in German but you have to rename the services to whatever your windows language is.

Greez
Alpha


PS: I already postet a troubleshooting guide for this http://forums.cacti.net/viewtopic.php?f ... 5&start=42
mikaelf
Posts: 25
Joined: Sun Mar 19, 2006 10:39 am
Location: Uppsala, Sweden

Re: Monitoring performance of an HP EVA SAN

Post by mikaelf »

Alphadog wrote:

Code: Select all

net stop "Trend Micro Client/Server Security Agent Listener"
net stop "Vmware Authorization Service"
net stop Windows-Verwaltungsinstrumentation 
reg import evaperf.reg
net start Windows-Verwaltungsinstrumentation
net start "Vmware Authorization Service"
net start "Trend Micro Client/Server Security Agent Listener"
lodctr /R
wmiadap /F

all you have to do is to resolve, which services DEPEND on your WMI service , start and restart it in the right order and then run lodctr /R (reloading the HPEVAPMEXT if it gets lost) and wmiadap /F
Thanks Alpha, I've read your troubleshooting guide and your blog, very nice information.
So far I don't need to do anything else except restart the WMI service:

Code: Select all

net stop winmgmt /yes
net start winmgmt
I'll do this every 30 minutes from now and see how it works out.
Sucks to get gaps in the graphs though, I'm going to open a case with HP anyway because I want this to simply work...
Alphadog
Posts: 38
Joined: Tue Aug 04, 2009 12:58 am
Location: Bavaria near Germany

Re: Monitoring performance of an HP EVA SAN

Post by Alphadog »

Hey mikaelf,

I also tried to get support form HP but all I got as answer was that getting performance via WMI isn't currently supportet by HP! and never will be supported, so they wont do anything for you ...

In my case the gaps in the graphs are very small (i dont even see them when going into half hour view)

But i don't know how big your polling intervall is (I poll every 15 seconds)

Greez
Alphadog
thadude
Posts: 1
Joined: Fri Feb 18, 2011 2:51 am

Re: Monitoring performance of an HP EVA SAN

Post by thadude »

great work this templates..

altough i have some unmet dependencies when importing the template.
in my case the EVA - HostPortStatistics - Throughput graphs are not working :cry:

any change that the someone (creator of this templates) could look at it as more people seem to have this problem..??
at the moment we're running cacti 0.8.7e
mikaelf
Posts: 25
Joined: Sun Mar 19, 2006 10:39 am
Location: Uppsala, Sweden

Re: Monitoring performance of an HP EVA SAN

Post by mikaelf »

Alphadog wrote:I also tried to get support form HP but all I got as answer was that getting performance via WMI isn't currently supportet by HP! and never will be supported, so they wont do anything for you ...
I don't really expect anymore from them.
Alphadog wrote: In my case the gaps in the graphs are very small (i dont even see them when going into half hour view).
But i don't know how big your polling intervall is (I poll every 15 seconds)
Same here, can't see any gaps, but I'm currently only doing 1 minute polling interval. wow, 15 seconds. How is your highest resolution rra configured?
I've been considering polling faster actually.
My RRAs:

Code: Select all

Hourly (1 Minute Average) 	1 	500 	14400 	Delete
Daily (5 Minute Average) 	1 	600 	86400 	Delete
Weekly (30 Minute Average) 	6 	700 	604800 	Delete
Monthly (2 Hour Average) 	24 	775 	2678400 	Delete
Yearly (1 Day Average) 	288 	797 	33053184 
bmoody
Posts: 4
Joined: Fri Mar 18, 2011 1:26 pm

Re: Monitoring performance of an HP EVA SAN

Post by bmoody »

Hello there palli. Do You updates of Your host template by any chance? The one from march gives some unmet dependency errors on 0.8.7g:
Can someone pretty please tell me how to resolve this. I am getting the same errors. Unmet dependency errors on .8.7g. This is my first cacti install on this box so I am unsure if I am able to "downgrade" to an earlier version that does not have this problem.

Thank you so much in advance!
bmoody
Posts: 4
Joined: Fri Mar 18, 2011 1:26 pm

Re: Monitoring performance of an HP EVA SAN

Post by bmoody »

Cacti has imported the following items:

CDEF
[success] Multiply by 1024 [update]
[success] Total All Data Sources [update]
[success] Ratio, Multiply by 1024 [update]

GPRINT Preset
[success] Normal [update]
[success] Exact Numbers [update]

Data Input Method
[success] Get Script Data (Indexed) [update]

Data Template
[success] EVA - VirtualDisk [update]
[success] EVA - PhysicalDiskGroup [update]
[success] EVA - HostConnection [update]
[success] EVA - StorageArray [update]
[success] EVA - StorageController [update]
[success] EVA - HostPortStatistics [update]

Graph Template
[success] EVA - VirtualDisk - Requests/Sec [update]
[success] EVA - VirtualDisk - Latency [update]
[success] EVA - VirtualDisk - Throughput [update]
[success] EVA - PhysicalDiskGroup - Latency [update]
[success] EVA - PhysicalDiskGroup - Requests / Second [update]
[success] EVA - PhysicalDiskGroup - Throughput [update]
[success] EVA - HostConnection - Queue Depth [update]
[success] EVA - StorageArray - Throughput [update]
[success] EVA - StorageArray - Requests/sec [update]
[success] EVA - StorageArray - IO Size [update]
[success] EVA - StorageController - CPU [update]
[success] EVA - HostPortStatistics - Requests / Second [update]
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
[success] EVA - HostPortStatistics - Queue Depth [update]
[success] EVA - HostPortStatistics - Throughput [update]
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (CDEF) Multiply by 1024
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)

Data Query
[success] Eva - Query new VirtualDisk [update]
[success] Eva - Query new PhysicalDiskGroup [update]
[success] Eva - Query new HostConnection [update]
[success] Eva - Query new StorageArray [update]
[success] Eva - Query new StorageController [update]
[success] Eva - Query HostPortStatistics [update]
+ Found Dependency: (Data Input Method) Get Script Data (Indexed)
+ Found Dependency: (Graph Template) EVA - HostPortStatistics - Requests / Second
+ Found Dependency: (Data Template) EVA - HostPortStatistics
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (Graph Template) EVA - HostPortStatistics - Throughput
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (Graph Template) EVA - HostPortStatistics - Queue Depth
+ Found Dependency: (Data Template Item) AvQueueDepth
+ Found Dependency: (Data Template) EVA - HostConnection

Host Template
[success] EVA Commandview [update]
Everything in this template works great except for the hostportstatistics and the unmet dependencies.

Can someone please lend a hand. THis is broken across our entire environment.
bmoody
Posts: 4
Joined: Fri Mar 18, 2011 1:26 pm

Re: Monitoring performance of an HP EVA SAN

Post by bmoody »

I've tested this one on two machines so far. Fixed.
Attachments
cacti_host_template_eva_commandview.xml
fixed eva template
(158.67 KiB) Downloaded 437 times
JorisK
Posts: 10
Joined: Mon Oct 11, 2010 7:50 am

Re: Monitoring performance of an HP EVA SAN

Post by JorisK »

First of all, many thanks to Palli for creating this awesome plugin.

I got it working now for my two EVA's. What i have:

1) Installed Windows 2003 server with Commandview 9.2
2) Installed CentOS 5.6 with mysql/apache (using yum)
3) Installed 1x Cacti 0.9.7g with latest patches

4) downloaded scripts from http://opensource.is/trac/wiki/cacti-evaperf
5) Uploaded Bmoody's template, http://forums.cacti.net/viewtopic.php?f ... 5&start=60

6) Created /var/log/cacti, read/write rights for appropriate users.

and Done!

Many thanks to all the users who put effort in this one.

(btw this plugin wasn't working on OpenBSD so i switched to CentOS 5.6)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests