perfmon checks

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
amitw
Posts: 28
Joined: Tue Jun 28, 2016 8:07 am

perfmon checks

Post by amitw »

Hi all,

I'm trying to find a way to check Avg. Disk Sec/Read and get a warning and critical notifications in ms.
How can i configure the next command with values in MS ?

./check_nt -H 10.0.0.21 -s "Test@193" -p 12489 -v COUNTER -l "\\PhysicalDisk(0 C:)\\Avg. Disk Sec/Read","%.2f"


Thanks
kyang

Re: perfmon checks

Post by kyang »

Hello,

I'm not exactly sure on what you mean in MS? Are you referring to adding this check into Nagios Core for monitoring?

Is MS suppose to mean Microsoft? Since check_nt is using NSClient++ which is for monitoring Windows. OR is ms suppose to mean get warning and critical notifications in milliseconds?

If you could give us some more detail on what you're wanting to do then I can let you know.
amitw
Posts: 28
Joined: Tue Jun 28, 2016 8:07 am

Re: perfmon checks

Post by amitw »

Hi,

So i would like to configure to Warning and Criticl values of the check in milliseconds.

Is it possible ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfmon checks

Post by scottwilkerson »

amitw wrote:Hi,

So i would like to configure to Warning and Criticl values of the check in milliseconds.

Is it possible ?
So Avg. Disk Sec/Read displays the average time the disk transfers took to complete, in seconds, so if you wanted to warn over 4 milliseconds you would set warning to 0.0004
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
amitw
Posts: 28
Joined: Tue Jun 28, 2016 8:07 am

Re: perfmon checks

Post by amitw »

Thanks for the answer Scoot.

However, when i try to configure 0.1 on the warning and 0.2 and on critical values, it shows on the test result values of 0.0 for both critical and warning

./check_nt -H 10.60.30.2 -p 12489 -v COUNTER -l "\PhysicalDisk(_Total)\\Avg. Disk sec/Read","avg disk read is %.2f" -w 0.2 -c 0.1
avg disk read is 0.00 | 'avg disk read is %.2f'=0.000000%;0.000000;0.000000;

How it can be fixed ?

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfmon checks

Post by scottwilkerson »

Actually, my apologies, I just verified that in check_nt the warning and critical variables must be integers, so whole numbers only

Code: Select all

 -w, --warning=INTEGER
   Threshold which will result in a warning status
 -c, --critical=INTEGER
   Threshold which will result in a critical status
Sorry for leading you down the wrong path
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
amitw
Posts: 28
Joined: Tue Jun 28, 2016 8:07 am

Re: perfmon checks

Post by amitw »

Thanks Scoot,
Eventuality, i used check_nrpe
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfmon checks

Post by scottwilkerson »

Good to hear

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked