Monitoring Performance Counters - Avg. Disc Read and Write

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Monitoring Performance Counters - Avg. Disc Read and Write

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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?
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!
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

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

Post 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
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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?
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

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

Post 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"
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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?
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

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

Post by ecarrasq »

0
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

I would presume it is getting rounded *down*.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked