We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

Warning Monitoring Windows Server 2019 - Nagios Core

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Warning Monitoring Windows Server 2019 - Nagios Core

Postby YUDI » Sun Apr 03, 2022 10:00 pm

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

YUDI
 
Posts: 3
Joined: Wed Mar 30, 2022 10:00 pm

Re: Warning Monitoring Windows Server 2019 - Nagios Core

Postby atc0005 » Mon Apr 04, 2022 1:23 pm

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
atc0005
 
Posts: 25
Joined: Thu Oct 28, 2021 2:03 pm

Re: Warning Monitoring Windows Server 2019 - Nagios Core

Postby YUDI » Mon Apr 04, 2022 8:49 pm

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


Return to Community Support

Who is online

Users browsing this forum: Google [Bot] and 23 guests