Connection refused error on Windows servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Connection refused error on Windows servers

Post by jyoti22 »

I have installed and configured NSClient on Windows boxes successfully. But after few days I found the issue that Nagios service automatically stopped in some time after starting it. Below is error log from client server. Please advice what can be fix for such kind of issues.

Code: Select all

Log Name:      Application
Source:        Application Error
Date:          10/14/2015 10:56:41 AM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      AllWorldIS.tpcx.com
Description:
Faulting application name: nscp.exe, version: 0.4.2.114, time stamp: 0x54af0563
Faulting module name: NSClientServer.dll, version: 0.4.2.114, time stamp: 0x54af04bb
Exception code: 0xc0000005
Fault offset: 0x00000000000f1150
Faulting process id: 0x6c0
Faulting application start time: 0x01d1068fde9feedc
Faulting application path: C:\Program Files\NSClient++\nscp.exe
Faulting module path: C:\Program Files\NSClient++\modules\NSClientServer.dll
Report Id: c68161cc-7283-11e5-be17-005056825e6e
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-10-14T14:56:41.000000000Z" />
    <EventRecordID>18324</EventRecordID>
    <Channel>Application</Channel>
    <Computer>AllWorldIS.tpcx.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>nscp.exe</Data>
    <Data>0.4.2.114</Data>
    <Data>54af0563</Data>
    <Data>NSClientServer.dll</Data>
    <Data>0.4.2.114</Data>
    <Data>54af04bb</Data>
    <Data>c0000005</Data>
    <Data>00000000000f1150</Data>
    <Data>6c0</Data>
    <Data>01d1068fde9feedc</Data>
    <Data>C:\Program Files\NSClient++\nscp.exe</Data>
    <Data>C:\Program Files\NSClient++\modules\NSClientServer.dll</Data>
    <Data>c68161cc-7283-11e5-be17-005056825e6e</Data>
  </EventData>
</Event>
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Connection refused error on Windows servers

Post by hsmith »

Former Nagios Employee.
me.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Connection refused error on Windows servers

Post by Box293 »

In addition to what @hsmith said, I would configure the service to restart on failure (in services.msc).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Connection refused error on Windows servers

Post by jyoti22 »

How to configure the service to restart on failure ?
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Connection refused error on Windows servers

Post by WillemDH »

Check out the attached screenshot.
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Connection refused error on Windows servers

Post by hsmith »

Thank you Willem. @jyoti22 , did Willem's suggestion work out for you/can we help you further with this one?
Former Nagios Employee.
me.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Connection refused error on Windows servers

Post by jyoti22 »

Hi,
I am using latest NSClient version and configured the service to restart on failure. Still NSClient is getting crashed within 10 min after service restart.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Connection refused error on Windows servers

Post by hsmith »

Do you see anything in nsclient.log that could give us some clues as to why NSClient is crashing? Do you have a new error to post since changing versions?
Former Nagios Employee.
me.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Connection refused error on Windows servers

Post by WillemDH »

I never saw this before. Might be a bug. If you sure you are using the latest stable NSClient version which is 0.4.3.143 on Medin's site, you could make an issue on GitHub https://github.com/mickem/nscp/issues
Of course he has relesased some pre-releases, in fact NSClient is already at 0.4.4.2 =>https://github.com/mickem/nscp/releases/tag/0.4.4.2
Maybe you could give that a try first. Ah yes and please post the nsclient.log file first.
Nagios XI 5.8.1
https://outsideit.net
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Connection refused error on Windows servers

Post by jdalrymple »

Hi jyoti22

I have a couple of suggestions. One is to just repeat hsmith:
hsmith wrote:Do you see anything in nsclient.log that could give us some clues as to why NSClient is crashing? Do you have a new error to post since changing versions?
The other - if that doesn't offer any useful information try to run the program in the foreground and see what the on-screen output is when it crashes. From an elevated command prompt:

Code: Select all

net stop nscp
c:\program files\nsclient++\nscp.exe test
One of these should offer some insight into why it's crashing. The service is typically very stable.
Locked