Monitoring performance of an HP EVA SAN

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

Moderators: Developers, Moderators

Post Reply
staypuft
Posts: 3
Joined: Tue Jul 13, 2010 10:27 pm

Re: EVA perfmonitor

Post by staypuft »

willdej wrote:I downloaded and installed the EVA Commandview template
When I try to do a verbose it seems like it works but under status I get Success [ 0 Items, 0 Rows]

When I try to run /usr/local/bin/wmic //192.168.1.11 --user administrator
I get a Floating Point Exception error.
I assume that possible I have wmi not working correct?
I am running 0.8.7e on a SLES 10 SP2 server
I'm also getting the same thing.

When I manually run the script I get the following:
Disk query Name: No such file or directory

Any help would be much appreciated. WMI is working fine and returns results
User avatar
seanfyfe
Posts: 4
Joined: Fri May 28, 2010 11:02 am

eva wmic woes

Post by seanfyfe »

I'm having a similar problem, and it's close to working, so maybe someone can give me a tip.

I've followed the forums posts but to no avail.

i am running cacti 0.8.7g on Ubuntu 10.04 server
using wmic i can query my commandview box (windows server2003) and pull information from the perfmon counters, but when i try to get eva perfmon counter info it returns nothing, no errors, it's just returning null by the looks of it.

if i alter my wmic query in a few ways i get different errors, so i know my statement is correct (cacti is a local user with admin rights on the server)
eg:

Code: Select all

 wmic --user cacti //cmdview "select * from Win32_PerfRawData_EVAPMEXT_HPEVAStorageController"
if i load up perfmon on the commandview box, i can see the data being graphed for the eva perf counters. commandview is 9.02.01

thoughts?

i can post up screen shots if u want or if it helps
i've restarted services, the server, broke perfmon and evaperf, got them working again, still same result..
wmic can pull normal data like Win32_processor but not eva counters

EDIT: i've followed http://opensource.is/trac/wiki/cacti-evaperf
staypuft
Posts: 3
Joined: Tue Jul 13, 2010 10:27 pm

still getting null

Post by staypuft »

I can't figure out what is causing the null as well... Can anybody please help, been going at this for weeks now. Is this something to do with EVAperf? Doesn't look like it's the cacti setup anymore.

vc-cacti:~# wmic --user administrator //10.3.110.200 "select * from Win32_PerfRawData_EVAPMEXT_HPEVAStorageController"
Password for [WORKGROUP\administrator]:
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|lon-san01:PBA23D89SUR04B|19|19|0|0|129258450015200000
(null)|(null)|0|0|10000000|lon-san01:PBA23D89SUR01W|29|31|0|0|129258450015200000
staypuft
Posts: 3
Joined: Tue Jul 13, 2010 10:27 pm

We got no output from wmic command

Post by staypuft »

Here is the python command running and the result. This is really baffling, as it was actually working in my above post, and now it isn't. Nothing changed.

Code: Select all

vc-cacti:/var/www/scripts# ./query_wmi.py --host 10.3.110.200 --class Win32_PerfRawData_EVAPMEXT_HPEVAHostConnection query Name
ERROR: We got no output from wmic command
apaidas
Posts: 2
Joined: Fri Aug 27, 2010 6:12 am

Re: wmi howto

Post by apaidas »

Alphadog wrote:Ok for everyone who has problems with a crashing Wmi service, here's a little howto:

There are 4 reasons why your cacti doesnt graph or doesnt even get some data from the command view host:

Reason One:

wmic command gets you this :

Code: Select all

ERROR: Retrieve result data. 
NTSTATUS: NT code 0xc0001010 - NT code 0xc0001010 
Solution:

Check if there is a "HP WMI Storage Providers" Service
If yes check if there are the "HP EVA" Counters in Perfmon
If yes try Stopping the WMI Service (the Windows one) restart the "HP WMI" and start the windows WMI Service.

Case Two:

Services are existent, restarted and running but NO COUNTERS in Perfmon

Solution:

Go to your Registry under

Code: Select all

[HKLM/SYSTEM/ControlSet001/Services/EVAPMEXT/Performance/]
And Search for a DWORD Called "Disable Performance Counters"
Check if this is set to "0" no matter if Hex or Decimal 0=0 xD
Restart the Services as explained above
Run

Code: Select all

wmiadap /F
in cmd


Case Three

Now it gets Tricky :D

Servcices are existent, restarted and Running, "Disable Performance Counters" is set to "0" but counters dont appear in Perfmon

Solution:
Follow the above Steps, run

Code: Select all

wmiadap /F
and so on
AND
if you have done this:

Run

Code: Select all

lodctr /R
in your cmd

Case Four

Followed all the steps above, wmic get some data BUT Cacti doesn't even Poll the new graphs created

Solution

Try Changing the Poller from Spine to cmd.php because Spine sometimes gets a "Buffer Overflow" or something like that doesnt matter whic error, it just crashes and doesnt poll the new graphs :D







###### EDIT ######
Please do me a favour and edit all you Logfile Directories and place it into /var/log/Cacti/
I have some some servers, which have now a directory with 3 GB of Logs, and in /var/log the logs are automaticly archived, which increases performance when viewing :D tried to open a 400MB log and had to wait about half an hour ^^

###### EDIT ######




If there's anything else not working, contact me either in this Fred or PM me I'll see what I can do for you ;)

Greez from sunny Bavaria

Alphadog[/b]
User avatar
seanfyfe
Posts: 4
Joined: Fri May 28, 2010 11:02 am

Post by seanfyfe »

i have already tried all of those steps apaidas and they didn't work
apaidas
Posts: 2
Joined: Fri Aug 27, 2010 6:12 am

Issue with getting results in the Cacti console

Post by apaidas »

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.
hendl
Posts: 2
Joined: Mon Feb 08, 2010 1:31 pm

Re: wmi howto

Post by hendl »

Hi apaidas,

thanks a lot for you contribution. Adding the Key "Disable Performance Counters" solved my problems.

We should add a "Reason five" because the service was running and I got perfmon data as well but wmi-queries failed every time.

Again, Thanks
Stephan
ShadowCaster.gr
Posts: 1
Joined: Wed Sep 29, 2010 6:49 am

Re: Issue with getting results in the Cacti console

Post by ShadowCaster.gr »

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
jmbabcock
Posts: 1
Joined: Thu Oct 07, 2010 9:50 am

Re: Monitoring performance of an HP EVA SAN

Post by jmbabcock »

Hello, just wondering if you could help with the basic install of the evaperf templates. I have followed the instructions on the http://opensource.is/trac/wiki/cacti-evaperf site and I am unable to locate any of the mentioned cacti folders below:

# mv cacti-evaperf/scripts/query_wmi.py ~cacti/scripts
# mv cacti-evaperf/script_queries/* ~cacti/resource/script_queries
# mv cacti-evaperf/scripts/wmic /usr/local/bin

# echo "username=administrator" > /etc/cacti/HOSTNAME.pw
# echo "password=MYPASSWORD" >> /etc/cacti/HOSTNAME.pw
# echo "domain=mydomain" >> /etc/cacti/HOSTNAME.pw

# /var/tmp/cacti/ # Temporary cache for wmi
# /var/log/cacti/ # query_wmi log for debugging purposes
# /etc/cacti/HOSTNAME.pw # This file includes password used to access commandview server

Can anyone help with this? My setup is Centos 5.4 with latest version of cacti installed..............

tks
JorisK
Posts: 10
Joined: Mon Oct 11, 2010 7:50 am

Re: Monitoring performance of an HP EVA SAN

Post by JorisK »

Installed this template as the documentation said.

Now, when i start wmi:

# /usr/local/bin/wmic //192.168.2.49 --user administrator
Abort trap

It immidiately aborts saying "Abort trap". What can be causing this?

I run cacti on OpenBSD 4.6, Apache 2.
garethwilson
Posts: 5
Joined: Fri Oct 15, 2010 3:53 am

Re: Monitoring performance of an HP EVA SAN

Post by garethwilson »

Hi

i have downloaded the template and loaded it into cacti and can poll the eva and retrieve the controllers/disks names etc

but i am getting no data in my graphs ?
i have opened perfmon and all the counters are installed ok, do i need to configure perfmon in anyway for the data to be retrieved ?

any help would be appriciated, cheers in advance
garethwilson
Posts: 5
Joined: Fri Oct 15, 2010 3:53 am

Re: Monitoring performance of an HP EVA SAN

Post by garethwilson »

do these templates still work ? when importing the eva template into cacti we get errors on the depnadancies for the post host statistics, is this normal ?

also we are not getting any graphs drawn for the storage IO template but if we run the script from the command line the CV box is returning the data ?

anyone please help :)

Cheers in advance
pjotr0010
Posts: 1
Joined: Tue Oct 26, 2010 3:06 pm

Re: Monitoring performance of an HP EVA SAN

Post by pjotr0010 »

Does anybody has a script which i can use on a Cacti Windows server ? I want to monitor our EVA4400 through wmi on my SMA which has evaperf installed.

Thanks in advance
Quindor
Posts: 10
Joined: Sat Jan 22, 2005 5:16 pm

Template broken?

Post by Quindor »

I seem to be having the same problems as the users above.

The manual wmic commands return the requested data.
The commands listed in the verbose query window of cacti return the data if executed manually.

But cacti keeps saying it has 0 items, 0 rows. I have tried re-installing, everything.

In my opinion everything seems to be in working order, but the template in cacti does not understand how to parse the data received from the query?

Hopefully the original creator can come in and fix the script somehow? I'm trying to do a readout of an EVA8400.
--------update--------
Thus far with my limited scripting/programming knowledge I have been able to determine that the python script actually never gets called.

When I manually enter a query such as : python /var/www/cacti/scripts/query_wmi.py --host umchpsim01 --authentication-file /etc/cacti/umchpsim01.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAVirtualDisk query Name

I see the output of the script appear on my screen and the /var/log/cacti/query_eva.log is updated with the logging information. When I do a query in cacti, or a verbose query, nothing gets added to the log files. That leads me to think that the cacti is actually never running the python commands, even though it says so with the verbose query.

Err..... still at a loss sadly enough, but that does pinpoint where the problem is located. Anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests