perfmon checks

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

perfmon checks

Postby amitw » Wed May 09, 2018 12:58 am

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

Re: perfmon checks

Postby kyang » Thu May 10, 2018 10:45 am

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kyang
Support Tech
 
Posts: 1792
Joined: Tue Jul 25, 2017 3:35 pm

Re: perfmon checks

Postby amitw » Sun May 13, 2018 1:07 am

Hi,

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

Is it possible ?
amitw
 
Posts: 23
Joined: Tue Jun 28, 2016 8:07 am

Re: perfmon checks

Postby scottwilkerson » Mon May 14, 2018 1:25 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12331
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: perfmon checks

Postby amitw » Thu May 17, 2018 2:29 am

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

Re: perfmon checks

Postby scottwilkerson » Thu May 17, 2018 8:29 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12331
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: perfmon checks

Postby amitw » Mon May 21, 2018 12:59 am

Thanks Scoot,
Eventuality, i used check_nrpe
amitw
 
Posts: 23
Joined: Tue Jun 28, 2016 8:07 am

Re: perfmon checks

Postby scottwilkerson » Mon May 21, 2018 8:17 am

Good to hear

Locking
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12331
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: delboy1966, Exabot [Bot], sampan1 and 32 guests