Page 1 of 1

using NCPA to check used disk space

Posted: Wed Aug 24, 2016 7:21 am
by jcwuerfl
Not sure if I'm running into another ncpa bug but df is displaying a different percentage than ncpa is coming back with.

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H myhost -t 'valspar' -P 5693 -M 'disk/logical/|mymount' -w 90 -c 95 -v
Connecting to: https://myhost:5693/api/disk/logical/|mymount/?token=mytoken&warning=90&critical=95&check=1
File returned contained:
{
  "value": {
    "returncode": 0,
    "stdout": "OK: used_percent was 85% -- total_size was 3246541676544b -- used was 2783541846016b -- free was 298108321792b | 'used_percent_0'=85%;90;95;"
  }
}
OK: used_percent was 85% -- total_size was 3246541676544b -- used was 2783541846016b -- free was 298108321792b | 'used_percent_0'=85%;90;95;


myhost:root /usr/local/ncpa/var # df -k | grep mymount
/dev/mapper/vg_mymount-lv_mymount
                     3170450856 2718302584  291121408  91% /mymount

Re: using NCPA to check used disk space

Posted: Wed Aug 24, 2016 7:30 am
by jcwuerfl
Looks like I'm running into a bug. when is the new ncpa going to be released ?

https://github.com/NagiosEnterprises/ncpa/issues/102

Re: using NCPA to check used disk space

Posted: Wed Aug 24, 2016 9:37 am
by eloyd
I would love to know, as well. We started converting NRPE checks to NCPA checks since it was supposed to be the greatest thing since virtualization, but then it just like drops out of development rotation and no pulls have been merged for quite a while.

I'm greatly looking forward to 2.0.

Re: using NCPA to check used disk space

Posted: Wed Aug 24, 2016 9:44 am
by jomann
If you're talking about the reserved root space issue that is because of an issue in psutil which I ended up helping with in that project when I was doing the majority of bug fixes for 2.0 ... I don't have an exact timeline for 2.0 but I do think we are getting close to a release. I've been adding in some features to make it easier to use and understand/get started using along with making sure the output is consistent and done in a good, reliable way. I'd say probably the end of September is a realistic look at when it's coming out. I've been busy with Nagios products recently and haven't had as much time to work on NCPA at home.

Re: using NCPA to check used disk space

Posted: Wed Aug 24, 2016 9:56 am
by eloyd
@JO, you're supposed to be working ONLY on NCPA until _we_ say it's done! :-)

Seriously, I know it's not easy. It's just frustrating from our side because NCPA was supposed to be "THE" replacement for all other agents.

Re: using NCPA to check used disk space

Posted: Wed Aug 24, 2016 10:13 am
by lmiltchev
...when is the new ncpa going to be released ?
@jcwuerfl According to our developers:
I'd say probably the end of September is a realistic look at when it's coming out.
Did jomann answer your question? Is it all right if we lock this thread?