using NCPA to check used disk space

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

using NCPA to check used disk space

Post 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
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: using NCPA to check used disk space

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

Re: using NCPA to check used disk space

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: using NCPA to check used disk space

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: using NCPA to check used disk space

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: using NCPA to check used disk space

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked