NCPA not updating config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

NCPA not updating config

Post 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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NCPA not updating config

Post 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
You do not have the required permissions to view the files attached to this post.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA not updating config

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NCPA not updating config

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA not updating config

Post 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
...
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NCPA not updating config

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA not updating config

Post 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)...
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NCPA not updating config

Post 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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA not updating config

Post 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...
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NCPA not updating config

Post 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 :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked