Page 1 of 1

Ncpa Agent error on Windows Server 2008 R2

Posted: Thu Jan 11, 2018 2:28 pm
by tonkaUser
Hi,

I have a problem with Nagios NCPA Agent install on Windows 2008 R2 server. After the install, I saw an error about a missing VC90 assembly. I installed vcredist_x86.exe from https://www.microsoft.com/en-au/downloa ... aspx?id=29

Now, I don't get an error, but the agent does not work. When I run ncpa_listener.exe nothing happens.
I don't see any logs under C:\Program Files (x86)\Nagios\NCPA\var\log

How do I diagnose and fix it?

This is the error I saw before:
Activation context generation failed for "C:\Program Files (x86)\Nagios\NCPA\ncpa_passive.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

Thanks

Re: Ncpa Agent error on Windows Server 2008 R2

Posted: Thu Jan 11, 2018 5:02 pm
by npolovenko
Hello, @tonkaUser. Usually, you need to turn on the debugging option in the ncpa.cfg file:

Code: Select all

loglevel =debug
logfile = var/log/ncpa_passive.log
pidfile = var/run/ncpa_passive.pid
After that, you need to restart the ncpa service. Also, you could open a windows services menu, and from there you'll be able to see whether NCPA service is running at all.
This is the error I saw before:
Activation context generation failed for "C:\Program Files (x86)\Nagios\NCPA\ncpa_passive.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis
Did you see that error in a log file or when you clicked on the .exe file?

Re: Ncpa Agent error on Windows Server 2008 R2

Posted: Tue Jan 16, 2018 11:05 am
by tonkaUser
Hi,

I saw that error message in the Event log. There was no NCPA service installed. I ran a silent install (with /S /Token arguments)
I re-installed NCPA agent again after VC9 CRT assembly was installed and all works fine now.

Thanks

Re: Ncpa Agent error on Windows Server 2008 R2

Posted: Tue Jan 16, 2018 3:36 pm
by npolovenko
@tonkaUser, Glad you fixed this. Can I close this thread now?