Page 1 of 1

perfmon checks

PostPosted: Wed May 09, 2018 12:58 am
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

Re: perfmon checks

PostPosted: Thu May 10, 2018 10:45 am
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.

Re: perfmon checks

PostPosted: Sun May 13, 2018 1:07 am
by amitw
Hi,

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

Is it possible ?

Re: perfmon checks

PostPosted: Mon May 14, 2018 1:25 pm
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

Re: perfmon checks

PostPosted: Thu May 17, 2018 2:29 am
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

Re: perfmon checks

PostPosted: Thu May 17, 2018 8:29 am
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

Re: perfmon checks

PostPosted: Mon May 21, 2018 12:59 am
by amitw
Thanks Scoot,
Eventuality, i used check_nrpe

Re: perfmon checks

PostPosted: Mon May 21, 2018 8:17 am
by scottwilkerson
Good to hear

Locking