Plugin for Copy Read Hits ( Windows ) - NT_CACHE

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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
Regards,
Ranjit W
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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++.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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
Regards,
Ranjit W
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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.
Regards,
Ranjit W
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post by ranjitw »

Hi ,

I have upgraded the NSclient++ can you please share me the command for copy read hits.
Regards,
Ranjit W
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Plugin for Copy Read Hits ( Windows ) - NT_CACHE

Post 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 ?
Regards,
Ranjit W
Locked