Page 2 of 2

Re: ncpa_passive checks

Posted: Fri Apr 06, 2018 10:40 am
by lmiltchev
Did you restart the ncpa_listener and ncpa_passive services after you made the changes?

What is the OS/architecture of the remote system? What is the version of the NCPA agent that you installed on this box?

Have you waited long enough for the new passive checks to be sent out?
Note: Check what's your passive check interval (the "sleep" directive) in the ncpa.cfg file.

P.S.
I tested this in NCPA 2.1.3

Re: ncpa_passive checks

Posted: Fri Apr 06, 2018 11:39 am
by nag4csec42
I have restarted both services, yes. The passive sleep time is 300, 5 mins, and I have waited long enough for that to time out.

OS is Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-112-generic x86_64).

ncpa version is ncpa 2.0.5-1

Re: ncpa_passive checks

Posted: Fri Apr 06, 2018 11:47 am
by nag4csec42
I updated to ncpa 2.1.3 from the Nagios apt repo, and now I see this:
Untitled3.png

Re: ncpa_passive checks

Posted: Fri Apr 06, 2018 11:53 am
by lmiltchev
You are using a very old version of NCPA... I would recommend upgrading to the latest. There are various bug fixes in newer versions. I can see this (in 2.1.0):
Fixed problem with multiple arguments passed via query string for passive URL-based checks
https://github.com/NagiosEnterprises/nc ... HANGES.rst

Go to https://www.nagios.org/ncpa/#downloads, select "Ubuntu" from the drop-down menu, and follow the instructions for installing the NCPA agent. The latest stable agent version is 2.1.3. Let us know if this helped.

Re: ncpa_passive checks

Posted: Fri Apr 06, 2018 4:16 pm
by nag4csec42
Please see my previous post, I have updated to 2.1.3 and am still having issues.

Re: ncpa_passive checks

Posted: Mon Apr 09, 2018 9:52 am
by lmiltchev
I am sorry - I missed the line, where you said you updated the agent. :(

I was testing this check on a CentOS system, where it works as expected. However, I was able to recreate the issue on Ubuntu 16.04, and filed a bug report here:

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

Our developers will be looking into it as soon as they can. Thank you for reporting the issue!

Re: ncpa_passive checks

Posted: Mon Apr 09, 2018 2:23 pm
by jomann
Because the default for .sh files in NCPA is to use /bin/sh not /bin/bash you need to set your NCPA config ncpa.cfg to use /bin/bash instead you can see an example of what I am talking about (using /bin/sh by default) here https://github.com/NagiosEnterprises/nc ... a.cfg#L284

Re: ncpa_passive checks

Posted: Tue Apr 10, 2018 8:21 am
by nag4csec42
That worked, thank you!

Re: ncpa_passive checks

Posted: Tue Apr 10, 2018 11:16 am
by lmiltchev
I am glad we finally sorted this out! Is it OK if we close this topic? Do you have any more questions?

Re: ncpa_passive checks

Posted: Tue Apr 10, 2018 11:55 am
by nag4csec42
Go ahead and close it, thank you!