Issue with NCPA agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: Issue with NCPA agent

Post by balothia »

Sure Let me try this. Meanwhile we have the issue again with one of our server where we got UNKNOWN Plugin error. I am attaching the log files for your reference.

Thanks,
You do not have the required permissions to view the files attached to this post.
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 »

Where are you seeing this unknown output? Is it an active or passive check? I don't see any mentions of it in your NCPA logs.
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: Issue with NCPA agent

Post by balothia »

slansing wrote:Where are you seeing this unknown output? Is it an active or passive check? I don't see any mentions of it in your NCPA logs.
This is for active checks. We see this UNKNOWN error while running ncpa python scripts from Nagios server. When we get the unknow error message, I have to login to these servers which are using NCPA agent and just restart the agent. This fix the issue.
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 »

Hmm, and this is only occurring on one server that is running NCPA? Does this version differ from the other servers that work correctly? Have you tried simply re-installing it?
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: Issue with NCPA agent

Post by balothia »

slansing wrote:Hmm, and this is only occurring on one server that is running NCPA? Does this version differ from the other servers that work correctly? Have you tried simply re-installing it?
Nope, this is happening on all 3 servers, where I have installed NCPA recently. Unfortunately, these are first 3 servers in our environment with NCPA agent. I did the install with same exe file on all 3 servers. These are production servers, let me check if I can quickly do uninstall/install, I think it may require a restart.

Thanks,
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 »

Okay awesome, if you can, just let us know what change (if any) this had.
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: Issue with NCPA agent

Post by balothia »

Looks like Auto start with delay is helping out. We havent seen any new issue since then. But still I am looking for agent reinstall, I havent got the approval for that. I will keep you guys posted. Thanks a lot for your patience.

Just want to check, I believe by default NCPA agent doesnt check for Windows event logs. How can we run a plugin like check_winevent.exe, to check event logs. Apart from installing perl and using perl module on windows server.

Thanks,
Gautam
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Issue with NCPA agent

Post by sreinhardt »

yes ncpa should be able to handle forwarding any output from other plugins and scripts that work in windows land. If you have issues let us know!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: Issue with NCPA agent

Post by balothia »

sreinhardt wrote:yes ncpa should be able to handle forwarding any output from other plugins and scripts that work in windows land. If you have issues let us know!
how you will invoke .exe plugin. I can see in ncpa.cfg we have to give something like below.

.sh = /bin/sh $plugin_name $plugin_args
.ps1 = powershell -ExecutionPolicy Unrestricted $plugin_name $plugin_args
.vbs = cscript $plugin_name $plugin_args //NoLogo

Do we have any procedure written for this?

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 »

how you will invoke .exe plugin.
To be honest, I am not sure if this is possible. The NCPA developer should be in the office this afternoon, and will address this question. If this functionality is not available at the moment, I am sure we can add it later (if this is doable).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked