ncpa_passive checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ncpa_passive checks

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
nag4csec42
Posts: 25
Joined: Tue Sep 06, 2016 10:59 am

Re: ncpa_passive checks

Post 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
nag4csec42
Posts: 25
Joined: Tue Sep 06, 2016 10:59 am

Re: ncpa_passive checks

Post by nag4csec42 »

I updated to ncpa 2.1.3 from the Nagios apt repo, and now I see this:
Untitled3.png
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ncpa_passive checks

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nag4csec42
Posts: 25
Joined: Tue Sep 06, 2016 10:59 am

Re: ncpa_passive checks

Post by nag4csec42 »

Please see my previous post, I have updated to 2.1.3 and am still having issues.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ncpa_passive checks

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: ncpa_passive checks

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nag4csec42
Posts: 25
Joined: Tue Sep 06, 2016 10:59 am

Re: ncpa_passive checks

Post by nag4csec42 »

That worked, thank you!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ncpa_passive checks

Post by lmiltchev »

I am glad we finally sorted this out! Is it OK if we close this topic? Do you have any more questions?
Be sure to check out our Knowledgebase for helpful articles and solutions!
nag4csec42
Posts: 25
Joined: Tue Sep 06, 2016 10:59 am

Re: ncpa_passive checks

Post by nag4csec42 »

Go ahead and close it, thank you!
Locked