Page 2 of 2

Re: NCPA not updating config

Posted: Mon Mar 24, 2014 3:16 pm
by lmiltchev
:D I will wait for Nick, the genius, to "enlighten" me on NRDS integration... then we will be updating the documentation, I guess...

Re: NCPA not updating config

Posted: Tue Mar 25, 2014 12:49 pm
by BanditBBS
lmiltchev wrote::D I will wait for Nick, the genius, to "enlighten" me on NRDS integration... then we will be updating the documentation, I guess...
Any word from the "genius" yet? :)

Re: NCPA not updating config

Posted: Tue Mar 25, 2014 2:11 pm
by lmiltchev
Any word from the "genius" yet?
Yep, he said he will be working on it today. :)

I was right about the fact that you needed to set "handlers = nrds". What I didn't know is that you *should* be able to just add it, so that you would have:

Code: Select all

handlers = nrdp
handlers = nrds
It doesn't seem this is working at the moment. I am not sure what changed. One error I see in the log is this one:

Code: Select all

NoOptionError: No option 'TOKEN' in section: 'nrds'
It seems like "token" is not the same as "TOKEN"... :) But even if this is modified, it still fails.

Code: Select all

ERROR:root:ConfigParser instance has no attribute 'file_path'
Traceback (most recent call last):
  File "C:\Users\nscott\Documents\Git\ncpa\agent\ncpa_windows.py", line 129, in run_all_handlers
  File "C:\Program Files (x86)\Nagios\NCPA\passive\nrds.py", line 23, in run
    self.update_config()
  File "C:\Program Files (x86)\Nagios\NCPA\passive\nrds.py", line 73, in update_config
    with open(self.config.file_path , 'w') as config:
AttributeError: ConfigParser instance has no attribute 'file_path'

Re: NCPA not updating config

Posted: Wed Mar 26, 2014 8:30 am
by BanditBBS
Ok, I have to make some decisions here on how I am going to proceed and need to tell people how things currently function(not how they will)....so with that being said, if I want to use passive checks and control them centrally I have to use NRDS_Win at this moment in time, correct? If I don't care about central administration I can then use NCPA.

Thanks!

edit: OMG my head hurts, I'm really trying to wrap my head around this and think of the best way to monitor my Windows environment. I'm going to open a new thread with a very specific question that isn't directly related to the topic of this thread

Re: NCPA not updating config

Posted: Wed Mar 26, 2014 11:11 am
by scottwilkerson
BanditBBS wrote:Ok, I have to make some decisions here on how I am going to proceed and need to tell people how things currently function(not how they will)....so with that being said, if I want to use passive checks and control them centrally I have to use NRDS_Win at this moment in time, correct? If I don't care about central administration I can then use NCPA.

Thanks!
That's correct. Sorry for the confusion.