Monitoring performance of an HP EVA SAN
Moderators: Developers, Moderators
recommended base OS
I have been running into some problems with python and wmic. i am thinking of updating my OS from Red Hat 4 enterprise to Red Hat 5 enterprise. Can anyone suggest a recomended OS.
Thanks
Gord
Thanks
Gord
re: EvaPerf
Hi Palli,
Scripts and Templates are working fine, just have some problems getting the wmi data of another EVA on a second cacti installation.
Do you know what this error tells me ??
I ran wmiadap because i didnt even get the Win32_PerfRawData out of the machine but i dont get any eva data -.-
edit:
could you post the link to your thread on ITRC ??
Scripts and Templates are working fine, just have some problems getting the wmi data of another EVA on a second cacti installation.
Do you know what this error tells me ??
Code: Select all
ERROR: Retrieve result data.
NTSTATUS: NT code 0xc0001010 - NT code 0xc0001010
edit:
could you post the link to your thread on ITRC ??
Re: recommended base OS
Gord: These templates work very well with Redhat Enterprise Linux 5.xgsjodin wrote:I have been running into some problems with python and wmic. i am thinking of updating my OS from Red Hat 4 enterprise to Red Hat 5 enterprise. Can anyone suggest a recomended OS.
Thanks
Gord
they are not going to work well on 4.x except with some hacking.
Also remember you will need cacti version at least 0.8.7e which is available in EPEL.
re: wmi
Yes i agree, troubleshooting, evaperf+wmi+python+cacti can all be frustrating, especially in this case when the problem can be with in any single component of these.Alphadog wrote:ok solved my Problem by reinstalling Command view ...
but now i dont get any new graphs ...
its hairpulling ...
I have been installing these templates in quite a few environments, these are the troubleshooting tricks i use the most often:
1) Check if WMI is working at all:
Code: Select all
/usr/local/bin/wmic //HOSTNAME --user administrator "select Name from Win32_ComputerSystem"
2) Check if WMI is working with evaperf:
Code: Select all
/usr/local/bin/wmic //HOSTNAME --user administrator "select Name from Win32_PerfRawData_EVAPMEXT_HPEVAHostConnection"
* Run "wmiadap /f" on the windows machine
* Restarting HP evaperf service in windows services
* Restarting Windows Management Interface in windows services
Results may vary, if the first wmic works but the second fails i urge you to contact HP support and let them know that evaperf is not stable enough for your needs!
If both wmic commands work
* Make sure the latter command gave you human readable hostnames, if you got bunch of numbers you will have to refresh evaperf friendly-names in order to get human readable friendlynames in cacti
* If wmic works but you are unable to query devices in cacti, it might help to check out /var/log/cacti/query_eva.log it is quite verbose but errors but you might catch errors from wmic there.
Good luck![/list]
wmi
Hey guys,
my WMI does now work quite well except that its crashing sometimes.
I wrote a simple batch file, that stops the WMI service imports the *.reg file, which sets the DWORD to "0", starts the wmi service and runs
This one i put under Planned Tasks an let it run every hour.
If anyone wants the batch script its in my attachment
Greez
Alpha
my WMI does now work quite well except that its crashing sometimes.
I wrote a simple batch file, that stops the WMI service imports the *.reg file, which sets the DWORD
Code: Select all
"HKLM\SYSTEM\ControlSet001\Services\EVAPMEXT\Performance\DisablePerformanceCounters"
Code: Select all
wmiadap /F
If anyone wants the batch script its in my attachment
Greez
Alpha
- Attachments
-
- evaperf.rar
- (1.32 KiB) Downloaded 3244 times
Re: wmi
Nice! My experience is that WMI is quite stable, but it is the evaperf extensions to wmi that keep crashing. If you have a support contract with HP, dont hesitate to contact them and let them know evaperf is not working as you would like it.Alphadog wrote:Hey guys,
my WMI does now work quite well except that its crashing sometimes.
wmi sucks
wmi sucks -.-
New Machine => New Installation => 2 new EVA's (4400) => no response from wmi
Win32_PerfRawData gets me data
Win32_PerfRawData_EVAPMEXT_HPEVAHostPortStatistics dont gets me anything ...
DisablePerformanceCounters is "0"
WMI Service is running
When restarting it I can get 1 dataset and then all other outputs are empty
anyone who could help me?
New Machine => New Installation => 2 new EVA's (4400) => no response from wmi
Win32_PerfRawData gets me data
Win32_PerfRawData_EVAPMEXT_HPEVAHostPortStatistics dont gets me anything ...
DisablePerformanceCounters is "0"
WMI Service is running
When restarting it I can get 1 dataset and then all other outputs are empty
anyone who could help me?
Re: wmi sucks
You can try these (in the following order)Alphadog wrote:wmi sucks -.-
New Machine => New Installation => 2 new EVA's (4400) => no response from wmi
Win32_PerfRawData gets me data
Win32_PerfRawData_EVAPMEXT_HPEVAHostPortStatistics dont gets me anything ...
DisablePerformanceCounters is "0"
WMI Service is running
When restarting it I can get 1 dataset and then all other outputs are empty
anyone who could help me?
* 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
I have a problem in graphs of throughput, they are not being generated in debug mode the following error is displayed:
Does anyone have any idea what could be wrong?
I also created a list of friendly names, but it is not being consulted by wmic, what can be wrong?
Code: Select all
"RRDTool Says:
ERROR: invalid rpn expression in: a, 1024, * "
I also created a list of friendly names, but it is not being consulted by wmic, what can be wrong?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I'd say: omit the whitespacesthenrique wrote:I have a problem in graphs of throughput, they are not being generated in debug mode the following error is displayed:
Does anyone have any idea what could be wrong?Code: Select all
"RRDTool Says: ERROR: invalid rpn expression in: a, 1024, * "
I also created a list of friendly names, but it is not being consulted by wmic, what can be wrong?
R.
Thanks, the problem whit friendlynames is resolved restarting the wmi service and hp eva data service collector.gandalf wrote:I'd say: omit the whitespacesthenrique wrote:I have a problem in graphs of throughput, they are not being generated in debug mode the following error is displayed:
Does anyone have any idea what could be wrong?Code: Select all
"RRDTool Says: ERROR: invalid rpn expression in: a, 1024, * "
I also created a list of friendly names, but it is not being consulted by wmic, what can be wrong?
R.
But there no whitespaces in the command for rrd create:
Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="HostPort EVA8400_ECE:J02 bytes/sec" \
--base=1024 \
--height=120 \
--width=500 \
--upper-limit=1048576 \
--lower-limit=0 \
--vertical-label="bytes/sec" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
CDEF:cdefa=a,1024,* \
LINE1:cdefa#7CB3F1FF:"Read Bytes" \
AREA:cdefa#7CB3F17F:"" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:cdefa#FF0000FF:"Write Bytes" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: invalid rpn expression in: a,1024,*
wmi howto
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 :
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
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
Runin cmd
Case Three
Now it gets Tricky
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 and so on
AND
if you have done this:
Run
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
###### 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 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]
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
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/]
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
Case Three
Now it gets Tricky
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
if you have done this:
Run
Code: Select all
lodctr /R
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
###### 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 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]
evaperf template problems
I have installed the templates, as instructed i believe, however the python script (query_wmi.py) does not seem to be returning any data. I can pull data via wmic, when I try to run the command as given in the script debug output, it says:
Traceback (most recent call last):
File "/cacti/scripts/query_wmi.py", line 10, in ?
from subprocess import Popen,PIPE,STDOUT
ImportError: No module named subprocess
debug output from cacti:
+ Running data query [14].
+ Found type = '4 '[script query].
+ Found data query XML file at '/cacti/resource/script_queries/eva_storagecontroller.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'python /cacti/scripts/query_wmi.py --host HOSTNAME --authentication-file /etc/cacti/HOSTNAME.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAStorageController index'
+ Executing script query 'python /cacti/scripts/query_wmi.py --host HOSTNAME --authentication-file /etc/cacti/HOSTNAME.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAStorageController query Name'
+ Found data query XML file at '/cacti/resource/script_queries/eva_storagecontroller.xml'
+ Found data query XML file at '/cacti/resource/script_queries/eva_storagecontroller.xml'
+ Found data query XML file at '/cacti/resource/script_queries/eva_storagecontroller.xml'
Any help is appreciated.
Traceback (most recent call last):
File "/cacti/scripts/query_wmi.py", line 10, in ?
from subprocess import Popen,PIPE,STDOUT
ImportError: No module named subprocess
debug output from cacti:
+ Running data query [14].
+ Found type = '4 '[script query].
+ Found data query XML file at '/cacti/resource/script_queries/eva_storagecontroller.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'python /cacti/scripts/query_wmi.py --host HOSTNAME --authentication-file /etc/cacti/HOSTNAME.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAStorageController index'
+ Executing script query 'python /cacti/scripts/query_wmi.py --host HOSTNAME --authentication-file /etc/cacti/HOSTNAME.pw --class Win32_PerfRawData_EVAPMEXT_HPEVAStorageController query Name'
+ Found data query XML file at '/cacti/resource/script_queries/eva_storagecontroller.xml'
+ Found data query XML file at '/cacti/resource/script_queries/eva_storagecontroller.xml'
+ Found data query XML file at '/cacti/resource/script_queries/eva_storagecontroller.xml'
Any help is appreciated.
EVA perfmonitor
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
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
Who is online
Users browsing this forum: No registered users and 5 guests