Page 1 of 2

Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 24, 2017 5:18 am
by warnox
Hi,

The disk space check with NSClient 0.4.1.105 shows as:
OK: C:: Total: 39.7G - Used: 13.8G (34%) - Free: 25.9G (66%), E:: Total: 500G - Used: 477G (95%) - Free: 22.6G (5%), F:: Total: 200G - Used: 130G (65%) - Free: 69.9G (35%)
With 0.4.3.143:
OK C:: 54.818GB/79.655GB used, E:: 452.197GB/499.997GB used, F:: 210.792GB/239.997GB used
As the older client seems much tidier, how can I get 0.4.3.143 to show the same (or similar) format? I tried playing around with top-syntax, detail-syntax and perf-syntax but can't seem to get it to work.
/usr/local/nagios/libexec/check_nrpe -H terminator -c check_drivesize -a drive=* "filter=size>1G" "warn=free<20G" "crit=free<10G" "detail-syntax=%(name)"
OK All 1 drive(s) are ok|'C:\ free'=22.797GB;20;10;0;49.89941 'C:\ free %'=45%;40;20;0;100
I don't believe the above output is correct, based on what I specified for detail-syntax?

Thanks for any help.

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 24, 2017 11:51 am
by eloyd
NSclient is a third-party developed product not supported directly by Nagios. You will want to ask the NSclient developer.

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 24, 2017 12:58 pm
by dwhitfield
@warnox, in additional to what @eloyd said, you might also look at 0.4.4 or 0.5.x

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 24, 2017 2:43 pm
by warnox
I'm sure people have always helped on here before...

Yea, good idea, I'll try updating it to the latest stable release.

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 24, 2017 3:12 pm
by dwhitfield
warnox wrote:I'm sure people have always helped on here before...
Yes, of course we try!

I did some digging at http://docs.nsclient.org/0.4.3/whatsnew/0.4.3.html. It's not a true changelog, but I didn't see why the change was made. I did notice that .4.4 is a dev branch. We tend to use the .4.3 branch, even though XI officially endorses .3.9.

Since NSClient is open source, you could always pull the output string code from 0.4.1 and recompile 0.4.3, but obviously we don't support that and YMMV on it actually working.

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 24, 2017 3:15 pm
by eloyd
I did not mean to imply that we (or Nagios) won't help you because it's not Nagios software. I meant that any changes to NSclient are going to have to be handled through NSclient's development pathway, not Nagios's staff.

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 24, 2017 3:22 pm
by dwhitfield
If you don't find what you are looking for in the new version, you should file a feature request at https://github.com/mickem/nscp/issues/new

If you have problems setting up the new version, you should open a new thread here.

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 31, 2017 4:37 am
by warnox
Thanks all. I was using the latest 0.4.3 build but that wasn't working. Upgraded to 0.5.0 and it's still showing the same. I will try their own forums and see how that goes :)

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Jan 31, 2017 10:12 am
by dwhitfield
Please post the thread here, that way people will know where to go if they also encounter this issue.

Also, if you don't get the answers you need there, please free to come back to this thread.

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Posted: Tue Feb 07, 2017 9:31 am
by warnox
Just in case someone comes across this. I had to include the 'show-all' argument in order to display the required information. The command below has a similar output to the older client, not exactly the same but good enough :)
/usr/local/nagios/libexec/check_nrpe -H terminator -c check_drivesize -a drive=* "filter=size>1G" "warn=free<20" "crit=free<10G" "detail-syntax=%(drive) - Total: %(size) - Used: %(used) (%(used_pct)%) - Free: %(free) (%(free_pct)%)" show-all "top-syntax=%(status): %(problem_list)"