NSClient 0.4.3.143 - top/detail/perf Syntax Explanation

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
warnox
Posts: 39
Joined: Thu Nov 20, 2014 5:22 am

NSClient 0.4.3.143 - top/detail/perf Syntax Explanation

Post by warnox »

Hi,

I'm trying to understand what detail-syntax, top-syntax and perf-syntax do and how they're meant to be used. The documentation for check_drivesize (http://docs.nsclient.org/0.4.2/referenc ... _drivesize) doesn't seem to be very detailed and the samples (http://docs.nsclient.org/samples/index. ... -drivesize) don't explain this either.

If 'perf-syntax' only controls the first field for each set of data for Performance Data, I assume 'perf-config' controls the actual values? But since 'perf-config' is also not documented I'm not sure what these values can be set to :) It seems regardless what I put into perf-config the output is the same.

Code: Select all

'C:\ free'=21.26368GB;20;10;0;49.65527 'C:\ free %'=42%;40;20;0;100 'E:\ free'=129.35789GB;20;10;0;199.99706 'E:\ free %'=64%;10;5;0;100
The reason I came across this was because with 0.4.1.105 using 'checkdrivesize' the OK status reported as "OK: C:: Total: 49.9G - Used: 24.4G (48%) - Free: 25.5G (52%)" but with 0.4.3.143 'check_drivesize' reports OK status as "OK All 1 drive(s) are ok". I'd like to have the OK status still report drive sizes and I believe this is done with one of these syntax commands.

Thanks for any help.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NSClient 0.4.3.143 - top/detail/perf Syntax Explanation

Post by jolson »

Try using 'show-all' as part of your syntax:

Code: Select all

./check_nrpe -H 192.168.5.234 -c check_drivesize -a 'warn=free<20%' 'crit=free<10%' 'show-all'
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
warnox
Posts: 39
Joined: Thu Nov 20, 2014 5:22 am

Re: NSClient 0.4.3.143 - top/detail/perf Syntax Explanation

Post by warnox »

Cool, that works.

Are you able to explain the difference between the syntax commands?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NSClient 0.4.3.143 - top/detail/perf Syntax Explanation

Post by Box293 »

From what I understand, top-syntax is the final output. detail-syntax is where you can define all the items that appear in top-syntax.

However I am yet to find a clear explanation. It does my head in sometimes, the .0.4.2 and 0.4.3 released feel very alpha/beta in my opinion. Hopefully 0.4.4 will be better.

Make sure you look at the latest documentation as well, as the 0.4.3 docs are slightly different to the 0.4.2 docs. That too does my head in :cry:

http://docs.nsclient.org/reference/wind ... -drivesize
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
warnox
Posts: 39
Joined: Thu Nov 20, 2014 5:22 am

Re: NSClient 0.4.3.143 - top/detail/perf Syntax Explanation

Post by warnox »

Yea rather annoying, so many nice features that aren't documented.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NSClient 0.4.3.143 - top/detail/perf Syntax Explanation

Post by hsmith »

warnox wrote:Yea rather annoying, so many nice features that aren't documented.
Is it all right to close this topic?
Former Nagios Employee.
me.
Locked