Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

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

Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Post by eloyd »

NSclient is a third-party developed product not supported directly by Nagios. You will want to ask the NSclient developer.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Post by dwhitfield »

@warnox, in additional to what @eloyd said, you might also look at 0.4.4 or 0.5.x
warnox
Posts: 39
Joined: Thu Nov 20, 2014 5:22 am

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

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

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Post 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 :)
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

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

Re: Disk Space Information - NSClient 0.4.1.105 vs 0.4.3.143

Post 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)"
Locked