NRPE CheckCounter for memory reads/sec

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Brick
Posts: 26
Joined: Thu Aug 29, 2013 6:02 am

NRPE CheckCounter for memory reads/sec

Post by Brick »

I am trying to setup a NRPE counter to read the Memory Reads/sec and Memory Faults/sec using the following command-

Code: Select all

./check_nrpe -u -H 10.210.26.31 -c CheckCounter -a "Counter=\\Server\\Memory\\Page Reads/sec"
But I get the following return-

Code: Select all

CRIT: Counter not found: \Server\Memory\Page Reads/sec: -1073738823: The specified counter could not be found.
I do have another CheckCounter command which is running fine-

Code: Select all

./check_nrpe -u -H 10.210.26.31 -c CheckCounter -a "Counter=\\Server\\Bytes Total/sec" ShowAll
So I suspect its a syntax error with the actual command rather than a problem with nrpe or perfmon... But I have tried every iteration of server\memory\ that I can think of and still no luck!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE CheckCounter for memory reads/sec

Post by slansing »

Have you tried running the counter check without \Server\ in the string? What Windows version are you running this against? And what NSclient version is installed on it. I'll be able to test it on my end once we have that info.
Brick
Posts: 26
Joined: Thu Aug 29, 2013 6:02 am

Re: NRPE CheckCounter for memory reads/sec

Post by Brick »

Cheers slansing, it all worked fine once I removed the \server\
Locked