Page 5 of 5
Re: Issue with NCPA agent
Posted: Wed Feb 19, 2014 3:23 pm
by slansing
We're going to look into this with the developer of NCPA, he should be in today.
Re: Issue with NCPA agent
Posted: Wed Feb 19, 2014 3:32 pm
by lmiltchev
Did you copy only the "check_winevent.exe" file to the NCPA plugins directory, or you copied all the folders (bin, cpfworkrt, dll, doc, lib)? I am not really sure what is needed - never used this plugin, however it is working just fine for me (after I copied all of the files

). See below:
example.PNG
example2.PNG
Code: Select all
[root@testbox libexec]# ./check_ncpa.py -H 192.168.x.x -t 'token' -P 5693 -M agent/plugin/check_winevent.exe -a "--log security"
EVENT OK - 865 events|events=865;;;
Re: Issue with NCPA agent
Posted: Wed Feb 19, 2014 4:30 pm
by balothia
Definitely I copied all files in the plugin folder without that the plugin will not work. I did reinstalled the NCPA, I provided the new version 1.3 I am using. I will try to reinstall the agent. The ncpa agent doesnt need a restart of server, Can you confirm? if this is the case i havent restarted the server after reinstalling the agent. Also can you give me the agent download link which you have used in the scenario working for you.
Do you have any new version of check_ncpa.py script?
Thanks,
Gautam
Re: Issue with NCPA agent
Posted: Wed Feb 19, 2014 5:50 pm
by lmiltchev
I downloaded the "check_winevent" from here:
http://www.itefix.no/i2/sites/all/modul ... &nid=12690
Unzipped it, and copied over all of the files to "C:\Program Files (x86)\Nagios\NCPA\plugins\" directory.
I download the NCPA Windows agent from here:
http://assets.nagios.com/downloads/ncpa/ncpa-head.exe
I didn't have to restart the server.
Try reinstalling the agent and see if this is going to fix your issue. If not, we will have to bring in the NCPA developer.
Re: Issue with NCPA agent
Posted: Thu Feb 20, 2014 11:44 am
by balothia
Issue got resolved after replacing the check_ncpa.py. I did the reinstallation of agent but that didnt changed anything and then I though to look for check_ncpa.py script if any changes has been done. And thats where was the problem, there is a new modifies check_ncpa.py script available, which is now working for me.
Difference in bytes as well between old and new script....
4263 check_ncpa.py
4283 check_ncpa.py.old
Thanks for working on this issue...
Thanks,
Gautam
Re: Issue with NCPA agent
Posted: Thu Feb 20, 2014 12:19 pm
by tmcdonald
Glad to see it working now. I'll be closing this thread, but feel free to start another if you have issues in the future.
Re: Issue with NCPA agent
Posted: Thu Feb 20, 2014 12:19 pm
by slansing
Excellent!