Problems with Windows 2019 and Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Ense12
Posts: 3
Joined: Wed Jan 20, 2021 4:57 am

Problems with Windows 2019 and Nagios

Post by Ense12 »

Hi,

Im trying to connect a new server W2019 with nsclient 0.42x64 to Centreon 2.44. Log report this:

2021-01-20 09:48:08: error:D:\source\042\nscp\include\socket/server.hpp:202: Failed to bind: The requested address is not valid in its context
2021-01-20 09:48:08: error:D:\source\042\nscp\include\socket/server.hpp:150: Failed to setup endpoint
2021-01-20 09:48:08: error:D:\source\042\nscp\include\socket/server.hpp:155: NO endpoints available

Boot.ini and nsclient.ini have the same configuration that other servers that work without problems, (2008 and 2012). All TLS versions are enabled.

Is there any problem with windows 2019 version?

Regards,
Thanks

PD: I know that this version of Nagios is too old :(
Ense12
Posts: 3
Joined: Wed Jan 20, 2021 4:57 am

Re: Problems with Windows 2019 and Nagios

Post by Ense12 »

any idea?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Problems with Windows 2019 and Nagios

Post by mcapra »

I'd definitely try a newer version of NSClient++. Something in the 0.5.2 line at least. Though it doesn't look like NSClient++ has had a release since 2018.

Might try poking around the Centreon or NSClient++ forums:
https://forum.centreon.com/
https://forums.nsclient.org/

Though it looks like the NSClient++ forums are down.

You could try sharing your nsclient.ini, but if it's got some Centreon specific settings I dunno how much help you could get here. I can tell you how to wire the check_nrpe plugin up to NSClient++, but I don't know anything about Centreon.
Former Nagios employee
https://www.mcapra.com/
Ense12
Posts: 3
Joined: Wed Jan 20, 2021 4:57 am

Re: Problems with Windows 2019 and Nagios

Post by Ense12 »

mcapra wrote:I'd definitely try a newer version of NSClient++. Something in the 0.5.2 line at least. Though it doesn't look like NSClient++ has had a release since 2018.

Might try poking around the Centreon or NSClient++ forums:
https://forum.centreon.com/
https://forums.nsclient.org/

Though it looks like the NSClient++ forums are down.

You could try sharing your nsclient.ini, but if it's got some Centreon specific settings I dunno how much help you could get here. I can tell you how to wire the check_nrpe plugin up to NSClient++, but I don't know anything about Centreon.
Thanks for the answer.

I just update to NSCP-0.5.2.35-x64 and it still doesn't work. Log:

2021-01-25 10:19:17: error:c:\source\master\include\socket/server.hpp:217: Failed to bind (IP Client):5666(ipv4): The requested address is not valid in its context
2021-01-25 10:19:18: error:c:\source\master\include\socket/server.hpp:217: Failed to bind (IP Client):5666(ipv4): The requested address is not valid in its context
2021-01-25 10:19:19: error:c:\source\master\include\socket/server.hpp:217: Failed to bind (IP Client):5666(ipv4): The requested address is not valid in its context
2021-01-25 10:19:19: error:c:\source\master\include\socket/server.hpp:165: Failed to setup endpoint
2021-01-25 10:19:19: error:c:\source\master\include\socket/server.hpp:170: NO endpoints available
2021-01-25 10:19:19: error:c:\source\master\include\socket/server.hpp:217: Failed to bind (IP Client):12489(ipv4): The requested address is not valid in its context
2021-01-25 10:19:20: error:c:\source\master\include\socket/server.hpp:217: Failed to bind (IP Client):12489(ipv4): The requested address is not valid in its context
2021-01-25 10:19:21: error:c:\source\master\include\socket/server.hpp:217: Failed to bind (IP Client):12489(ipv4): The requested address is not valid in its context

This is the new .ini

[/settings/default]
allowed hosts=server nagios IP
password=xxxxxx
timeout=30

[/settings/NSClient/server]
port=12489

; in flight - TODO
[/modules]

; Undocumented key
CheckExternalScripts = enabled

; Undocumented key
CheckHelpers = disabled

; Undocumented key
CheckEventLog = disabled

; Undocumented key
CheckNSCP = disabled

; Undocumented key
CheckDisk = enabled

; Undocumented key
CheckSystem = enabled

; Undocumented key
NSClientServer = enabled

; Undocumented key
NRPEServer = enabled


Best regards,
Locked