Page 1 of 1

NSClient 0.4.3.143 - top/detail/perf Syntax Explanation

Posted: Fri Aug 07, 2015 7:02 am
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.

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

Posted: Fri Aug 07, 2015 10:35 am
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'

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

Posted: Sat Aug 08, 2015 5:26 pm
by warnox
Cool, that works.

Are you able to explain the difference between the syntax commands?

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

Posted: Sun Aug 09, 2015 8:23 pm
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

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

Posted: Mon Aug 10, 2015 5:56 am
by warnox
Yea rather annoying, so many nice features that aren't documented.

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

Posted: Mon Aug 10, 2015 9:18 am
by hsmith
warnox wrote:Yea rather annoying, so many nice features that aren't documented.
Is it all right to close this topic?