Page 1 of 2

NCPA not updating config

Posted: Fri Mar 21, 2014 2:29 pm
by BanditBBS
Ok, I lied, I admit it! I have more NCPA questions :)

I installed NCPA on my laptop and it instantly starts sending passive results into the Nagios server. I create a config_name in NRDS Config Manager matching the config_name in the ncpa.cfg file. My laptop never picks that up, it is only sending the default 3 passive checks still. What am I missing to allow it to update its config?

Re: NCPA not updating config

Posted: Fri Mar 21, 2014 2:31 pm
by BanditBBS
In the GUI the NRDS section looks like this:
Capture.JPG
Even though the cfg file has this:

Code: Select all

[nrds]
url =http://xxxxxxxxxxx.com/nrdp/
CONFIG_VERSION =0
token =xxxxxxx
CONFIG_NAME =test_clark
CONFIG_OS = None
PLUGIN_DIR=plugins/
UPDATE_CONFIG=1
UPDATE_PLUGINS=1

Re: NCPA not updating config

Posted: Fri Mar 21, 2014 2:41 pm
by lmiltchev
I am going to test this and get back to you on Monday. Can you check one thing though? What do you have set up in the ncpa.cfg on the "handlers = " line (under [passive])? Do you have:

Code: Select all

handlers = nrdp
or

Code: Select all

handlers = nrds
in there?

Re: NCPA not updating config

Posted: Fri Mar 21, 2014 2:50 pm
by BanditBBS
NRDP, which is the default apparently.

I changed it and restarted the service, no change in what it did, and I then changed it back.

Re: NCPA not updating config

Posted: Mon Mar 24, 2014 10:32 am
by lmiltchev
I will have to double check the "handlers = " option with Nick. As far as I remember, he was saying that you need to set "handlers = nrds" if you want to use NCPA with NRDS, however, I got some mixed results during my testing, so I am not 100% sure.

Anyway, my config updated just fine in the "config.ini" but not in the "ncpa.cfg"... My config is named win7 (Under the NRDS Config Manager in XI).
example1.PNG
I didn't have the correct config name in the "ncpa.cfg", so I had to set it up and restart the "NCPA Passive" service.

Code: Select all

[nrds]
url =http://192.168.x.x/nrdp/
CONFIG_VERSION =0
token =xxx
CONFIG_NAME =win7
CONFIG_OS = None
PLUGIN_DIR=plugins/
UPDATE_CONFIG=1
UPDATE_PLUGINS=1
Then I modified the config under the NRDS Config Manager in XI. The saved version was 0.3.
example1.PNG
I the "ncpa.cfg", I still have:

Code: Select all

CONFIG_VERSION =0
while, in the "config.ini", it is updated:

Code: Select all

[settings]
CONFIG_VERSION=0.3
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=win7
...

Re: NCPA not updating config

Posted: Mon Mar 24, 2014 12:23 pm
by BanditBBS
Config.ini only exists in NRDP_Win if you install that though, right? I'm tryign to get this all done with just NCPA if possible. Am I trying something that isn't possible in NCPA?

I want passive checks that can be managed by the Nagios server and not use scheduled tasks.

Re: NCPA not updating config

Posted: Mon Mar 24, 2014 1:08 pm
by lmiltchev
Config.ini only exists in NRDP_Win if you install that though, right?
Config.ini only exists in NRDS_Win if you install NRDS on the Windows box. I don't believe NCPA is going to install/configure NRDS for you. When you are installing NCPA, you are asked for the NRDS config (assuming that you are already using NRDS)...

Re: NCPA not updating config

Posted: Mon Mar 24, 2014 1:38 pm
by BanditBBS
Ludmil,

Ok, I'm man enough to admit when I am confused :?

Is there a web page that details the functionality of NCPA?

For active checks I understand, and need no explanation, it is the passive checks that I need clarification for. One of the downsides of NRDS_Win(In my environment) is that it uses scheduled tasks. If I install and use NCPA and want to use passive checks(including the API checks) am I able to control those like I do for NRDS? So many other questions in this regard, just confused on the use/functionality of NCPA. Do I have to use both NRDS_Win and NCPA and if so, does NCPA then update the NRDS_Win config.ini?

Re: NCPA not updating config

Posted: Mon Mar 24, 2014 2:49 pm
by lmiltchev
I believe NRDS needs to be installed, and unless it is, you are not going to be able to modify configs "centrally" (under the "NRDS Config Manager" in XI). Nick is off today, but he should be in tomorrow. I will check this out with him, as I am not finding any references to the NRDS integration with NCPA in the documentation:

http://assets.nagios.com/downloads/ncpa ... index.html

I always tested NCPA with NRDS already installed...

Re: NCPA not updating config

Posted: Mon Mar 24, 2014 2:59 pm
by BanditBBS
Thanks, and make sure and ask, if NRDS needs installed as well, does the schedule task still get used or does NCPA actually run it.

I don't feel bad for being confused when my questions are also confusing an employee :)