Page 1 of 1

Added a new Windows 2012 R2 host via template and getting Cr

Posted: Thu Sep 07, 2017 2:22 pm
by jfoshier
I have added ports 5666 and 12489 in the host firewall and still getting critical service errors for CPU, Drives, Memory and Uptime. Nmap shows
Port 5666/tcp open nrpe
Port 12489/tcp filtered unknown

We are running the latest Nagios XI 5.4.8

I ran the latest nscp-0.4.4.23x64 with the defaults. Any thought what I may be missing. When I looked at the .ini file there was no entry for ports, strange.

Re: Added a new Windows 2012 R2 host via template and gettin

Posted: Thu Sep 07, 2017 3:00 pm
by dwhitfield
jfoshier wrote: When I looked at the .ini file there was no entry for ports, strange.
There's your problem.

You'll want to go through the entire document, but pay particular attention to page 3: https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: Added a new Windows 2012 R2 host via template and gettin

Posted: Fri Sep 08, 2017 9:40 am
by jfoshier
I reviewed the document and have added in an entry for port = 12489 to our nsclient.ini file but this did not resolve my issue, still getting the socket timeout errors. On the Windows server I am trying to monitor I ran netstat -an |findstr '12489' and there is no entries found.

nmap on nagiosXI for port 12489 shows port=12489 Stae=filtered Service=unknown

Re: Added a new Windows 2012 R2 host via template and gettin

Posted: Fri Sep 08, 2017 9:55 am
by scottwilkerson
can you share your nsclient.ini obfuscating any sensitive data?

Re: Added a new Windows 2012 R2 host via template and gettin

Posted: Fri Sep 08, 2017 12:31 pm
by jfoshier
Here is our nsclient

# If you want to fill this file with all avalible options run the following command:
# nscp settings --generate --add-defaults --load-all
# If you want to activate a module and bring in all its options use:
# nscp settings --activate-module <MODULE NAME> --add-defaults
# For details run: nscp settings --help


; Undocumented section
[/settings/default]

; Undocumented key
password = dR7Nve1d8xPMvLN7

; PORT NUMBER
port = 12489

; Undocumented key
allowed hosts = 127.0.0.1,::1,10.1.0.147


; Undocumented section
[/settings/NRPE/server]

; Undocumented key
ssl options = no-sslv2,no-sslv3

; Undocumented key
verify mode = peer-cert

; Undocumented key
insecure = false


; Undocumented section
[/modules]

; Undocumented key
CheckExternalScripts = 1

; Undocumented key
CheckHelpers = 1

; Undocumented key
CheckEventLog = 1

; Undocumented key
CheckNSCP = 1

; Undocumented key
CheckDisk = 1

; Undocumented key
CheckSystem = 1

; Undocumented key
NRPEServer = 1

Re: Added a new Windows 2012 R2 host via template and gettin

Posted: Fri Sep 08, 2017 12:47 pm
by scottwilkerson
This is only a fraction of the settings. Lets make a backup of your config and follow the directions on page 2-5 on this doc
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

then restart NSClient Service