Issue with NCPA agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issue with NCPA agent

Post by slansing »

We're going to look into this with the developer of NCPA, he should be in today.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with NCPA agent

Post 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;;;
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!
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: Issue with NCPA agent

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with NCPA agent

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: Issue with NCPA agent

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Issue with NCPA agent

Post 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.
Former Nagios employee
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issue with NCPA agent

Post by slansing »

Excellent!
Locked