Unable to strat the NSCLient Service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Unable to strat the NSCLient Service

Post by RIDS_I2MP »

Hi Team,

We have installed 32-nit NSClient on one of servers (Win Server 2003 R2, SP2, Enterprise Edition 32-bit). The installation was successful, however when we try to start the service we get a message saying

"Could not start the NSClient++(Win32) service on Local Computer

Error 32: The process cannot access the file because it is being used by another process"

We did try to re-install the agent, however its still the same, please help.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to strat the NSCLient Service

Post by lmiltchev »

Tried uninstalling NSClient++, rebooting the Windows box, then reinstalling the NSClient++. Did you use the *.msi or the *.zip to install the agent?
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Unable to strat the NSCLient Service

Post by RIDS_I2MP »

We have tried uninstalling the agent and reinstalling the agent but no change. We could not reboot the server as it is production server. We have used the .exe to install the agent.

Is there any other workaround with out restarting the windows server.

Regards,
I2MP Support.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to strat the NSCLient Service

Post by lmiltchev »

In this case, you may want to dig in and find out what is the process that is "still using" NSClient++. You can probably use a tool like Process Explorer by Sysinternals. You may try using the msi installer next time. Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Unable to strat the NSCLient Service

Post by RIDS_I2MP »

NSClient is a fresh install, the server did not have NSClient earlier, hence I suspect there is no scope for the service being utilized until being started. We will look in to the options and update.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to strat the NSCLient Service

Post by lmiltchev »

Sure. Let us know how it went.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Unable to strat the NSCLient Service

Post by rajasegar »

RIDS_I2MP wrote:NSClient is a fresh install, the server did not have NSClient earlier, hence I suspect there is no scope for the service being utilized until being started. We will look in to the options and update.
You might want to check if there is any very old version of NSclient in the system, it was called something else in services and installed in different directory.
We had similar issues before.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Unable to strat the NSCLient Service

Post by sreinhardt »

This is definitely a possibility, it also may not be under the nsclient service, possibly under nscp or nscp++.
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.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Unable to strat the NSCLient Service

Post by RIDS_I2MP »

Hi TEam,

Upon investigation we found that a file named 'program' was being installed in the C drive which was stopping the NSClient++ service to start and collect the performance metrics. We have deleted the file and the nagios service started without any issue. However, we have done a server reboot over the weekend and we have similar situation again where in a file named 'program' was created in the C drive and the service is failing to start. Could you please let us know if NSClient is supposed to create any file with name 'program' in C: Drive? Or if you have come across this issue before, please advise.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to strat the NSCLient Service

Post by lmiltchev »

However, we have done a server reboot over the weekend and we have similar situation again where in a file named 'program' was created in the C drive and the service is failing to start. Could you please let us know if NSClient is supposed to create any file with name 'program' in C: Drive?
Not really. NSClient++ creates a directory named "NSClient++" usually in C:\Program Files\. Open the services (services.msc), find the "NSClient++" service, right-click on it and select "Properties". What is the path to the executalbe? Do you see a service called "program"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked