nsclient not working on new exchange 2016 server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

nsclient not working on new exchange 2016 server

Post by benningtonr »

installed the client as I always do on our new exchange 2016 server, and `most checks are not working.

Exchange Core ServicesNotifications are disabled for this service Critical 6d 1h 26m 16s 5/5 2018-05-17 10:53:56 connect to address 192.168.99.28 and port 12489: Connection refused
Exchange Web ServicesNotifications are disabled for this service Critical 6d 1h 25m 38s 5/5 2018-05-17 10:54:38 connect to address 192.168.99.28 and port 12489: Connection refused
Messages Pending RoutingNotifications are disabled for this service Critical 6d 1h 24m 34s 5/5 2018-05-17 10:55:29 connect to address 192.168.99.28 and port 12489: Connection refused
Remote Queue LengthNotifications are disabled for this service Critical 6d 1h 27m 18s 5/5 2018-05-17 10:58:11 connect to address 192.168.99.28 and port 12489: Connection refused

SMTP, OWA and ping are working
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nsclient not working on new exchange 2016 server

Post by scottwilkerson »

Check the windows firewall and verify that port 12489 is open and allowing traffic.

If this is the case for sure, please include you nsclient.ini for review
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: nsclient not working on new exchange 2016 server

Post by benningtonr »

I have actually turned the firewall off.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nsclient not working on new exchange 2016 server

Post by scottwilkerson »

That looks correct, is the service running?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: nsclient not working on new exchange 2016 server

Post by benningtonr »

Yes the service is running, i even stopped and restarted, to no avail.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nsclient not working on new exchange 2016 server

Post by scottwilkerson »

I believe we need to remove this line from the config

Code: Select all

bind to = UNKNOWN
Then restart the nsclient services

If it still does not work, please attach the nsclient.log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nsclient not working on new exchange 2016 server

Post by scottwilkerson »

You are likely going to also need to enable at a minimum these

Code: Select all

; Undocumented key
CheckHelpers = disabled

; Undocumented key
CheckDisk = disabled

; Undocumented key
CheckSystem = disabled
Which are currently disabled in the config
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: nsclient not working on new exchange 2016 server

Post by benningtonr »

Okay I change all of the above and now i am getting this

Unknown command(s): check_service


Exchange Core ServicesNotifications are disabled for this service Unknown 3m 14s 5/5 2018-05-18 09:14:26 Unknown command(s): check_service
Exchange Web ServicesNotifications are disabled for this service Unknown 1m 15s 5/5 2018-05-18 09:16:25 Unknown command(s): check_service
Messages Pending RoutingNotifications are disabled for this service Unknown 5m 19s 5/5 2018-05-18 09:17:19 NSClient - ERROR: No performance data from command: check_pdh
OWA HTTPNotifications are disabled for this service Warning 7d 0h 31m 47s 5/5 2018-05-18 09:12:42 HTTP WARNING: HTTP/1.1 403 Forbidden - 129 bytes in 0.001 second response time
OWA HTTPS Ok 7d 0h 31m 13s 1/5 2018-05-18 09:13:15 HTTP OK: HTTP/1.1 302 Moved Temporarily - 294 bytes in 0.018 second response time
Ping Ok 7d 0h 35m 5s 1/5 2018-05-18 09:15:39 OK - 192.168.99.28: rta 0.253ms, lost 0%
Remote Queue LengthNotifications are disabled for this service Unknown 2m 39s 5/5 2018-05-18 09:15:01 NSClient - ERROR: No performance data from command: check_pdh
SMTP Ok 7d 0h 34m 0s 1/5 2018-05-18 09:16:50 SMTP OK - 0.003 sec. response time
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nsclient not working on new exchange 2016 server

Post by scottwilkerson »

Check_service is part of CheckSystem

Make sure you have

Code: Select all

CheckSystem = enabled
and you have restarted nsclient service after
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: nsclient not working on new exchange 2016 server

Post by benningtonr »

I enabled them all at the same time.

I have attached a picture
You do not have the required permissions to view the files attached to this post.
Locked