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
ncpa_passive checks
Re: ncpa_passive checks
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
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
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
I updated to ncpa 2.1.3 from the Nagios apt repo, and now I see this:
You do not have the required permissions to view the files attached to this post.
Re: ncpa_passive checks
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):
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.
https://github.com/NagiosEnterprises/nc ... HANGES.rstFixed problem with multiple arguments passed via query string for passive URL-based checks
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
Please see my previous post, I have updated to 2.1.3 and am still having issues.
Re: ncpa_passive checks
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!
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!
Re: ncpa_passive checks
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
That worked, thank you!
Re: ncpa_passive checks
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
Go ahead and close it, thank you!