I followed the document, followed the Configuration Wizard, and I was receiving the same errors you were. As well as going through the same testing.
I was missing several sections in my nsclient.ini file.
And unfortunately I'm not very familiar with NSClient++ personally - yes we use it in our product - but mostly for compatibility reasons - this is not a piece of software that we develop nor maintain. (NCPA is a great alternative!)
Alright so how I fixed it was pretty simple. I reran my ini generation (with --load-all, not -load-all)and in the /modules/ section:
Code: Select all
; A list of modules.
[/modules]
; SimpleFileWriter - Write status updates to a text file (A bit like the NSCA server does)
SimpleFileWriter = 1
; PythonScript - Loads and processes internal Python scripts
PythonScript = 1
; NSClientServer - A server that listens for incoming check_nt connection and processes incoming requests.
NSClientServer = 1
; NSCAClient - NSCA client can be used both from command line and from queries to submit passive checks via NSCA
NSCAClient = 0
; NRPEServer - A server that listens for incoming NRPE connection and processes incoming requests.
NRPEServer = 1
; NRDPClient - NRDP client can be used both from command line and from queries to check remote systes via NRDP
NRDPClient = 0
; DotnetPlugin - Plugin to load and manage plugins written in dot net.
DotnetPlugins = 1
; CheckTaskSched - Check status of your scheduled jobs.
CheckTaskSched =1
; NSCAServer - A server that listens for incoming NSCA connection and processes incoming requests.
NSCAServer = 0
; CheckLogFile - File for checking log files and various other forms of updating text files
CheckLogFile = 1
; CheckNSCP - Use this module to check the healt and status of NSClient++ it self
CheckNSCP = 0
; CheckDisk - CheckDisk can check various file and disk related things.
CheckDisk = 1
; SyslogClient - Forward information as syslog messages to a syslog server
SyslogClient = 0
; CheckHelpers - Various helper function to extend other checks.
CheckHelpers = 0
; Scheduler - Use this to schedule check commands and jobs in conjunction with for instance passive monitoring through NSCA
Scheduler = 0
; SMTPClient - SMTP client can be used both from command line and from queries to check remote systes via SMTP
SMTPClient = 0
; NRPEClient - NRPE client can be used both from command line and from queries to check remote systes via NRPE as well as configure the NRPE server
NRPEClient = 0
; GraphiteClient - Graphite client can be used to submit graph data to a graphite graphing system
GraphiteClient = 0
; WEBServer - A server that listens for incoming HTTP connection and processes incoming requests. It provides both a WEB UI as well as a REST API in addition to simplifying configuration of WEB Server module.
WEBServer = 0
; CheckExternalScripts - Execute external scripts
CheckExternalScripts = 0
; CheckSystem - Various system related checks, such as CPU load, process state, service state memory usage and PDH counters.
CheckSystem = 0
; SimpleCache - Stores status updates and allows for active checks to retrieve them
SimpleCache = 0
; CheckEventLog - Check for errors and warnings in the event log.
CheckEventLog = 0
; CheckWMI - Check status via WMI
CheckWMI = 0
; CommandClient - A command line client, generally not used except with "nscp test".
CommandClient = 0I was missing an nsclient/server section entirely! (I think this is what you're missing as well)
Code: Select all
; Section for NSClient (NSClientServer.dll) (check_nt) protocol options.
[/settings/NSClient/server]
; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled.
use ssl = 0
; PERFORMANCE DATA - Send performance data back to Nagios (set this to 0 to remove all performance data).
performance data = 1
; PORT NUMBER - Port to use for check_nt.
port = 12489And finally the nrpe server section:
Code: Select all
; Section for NRPE (NRPEServer.dll) (check_nrpe) protocol options.
[/settings/NRPE/server]
; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled.
use ssl = 1
; ALLOW INSECURE CHIPHERS and ENCRYPTION - Only enable this if you are using legacy check_nrpe client.
insecure = 0
; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow nasty characters = 0
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = 1
; PORT NUMBER - Port to use for NRPE.
port = 5666
; EXTENDED RESPONSE - Send more then 1 return packet to allow response to go beyond payload size (requires modified client if legacy is true this defaults to false).
extended response = 1