Warning Monitoring Windows Server 2019 - Nagios Core

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
YUDI
Posts: 3
Joined: Wed Mar 30, 2022 10:00 pm

Warning Monitoring Windows Server 2019 - Nagios Core

Post by YUDI »

Hi,

I have installed NSClient on my Windows Server 2019 64bit, and from Nagios server I got warning message "could not fetch information from server".

This in the nsclient.ini

Code: Select all

; in flight - TODO
[/settings/default]

; Undocumented key
password = mypassword

; Undocumented key
allowed hosts = 192.168.0.60


; in flight - TODO
[/settings/NRPE/server]

; Undocumented key
;ssl options = no-sslv2,no-sslv3
allowed ciphers = ALL:!MD5:@STRENGTH
allow arguments = true
allow nasty characters = true
insecure = true
verify mode = none
; Undocumented key
;verify mode = peer-cert

; Undocumented key
;insecure = false


; in flight - TODO
[/modules]

; Undocumented key
CheckExternalScripts = enabled

; Undocumented key
CheckHelpers = enabled

; Undocumented key
CheckNSCP = enabled

; Undocumented key
CheckDisk = enabled

; Undocumented key
WEBServer = enabled

; Undocumented key
CheckSystem = enabled

; Undocumented key
NSClientServer = enabled

; Undocumented key
CheckEventLog = enabled

; Undocumented key
NSCAClient = enabled

; Undocumented key
NRPEServer = enabled

use ssl = 0

performance data = 1

port = 12489

Command from Nagios server

Code: Select all

[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H 192.168.11.70 -p 12489 -v UPTIME
could not fetch information from server

[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H 192.168.11.70 -p 12489 -v CLIENTVERSION
could not fetch information from server

atc0005
Posts: 26
Joined: Thu Oct 28, 2021 2:03 pm

Re: Warning Monitoring Windows Server 2019 - Nagios Core

Post by atc0005 »

YUDI wrote:Hi,
and from Nagios server I got warning message "could not fetch information from server".
Can you connect to port 12489/tcp from the Nagios server?

I recommend using nmap to test this if you haven't already.

For example:

Code: Select all

sudo nmap -sT -v -p 12489 192.168.11.70
YUDI
Posts: 3
Joined: Wed Mar 30, 2022 10:00 pm

Re: Warning Monitoring Windows Server 2019 - Nagios Core

Post by YUDI »

atc0005 wrote:
Can you connect to port 12489/tcp from the Nagios server?

I recommend using nmap to test this if you haven't already.

For example:

Code: Select all

sudo nmap -sT -v -p 12489 192.168.11.70
Hi,

This is the result

Code: Select all

[root@localhost ~]# sudo nmap -sT -v -p 12489 192.168.11.70

Starting Nmap 6.40 ( http://nmap.org ) at 2022-04-05 08:46 WIB
Initiating Ping Scan at 08:46
Scanning 192.168.11.70 [4 ports]
Completed Ping Scan at 08:46, 0.20s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 08:46
Completed Parallel DNS resolution of 1 host. at 08:46, 0.17s elapsed
Initiating Connect Scan at 08:46
Scanning 192.168.11.70 [1 port]
Discovered open port 12489/tcp on 192.168.11.70
Completed Connect Scan at 08:46, 0.00s elapsed (1 total ports)
Nmap scan report for 192.168.11.70
Host is up (0.00065s latency).
PORT      STATE SERVICE
12489/tcp open  unknown

Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.48 seconds
           Raw packets sent: 4 (152B) | Rcvd: 1 (40B)
Locked