Page 1 of 1

Monitoring Performance Counters - Avg. Disc Read and Write

Posted: Thu Oct 31, 2013 6:35 pm
by ecarrasq
System Info

Linux Distribution and version?

*Linux version 2.6.18-348.16.1.el5PAE #1 SMP Wed Aug 21 04:49:45 EDT 2013 i686 i686 i386 GNU/Linux
CentOS release 5.7 (Final)


32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

Forced SSL on NagiosXi login web screen

Nagios Xi version: Nagios XI 2012R2.4

Issue:

I am trying to monitor Windows Performance Counters, but have not been successful.

I am trying to do this in Nagios Xi (creating the service check via Core Config Manager)
performance counter_001.jpeg
-l "\\PhysicalDisk(6 F)\\Avg. Disk sec/Read", ShowAll -w .02 -c .04
I've tried just putting the drive letter by itself, also just the number, both together with no space, and both separate, but I keep getting a Green check, or Red exclamation mark with the number "0" as the output in NagiosXi.
performance counter_002.jpeg
Please help.

Thank you,
Eddie

Re: Monitoring Performance Counters - Avg. Disc Read and Wri

Posted: Fri Nov 01, 2013 10:19 am
by lmiltchev
Can you run your command successfully from the CLI? Are you using the same name, listed under the Performance Monitor Properties? Right-click on the counter under the Performance Monitor, select "Properties" and show a screenshot of this page. You should have something like this:
counter.PNG
Did you restart NSClient++ after adding the counter?

Re: Monitoring Performance Counters - Avg. Disc Read and Wri

Posted: Mon Nov 04, 2013 6:48 pm
by ecarrasq
perfmon-screenshot.png
Yes, we restarted NSClient++
Unable to run the command via CLI.
Yes, Using the same name listed under Performance Monitor Properties
-l "\\PhysicalDisk(2 H:)\\Avg. Disk sec/Read", ShowAll -w .02 -c .04
Still showing "0"
H.jpeg

Re: Monitoring Performance Counters - Avg. Disc Read and Wri

Posted: Tue Nov 05, 2013 10:23 am
by slansing
This does not appear to be the same location we are talking about. Perfmon is located at:

Code: Select all

%windir%\system32\perfmon.msc
But in any case, try removing the drive number "0" from the counter definition. Also, does this check return valid information from the command line?

Re: Monitoring Performance Counters - Avg. Disc Read and Wri

Posted: Tue Nov 05, 2013 1:27 pm
by ecarrasq
I get a 0 when running it from the CLI
[libexec]# ./check_nt -H <server> -p 12489 -s <nsclient password> -w .02 -c .04 -v COUNTER -l "\\PhysicalDisk(6 F)\\Avg. Disk sec/Read"
[libexec]# ./check_nt -H <server> -p 12489 -s <nsclient password> -w .02 -c .04 -v COUNTER -l "\\PhysicalDisk(F)\\Avg. Disk sec/Read"
[libexec]# ./check_nt -H <server> -p 12489 -s <nsclient password> -w .02 -c .04 -v COUNTER -l "\\PhysicalDisk(6)\\Avg. Disk sec/Read"

Re: Monitoring Performance Counters - Avg. Disc Read and Wri

Posted: Tue Nov 05, 2013 2:53 pm
by slansing
I'm not sure you can specify values as a decimal. When you remove the warning and critical thresholds what is returned to you?

Re: Monitoring Performance Counters - Avg. Disc Read and Wri

Posted: Tue Nov 05, 2013 3:59 pm
by ecarrasq
0

Re: Monitoring Performance Counters - Avg. Disc Read and Wri

Posted: Wed Nov 06, 2013 10:48 am
by abrist
I would presume it is getting rounded *down*.