This is what I am using now:
[modules]
;# NSCLIENT++ MODULES
;# A list with DLLs to load at startup.
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NRPEListener.dll
;SysTray.dll
CheckEventLog.dll
CheckHelpers.dll
;CheckWMI.dll
[Settings]
allowed_hosts=
;# USE THIS FILE
; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1
; the registry will be used instead.
use_file=1
[log]
;# LOG DEBUG
; Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test)
;debug=1
;# LOG FILE
; The file to print log statements to
file=opsview-agent.log
[NSClient]
;
[Check System]
;# CPU BUFFER SIZE
; Can be anything ranging from 1s (for 1 second) to 10w for 10 weeks. Notice that a larger buffer will waste memory
; so don’t use a larger buffer then you need (ie. the longest check you do +1).
;CPUBufferSize=1h
;# CHECK RESOLUTION
; The resolution to check values (currently only CPU).
; The value is entered in 1/10:th of a second and the default is 10 (which means ones every second)
;CheckResolution=10
[NRPE]
;# NRPE PORT NUMBER
; This is the port the NRPEListener.dll will listen to.
port=5666
;# COMMAND ARGUMENT PROCESSING
; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.
allow_arguments=1
;# COMMAND ALLOW NASTY META CHARS
; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><’"]{}) characters in arguments.
allow_nasty_meta_chars=1
;# USE SSL SOCKET
; This option controls if SSL should be used on the socket.
use_ssl=1
[Eventlog]
debug=0
buffer_size=512000
[NRPE Handlers]
; The old plugins we’ll deprecate
check_disk=scripts\deprecated\diskspace_nrpe_nt.exe $ARG1$
check_cpuload=scripts\deprecated\cpuload_nrpe_nt.exe $ARG1$
check_memload=scripts\deprecated\memload_nrpe_nt.exe $ARG1$
win_service=scripts\deprecated\service_nrpe_nt.exe $ARG1$
check_sysinfo=scripts\deprecated\check_sysinfo.exe
; The new NSClient++ checks
nsc_checkdrivesize=inject CheckDriveSize $ARG1$
nsc_checkfilesize=inject CheckFileSize $ARG1$
nsc_checkfile=inject CheckFile $ARG1$
nsc_checkeventlog=inject CheckEventLog $ARG1$
nsc_checkcpu=inject CheckCPU $ARG1$
nsc_checkuptime=inject CheckUpTime $ARG1$
nsc_checkservicestate=inject CheckServiceState $ARG1$
nsc_checkprocstate=inject CheckProcState $ARG1$
nsc_checkmem=inject CheckMem $ARG1$
nsc_checkcounter=inject CheckCounter $ARG1$
If you mean buffer_size anthing above 0, then no.
I haven’t tested what size is enough, but 512000 works for me.
If you set it at 1, the log will give the error again.
If you want, I’ll test different sizes.