Re: The CPU_Load.XML error in PNP4Nagiosxi
Posted: Wed Jan 06, 2016 10:33 am
Can you post your nsclient configuration file for us to take a look at?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
[modules]
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
SysTray.dll
CheckEventLog.dll
CheckHelpers.dll
CheckExternalScripts.dll
NRPEClient.dll
CheckTaskSched.dll
[Settings]
; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.
;password=nagios
;# ALLOWED HOST ADDRESSES
allowed_hosts=10.1.192.0/24
;# USE THIS FILE
use_file=1
; # USE SHARED MEMORY CHANNELS
[log]
;debug=1
;# LOG FILE
;file=nsclient.log
;
;# LOG DATE MASK
;date_mask=%Y-%m-%d %H:%M:%S
;# LOG ROOT FOLDER
;root_folder=exe
[NSClient]
;# ALLOWED HOST ADDRESSES
;allowed_hosts=
;# NSCLIENT PORT NUMBER
port=12489
;# BIND TO ADDRESS
;bind_to_address=
;# SOCKET TIMEOUT
;socket_timeout=30
[NRPE]
;# NRPE PORT NUMBER
;port=5666
;# COMMAND TIMEOUT
;command_timeout=60
;# COMMAND ARGUMENT PROCESSING
;allow_arguments=0
;# COMMAND ALLOW NASTY META CHARS
;allow_nasty_meta_chars=0
;# USE SSL SOCKET
;use_ssl=1
;
;# BIND TO ADDRESS
; bind_to_address=
;# ALLOWED HOST ADDRESSES
;allowed_hosts=
;
;# SCRIPT DIRECTORY
;script_dir=scripts\
;
;# SOCKET TIMEOUT
;socket_timeout=30
[Check System]
;# CPU BUFFER SIZE
;CPUBufferSize=1h
;
;# CHECK RESOLUTION
;CheckResolution=10
;
;# CHECK ALL SERVICES
;check_all_services[SERVICE_BOOT_START]=ignored
;check_all_services[SERVICE_SYSTEM_START]=ignored
;check_all_services[SERVICE_AUTO_START]=started
;check_all_services[SERVICE_DEMAND_START]=ignored
;check_all_services[SERVICE_DISABLED]=stopped
[External Script]
;# COMMAND TIMEOUT
;command_timeout=60
;
;# COMMAND ARGUMENT PROCESSING
;allow_arguments=0
;
;# COMMAND ALLOW NASTY META CHARS
;allow_nasty_meta_chars=0
;
;# COMMAND ALLOW NASTY META CHARS
;script_dir=c:\my\script\dir
[External Scripts]
;check_es_long=scripts\long.bat
;check_es_ok=scripts\ok.bat
;check_es_nok=scripts\nok.bat
;check_vbs_sample=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs
;check_powershell_warn=cmd /c echo scripts\powershell.ps1 | powershell.exe -command -
[External Alias]
;alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s
;alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED
;alias_service=checkServiceState CheckAll
;alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical
;alias_event_log=CheckEventLog file=application file=system filter=new filter=out MaxWarn=1 MaxCrit=1 filter-generated=>2d filter-severity==success filter-severity==informational truncate=1023 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"
; [includes]
; myotherfile.ini
; real.ini
[NSCA Agent]
;interval=5
; Values:
; 0 = None (Do NOT use this option)
; 1 = Simple XOR (No security, just obfuscation, but very fast)
; 2 = DES
; 3 = 3DES (Triple DES)
; 4 = CAST-128
; 6 = xTEA
; 8 = BLOWFISH
; 9 = TWOFISH
; 11 = RC2
; 14 = RIJNDAEL-128 (AES)
; 20 = SERPENT
;encryption_method=14
;
;# ENCRYPTION PASSWORD
;password=
;
;# BIND TO ADDRESS
;bind_to_address=
;
;# LOCAL HOST NAME
;hostname=
;
;# NAGIOS SERVER ADDRESS
;nsca_host=192.168.0.1
;
;# NAGIOS SERVER PORT
;nsca_port=5667
;
;# CHECK COMMAND LIST
[NSCA Commands]
;my_cpu_check=checkCPU warn=80 crit=90 time=20m time=10s time=4
;my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page
;my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService
;host_check=check_ok
[NRPE Handlers]
;command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
;test=c:\test.bat foo $ARG1$ bar
;check_disk1=/usr/local/nagios/libexec/check_disk -w 5 -c 10
;check_cpu=inject checkCPU warn=80 crit=90 5 10 15
;check_eventlog=inject CheckEventLog Application warn.require.eventType=error warn.require.eventType=warning critical.require.eventType=error critical.exclude.eventType=info truncate=1024 descriptions
;check_disk_c=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:WIN=c:\ATI\*.*
;# But be careful:
; dont_check=inject dont_check This will "loop forever" so be careful with the inject command...
;# Check some escapings...
; check_escape=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M "File: foo \" WIN=c:\\WINDOWS\\*.*"
;# Some real world samples
;nrpe_cpu=inject checkCPU warn=80 crit=90 5 10 15
;nrpe_ok=scripts\ok.bat
;check_multi_line=scripts\multi_line.bat
;#
;# The sample scripts
;#
;check_long=scripts\long.bat
;check_ok=scripts\ok.bat
;check_nok=scripts\xlong.bat
;check_vbs=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs
;# REMOTE NRPE PROXY COMMANDS
; A list of commands that check other hosts.
; Used by the NRPECLient module
[NRPE Client Handlers]
check_other=-H 192.168.0.1 -p 5666 -c remote_command -a arguments
;# LUA SCRIPT SECTION
; A list of all Lua scripts to load.
;[LUA Scripts]
;scripts\test.luaThis line should read port=12489, can you adjust it as needed and restart your NSClient++ service? Once that is done, force check your services and let us know the result.[NSClient]
;# NSCLIENT PORT NUMBER
; This is the port the NSClientListener.dll will listen to.
port=1248
;