Page 1 of 2
Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Mon Oct 26, 2015 10:06 am
by ranjitw
Hi,
Can you please suggest what would be the plugin for monitoring this:
Copy Read Hits :
Displays the percentage of cache copy read requests. A copy read is a file read operation that is satisfied by a memory copy from a cache page to the application's buffer. If the value is greater than a percent is excellent.
If the Copy Read Hits decreases in value by about 10 percent while Copy Reads there is an overall memory shortage.
Thresholds for alarms and warnings
Alarm 1 0-19 percent Alarm
Alarm 2 19-30 percent Warn
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Mon Oct 26, 2015 3:15 pm
by lmiltchev
Is your goal to monitor the "Copy Read Hits %" Windows performance counter? Can you elaborate?
example01.PNG
If this is the case, you can use NSClient++.
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Mon Oct 26, 2015 7:57 pm
by Box293
To expand on what
@lmiltchev said, this here might explain in more detail how to monitor a performance counter in NSClient++:
http://sites.box293.com/nagios/guides/c ... erformance
(yes I know it's about disk performance but the steps invovled are the same)
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Tue Oct 27, 2015 12:15 am
by ranjitw
Hi lumiltchev,
Yes, I want to monitor Copy Read Hits in windows performance counter.
I tried below command but its failing with error.
./check_nrpe -H xxx.xxx.xx.xxx -c CheckCounter -a 'Counter:C: % Read Time=\LogicalDisk(C:)\% Disk Read Time' ShowAll MaxWarn=50 MaxCrit=75
Could not construct return packet in NRPE handler check client side (nsclient.log) logs...
IN nsclinet.log I see below error :
2015-10-27 06:31:49: error:modules\NRPEListener\NRPEListener.cpp:432: Request arguments contained illegal metachars!
2015-10-27 06:31:49: error:modules\NRPEListener\NRPEListener.cpp:320: Exception handling NRPE packet
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Tue Oct 27, 2015 1:14 am
by Box293
Open a command prompt on your windows server and execute these commands:
Code: Select all
cd "\Program Files\NSClient++\"
nscp settings --activate-module NRPEServer --add-defaults
nscp settings --path /settings/NRPE/server --key "allow arguments" --set true
nscp settings --path /settings/NRPE/server --key "allow nasty characters" --set true
IF this is NSClient++ 0.4.3 onwards
nscp settings --path /settings/NRPE/server --key insecure --set true
Then restart the NSClient++ service.
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Tue Oct 27, 2015 1:32 am
by ranjitw
Hi Box293,
We are currently using below version . Is this not supported for 0.3.9.328 ?
C:\Program Files\NSClient++>"nsclient++.exe" -version
l NSClient++.cpp(369) NSClient++ Version: 0.3.9.328 2011-08-16, Plattform: x64
Can you please attached NSClient++ 0.4.3 to this case please in zip format it would be of great help.
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Tue Oct 27, 2015 3:35 am
by ranjitw
Hi ,
I have upgraded the NSclient++ can you please share me the command for copy read hits.
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Tue Oct 27, 2015 1:58 pm
by jdalrymple
The commands provided by Box293 were intended to resolve the error you encountered:
ranjitw wrote:Code: Select all
2015-10-27 06:31:49: error:modules\NRPEListener\NRPEListener.cpp:432: Request arguments contained illegal metachars!
2015-10-27 06:31:49: error:modules\NRPEListener\NRPEListener.cpp:320: Exception handling NRPE packet
If you are still seeing the same issue you can use the command Box293 provided earlier:
Box293 wrote:Code: Select all
cd "\Program Files\NSClient++\"
nscp settings --activate-module NRPEServer --add-defaults
nscp settings --path /settings/NRPE/server --key "allow arguments" --set true
nscp settings --path /settings/NRPE/server --key "allow nasty characters" --set true
nscp settings --path /settings/NRPE/server --key insecure --set true
If you have a new issue please elaborate.
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Tue Oct 27, 2015 2:21 pm
by tgriep
Try running this to see if you get the data for the read hits.
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -c CheckCounter -a 'Counter=\Cache\Copy Read Hits %' ShowAll MaxWarn=50 MaxCrit=75
Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE
Posted: Wed Oct 28, 2015 1:47 am
by ranjitw
Hi ,
I have got the ouptut using the below command :
./check_nrpe -H xxx.xxx.xx.xxx -c CheckCounter -a ShowAll "Counter=\\Cache\\Copy Read Hits %" MinWarn=20 MinCrit=10
OK: \Cache\Copy Read Hits % = 100|'\Cache\Copy Read Hits %none'=100;20;10
Is there an option in command where we specify to generate an alarm only after getting an average of 45 mins ?