#539 closed defect (fixed)
UNKNOWN: No handler for that command.
| Reported by: | Remc0 | Owned by: | mickem |
|---|---|---|---|
| Priority: | 1 | Milestone: | 0.4.1 |
| Component: | CheckExternalScripts | Version: | 0.4.0 |
| Severity: | Bugs | Keywords: | |
| Cc: |
Description
Hi Michael,
We are upgrading our NT domain to a Windows 2008 R2 domain, so it is also time to upgrade our nsclients to the newest 0.4.x version. But testing with that I ran into some problems.
I have some counters I want to check so I set them up like this:
Btw; those counters work in the 0.3.9 version.
[/settings/external scripts/alias] COUNTER_CONTEXT_SWITCHES=inject checkCounter ShowAll "Counter:ContextSwitches=\System\Context Switches/sec" ShowAll MaxWarn=35000 MaxCrit=45000 COUNTER_PAGES=inject checkCounter ShowAll "Counter:Memory pages/sec=\Memory\Pages/sec" MaxWarn=300 MaxCrit=500 PROC_QUEU_LENGTH=inject checkCounter ShowAll "Counter:Processor queu length/sec=\System\Processor Queue Length" MaxWarn=10 MaxCrit=15 CHECKTASKS=inject CheckTaskSched "filter=exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" warn=>0
But when I run them I get these errors in the logfile:
2012-06-21 15:41:57: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:148: Failed to query performance counters: \238(_total)\6: PdhGetFormattedCounterValue failed {format: 1024}: -2147481642: A counter with a negative denominator value was detected.
2012-06-21 15:41:59: e:..\..\..\..\trunk\include\nscapi\nscapi_core_wrapper.cpp:181: No handler for command 'COUNTER_CONTEXT_SWITCHES'.
2012-06-21 15:42:00: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:148: Failed to query performance counters: \238(_total)\6: PdhGetFormattedCounterValue failed {format: 1024}: -2147481642: A counter with a negative denominator value was detected.
When I look further up in the log, I can see this at initialisation:
2012-06-21 15:41:17: e:d:\source\nscp\trunk\modules\checkexternalscripts\commands.hpp:91: Failed to parse arguments for command 'COUNTER_CONTEXT_SWITCHES', using old split string method: unknown escape sequence: inject checkCounter ShowAll "Counter:ContextSwitches=\System\Context Switches/sec" ShowAll MaxWarn=35000 MaxCrit=45000 2012-06-21 15:41:17: e:d:\source\nscp\trunk\modules\checkexternalscripts\commands.hpp:91: Failed to parse arguments for command 'COUNTER_PAGES', using old split string method: unknown escape sequence: inject checkCounter ShowAll "Counter:Memory pages/sec=\Memory\Pages/sec" MaxWarn=300 MaxCrit=500 2012-06-21 15:41:17: e:d:\source\nscp\trunk\modules\checkexternalscripts\commands.hpp:91: Failed to parse arguments for command 'PROC_QUEU_LENGTH', using old split string method: unknown escape sequence: inject checkCounter ShowAll "Counter:Processor queu length/sec=\System\Processor Queue Length" MaxWarn=10 MaxCrit=15
So it's about the \ escaping character. Could you allow this, or give me an option how I can use the \ character?
Change History (7)
comment:1 Changed 11 months ago by mickem
comment:2 Changed 11 months ago by Remc0
I changed it, but no luck.
CHECKTASKS=CheckTaskSched "filter=exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" warn=>0
And under modules I have:
; CheckTaskSched - CheckTaskSched can check various file and disk related things. The current version has commands to check Size of hard drives and directories. CheckTaskSched = 1
Error generated in the log file
2012-06-25 09:18:44: e:..\..\..\..\trunk\include\nscapi\nscapi_core_wrapper.cpp:181: No handler for command 'CHECKTASKS'.
2012-06-25 09:18:45: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:148: Failed to query performance counters: \238(_total)\6: PdhGetFormattedCounterValue failed {format: 1024}: -2147481642: A counter with a negative denominator value was detected.
2012-06-25 09:18:47: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:148: Failed to query performance counters: \238(_total)\6: PdhGetFormattedCounterValue failed {format: 1024}: -2147481642: A counter with a negative denominator value was detected.
Do you have any more ideas/suggestions?
comment:3 Changed 11 months ago by mickem
Humm...
Could you paste the full config?
It sounds to me that everything is correctly setup so maybe a bug somewhere?
comment:4 Changed 11 months ago by Remc0
Hereby the complete .ini
; Undocumented section
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
[/modules]
; CheckDisk - CheckDisk can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
CheckDisk = 1
; Event log Checker. - Check for errors and warnings in the event log. This is only supported through NRPE so if you plan to use only NSClient this wont help you at all.
CheckEventLog = 1
; Check External Scripts - A simple wrapper to run external scripts and batch files.
CheckExternalScripts = 1
; Helper function - Various helper function to extend other checks. This is also only supported through NRPE.
CheckHelpers = 1
; Check NSCP - Checkes the state of the agent
CheckNSCP = 1
; CheckSystem - Various system related checks, such as CPU load, process state, service state memory usage and PDH counters.
CheckSystem = 1
; CheckTaskSched - CheckTaskSched can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
CheckTaskSched = 0
; CheckTaskSched2 - CheckTaskSched2 can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
CheckTaskSched2 = 0
; CheckWMI - CheckWMI can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
CheckWMI = 1
; NSCAClient (without encryption support) - Graphite client
GraphiteClient = 0
; LUAScript - LUAScript...
LUAScript = 0
; NRPE client (w/ SSL) - A simple client for checking remote NRPE servers (think proxy).
NRPEClient = 0
; NRPE server - A simple server that listens for incoming NRPE connection and handles them. NRPE is preferred over NSClient as it is more flexible. You can of cource use both NSClient and NRPE.
NRPEServer = 1
; NSCAClient - Passive check support (needs NSCA on nagios server). Avalible crypto are: {0=No Encryption (not safe), 1=XOR, 2=DES, 3=DES-EDE3, 4=CAST-128, 6=XTEA, 8=Blowfish, 9=Twofish, 11=RC2, 14=AES, 15=AES, 16=AES, 20=Serpent, 23=GOST}
NSCAClient = 0
; NSCA server (w/ encryption) - A simple server that listens for incoming NSCA connection and handles them. Avalible crypto are: {0=No Encryption (not safe), 1=XOR, 2=DES, 3=DES-EDE3, 4=CAST-128, 6=XTEA, 8=Blowfish, 9=Twofish, 11=RC2, 14=AES, 15=AES, 16=AES, 20=Serpent, 23=GOST}
NSCAServer = 0
; NSClient server - A simple server that listens for incoming NSClient (check_nt) connection and handles them. Although NRPE is the preferred method NSClient is fully supported and can be used for simplicity or for compatibility.
NSClientServer = 1
; SMTPClient - Passive check support via SMTP
SMTPClient = 0
; Scheduler - A scheduler which schedules checks at regular intervals
Scheduler = 0
; SyslogClient - Passive check support via Syslog
SyslogClient = 0
; Undocumented section
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
[/settings/default]
; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default
allowed hosts = 192.168.50.44
; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default
bind to =
; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default
cache allowed hosts = true
; SSL CERTIFICATE - Configure which SSL certificate to use (DH key) Parent element can be found under: /settings/default
certificate = ${certificate-path}/nrpe_dh_512.pem
; INBOX - The default channel to post incoming messages on Parent element can be found under: /settings/default
inbox = inbox
; PASSWORD - Password used to authenticate againast server Parent element can be found under: /settings/default
password =
; LISTEN QUEUE - Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. Parent element can be found under: /settings/default
socket queue size = 0
; THREAD POOL - Parent element can be found under: /settings/default
thread pool = 10
; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default
timeout = 30
; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled. Parent element can be found under: /settings/default
use ssl = true
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for NRPE (NRPEListener.dll) (check_nrpe) protocol options.
[/settings/NRPE/server]
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true
; 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 = true
; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default
allowed hosts = 192.168.50.44
; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default
cache allowed hosts = true
; SSL CERTIFICATE - Configure which SSL certificate to use (DH key) Parent element can be found under: /settings/default
certificate = ${certificate-path}/nrpe_dh_512.pem
; PORT NUMBER - Port to use for NRPE.
port = 5666
; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default
timeout = 30
; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled. Parent element can be found under: /settings/default
use ssl = true
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for NSClient (NSClientServer.dll) (check_nt) protocol options.
[/settings/NSClient/server]
; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default/socket
allowed hosts = 192.168.50.44
; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default/socket
bind to =
; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default/socket
cache allowed hosts = true
; PASSWORD - Password used to authenticate againast server Parent element can be found under: /settings/default
password =
; PERFORMANCE DATA - Send performance data back to nagios (set this to 0 to remove all performance data).
performance data = true
; PORT NUMBER - Port to use for check_nt.
port = 1248
; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default/socket
timeout = 30
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for system checks and system settings
[/settings/check/system/windows]
; DEFAULT COUNTERS - Load the default counters: cpu, memory commit bytes, memory commit limit and uptime If not you need to specify these manually.
default = true
; DEFAULT INTERVALL - Used to define the default intervall for range buffer checks (ie. CPU).
default buffer length = 1h
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Confiure which services has to be in which state
[/settings/check/system/windows/service mapping]
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Configure crash handling properties.
[/settings/crash]
; ARCHIVE CRASHREPORTS - Archive crash reports in the archive folder
archive = true
; folder - The archive folder for crash dunpes.
archive folder = ${shared-path}/crash-dumps
; RESTART - Submit crash reports to nsclient.org (or your configured submission server)
restart = true
; RESTART SERVICE NAME - The url to submit crash reports to
restart target = NSClientpp
; SUBMIT CRASHREPORTS - Submit crash reports to nsclient.org (or your configured submission server)
submit = false
; SUBMISSION URL - The url to submit crash reports to
submit url = http://crash.nsclient.org/submit
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for the EventLog Checker (CheckEventLog.dll).
[/settings/eventlog]
; BUFFER_SIZE - The size of the buffer to use when getting messages this affects the speed and maximum size of messages you can recieve.
buffer size = 131072
; DEBUG - Log more information when filtering (usefull to detect issues with filters) not usefull in production as it is a bit of a resource hog.
debug = false
; LOOKUP NAMES - Lookup the names of eventlog files
lookup names = true
; SYNTAX - Set this to use a specific syntax string for all commands (that don't specify one).
syntax =
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; A set of options to configure the real time checks
[/settings/eventlog/real-time]
; ALIAS - The alias to use for this event (in NSCA this constitutes the service name).
alias = eventlog
; DEBUG - Log missed records (usefull to detect issues with filters) not usefull in production as it is a bit of a resource hog.
debug = false
; DESTINATION - The destination for intercepted messages
destination = NSCA
; ENABLE ACTIVE MONITORING - This will store all matches so you can use real-time filters from active monitoring (use CheckEventlogCache).
enable active = false
; REAL TIME CHECKING - Spawns a backgrounnd thread which detects issues and reports them back instantly.
enabled = false
; STARTUP AGE - The initial age to scan when starting NSClient++
filter =
; MESSAGE LANGUAGE - The language to use for rendering message (mainly used fror testing)
language =
; LOGS TO CHECK - Coma separated list of logs to check
log = application
; MAGIMUM AGE - How long before reporting "ok" (if this is set to off no ok will be reported only errors)
maximum age = 5m
; OK MESSAGE - This is the message sent periodically whenever no error is discovered.
ok message = eventlog found no records
; STARTUP AGE - The initial age to scan when starting NSClient++
startup age = 30m
; STARTUP AGE - The initial age to scan when starting NSClient++
syntax = %type% %source%: %message%
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; A set of filters to use in real-time mode
[/settings/eventlog/real-time/filters]
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for external scripts configuration options (CheckExternalScripts).
[/settings/external scripts]
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true
; 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 = true
; SCRIPT DIRECTORY - Load all scripts in a directory and use them as commands. Probably dangerous but useful if you have loads of scripts :)
script path = /scripts
; COMMAND TIMEOUT - The maximum time in seconds that a command can execute. (if more then this execution will be aborted). NOTICE this only affects external commands not internal ones.
timeout = 60
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; A list of aliases available. An alias is an internal command that has been "wrapped" (to add arguments). Be careful so you don't create loops (ie check_loop=check_a, check_a=check_loop)
[/settings/external scripts/alias]
CPULOAD=inject checkCpu ShowAll=long warn=80 crit=95 10 20 60
USEDDISKSPACE=inject CheckDriveSize ShowAll=long CheckAll MaxWarn=70% MaxCrit=80%
UPTIME=inject checkUpTime nsclient
SERVICESTATE=inject checkServiceState ShowAll nsclientpp
PROCSTATE=inject checkProcState ShowAll winlogon.exe
MEMUSE_PAGE=inject checkMem MaxWarn=80% MaxCrit=90% ShowAll
MEMUSE_PHYSICAL=inject checkMem type=physical MaxWarn=80% MaxCrit=90% ShowAll
COUNTER_PAGEFILE=inject checkCounter ShowAll "Counter:PagingFile=\Paging File(_Total)\% Usage" MaxWarn=80% MaxCrit=95%
COUNTER_PROCESSOR_USAGE=inject checkCounter ShowAll "Counter:ProcessorUsage=\Processor(_Total)\% Processor Time" MaxWarn=80% MaxCrit=95%
check_vbs_services=cscript.exe //T:30 //NoLogo scripts\services.vbs
;CHECKTASKS=inject CheckTaskSched "filter=exit_code ne 0" "syntax=%title%: %exit_code%" warn=>0
CHECKTASKS=inject CheckTaskSched "filter=exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" warn=>0
COUNTER_CONTEXT_SWITCHES=inject checkCounter ShowAll "Counter:ContextSwitches=\System\Context Switches/sec" ShowAll MaxWarn=35000 MaxCrit=45000
COUNTER_PAGES=inject checkCounter ShowAll "Counter:Memory pages/sec=\Memory\Pages/sec" MaxWarn=300 MaxCrit=500
PROC_QUEU_LENGTH=inject checkCounter ShowAll "Counter:Processor queu length/sec=\System\Processor Queue Length" MaxWarn=10 MaxCrit=15
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; A list of scripts available to run from the CheckExternalScripts module. Syntax is: <command>=<script> <arguments>
[/settings/external scripts/scripts]
check_powershell_backup_acronis=cmd /c echo scripts\check_backup_acronis.ps1 | powershell.exe -command -
check_powershell_backup_servicedesk=cmd /c echo scripts\check_backup_servicedesk.ps1 | powershell.exe -command -
check_powershell_backup_systemstate=cmd /c echo scripts\check_backup_systemstate.ps1 | powershell.exe -command -
check_powershell_mcafee_dat_age=cmd /c echo scripts\check_mcafee_dat_age.ps1 | powershell.exe -command -
check_powershell_mcafee_update_age=cmd /c echo scripts\check_mcafee_update_age.ps1 | powershell.exe -command -
check_powershell_veeam_linux_disk=cmd /c echo scripts\check_veeam_linux_disk.ps1 | powershell.exe -command -
check_powershell_veeam_linux_iscsi=cmd /c echo scripts\check_veeam_linux_iscsi.ps1 | powershell.exe -command -
check_powershell_veeam_windows_disk=cmd /c echo scripts\check_veeam_windows_disk.ps1 | powershell.exe -command -
check_powershell_veeam_windows_disk_dmz=cmd /c echo scripts\check_veeam_windows_disk_dmz.ps1 | powershell.exe -command -
check_powershell_be_veeam_daily=cmd /c echo scripts\check_be_veeam_daily.ps1 | powershell.exe -command -
check_powershell_be_inventory_device=cmd /c echo scripts\check_be_inventory_device.ps1 | powershell.exe -command -
check_powershell_be_linux_diffs=cmd /c echo scripts\check_be_linux_diffs.ps1 | powershell.exe -command -
check_powershell_be_ln_diff=cmd /c echo scripts\check_be_ln_diff.ps1 | powershell.exe -command -
check_powershell_be_ln_diff_dup=cmd /c echo scripts\check_be_ln_diff_dup.ps1 | powershell.exe -command -
check_powershell_be_zorgpas_diff=cmd /c echo scripts\check_be_zorgpas_diff.ps1 | powershell.exe -command -
check_powershell_be_AZV-FS01_Full=cmd /c echo scripts\check_be_AZV-FS01_Full.ps1 | powershell.exe -command -
check_powershell_be_AZV-FS01_Diff=cmd /c echo scripts\check_be_AZV-FS01_Diff.ps1 | powershell.exe -command -
check_powershell_be_sql_dwprod_Diff_dup=cmd /c echo scripts\check_be_sql_dwprod_Diff_dup.ps1 | powershell.exe -command -
check_powershell_be_sql_dwprod_Diff=cmd /c echo scripts\check_be_sql_dwprod_Diff.ps1 | powershell.exe -command -
check_powershell_be_sql_vcenter_Diff_dup=cmd /c echo scripts\check_be_sql_vcenter_Diff_dup.ps1 | powershell.exe -command -
check_powershell_be_sql_vcenter_Diff=cmd /c echo scripts\check_be_sql_vcenter_Diff.ps1 | powershell.exe -command -
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; A list of wrappped scripts (ie. using the template mechanism)
[/settings/external scripts/wrapped scripts]
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; A list of templates for wrapped scripts
[/settings/external scripts/wrappings]
; BATCH FILE WRAPPING -
bat = scripts\\%SCRIPT% %ARGS%
; POWERSHELL WRAPPING -
ps1 = cmd /c echo scripts\\%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command -
; VISUAL BASIC WRAPPING -
vbs = cscript.exe //T:30 //NoLogo scripts\\lib\\wrapper.vbs %SCRIPT% %ARGS%
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for configuring the log handling.
[/settings/log]
; DATEMASK - The size of the buffer to use when getting messages this affects the speed and maximum size of messages you can recieve.
date format = %Y-%m-%d %H:%M:%S
; FILENAME - The file to write log data to. Set this to none to disable log to file.
file name = ${exe-path}/nsclient.log
; LOG LEVEL - Log level to use. Avalible levels are error,warning,info,debug,trace
level = debug
;level = info
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Configure log file properties.
[/settings/log/file]
; MAXIMUM FILE SIZE - When file size reaches this it will be truncated to 50% if set to 0 (default) truncation will be disabled
max size = 0
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for configuring the shared session.
[/settings/shared session]
; LOG LEVEL - Log level to use
enabled = true
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; A list of avalible remote target systems
[/settings/targets]
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for NRPE active/passive check module.
[/settings/NRPE/client]
; CHANNEL - The channel to listen to.
channel = NRPE
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Target definition for: default
[/settings/NRPE/client/targets/default]
; TARGET ADDRESS - Target host address
address =
; SSL CERTIFICATE -
certificate = ${certificate-path}/nrpe_dh_512.pem
; PAYLOAD LENGTH - Length of payload to/from the NRPE agent. This is a hard specific value so you have to "configure" (read recompile) your NRPE agent to use the same value for it to work.
payload length = 1024
; TIMEOUT - Timeout when reading/writing packets to/from sockets.
timeout = 30
; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled.
use ssl = true
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for NSCA passive check module.
[/settings/NSCA/client]
; CHANNEL - The channel to listen to.
channel = NSCA
; HOSTNAME - The host name of this host if set to blank (default) the windows name of the computer will be used.
hostname = auto
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Target definition for: default
[/settings/NSCA/client/targets/default]
; TARGET ADDRESS - Target host address
address =
; ENCRYPTION METHOD - Number corresponding to the various encryption algorithms (see the wiki). Has to be the same as the server or it wont work at all.
encryption = aes
; PASSWORD - The password to use. Again has to be the same as the server or it wont work at all.
password =
; TIMEOUT - Timeout when reading/writing packets to/from sockets.
timeout = 30
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for NSCA (NSCAServer) (check_nsca) protocol options.
[/settings/NSCA/server]
; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default
allowed hosts = 127.0.0.1
; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default
bind to =
; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default
cache allowed hosts = true
; ENCRYPTION - Encryption to use
encryption = aes
; INBOX - The default channel to post incoming messages on Parent element can be found under: /settings/default
inbox = inbox
; PASSWORD - Password to use
password =
; PAYLOAD LENGTH - Length of payload to/from the NSCA agent. This is a hard specific value so you have to "configure" (read recompile) your NSCA agent to use the same value for it to work.
payload length = 512
; PERFORMANCE DATA - Send performance data back to nagios (set this to 0 to remove all performance data).
performance data = true
; PORT NUMBER - Port to use for NSCA.
port = 5667
; LISTEN QUEUE - Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. Parent element can be found under: /settings/default
socket queue size = 0
; THREAD POOL - Parent element can be found under: /settings/default
thread pool = 10
; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default
timeout = 30
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for SMTP passive check module.
[/settings/SMTP/client]
; CHANNEL - The channel to listen to.
channel = SMTP
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Target definition for: default
[/settings/SMTP/client/targets/default]
; TARGET ADDRESS - Target host address
address =
; RECIPIENT - Recipient of email message
recipient = nscp@localhost
; SENDER - Sender of email message
sender = nscp@localhost
; TEMPLATE - Template for message data
template = Hello, this is %source% reporting %message%!
; TIMEOUT - Timeout when reading/writing packets to/from sockets.
timeout = 30
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for system checks and system settings
[/settings/check/task schedule]
; SYNTAX - Set this to use a specific syntax string for all commands (that don't specify one)
default buffer length = %title% last run: %most-recent-run-time% (%exit-code%)
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for graphite passive check module.
[/settings/graphite/client]
; CHANNEL - The channel to listen to.
channel = GRAPHITE
; HOSTNAME - The host name of this host if set to blank (default) the windows name of the computer will be used.
hostname = auto
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Target definition for: default
[/settings/graphite/client/targets/default]
; TARGET ADDRESS - Target host address
address =
; PATH FOR VALUES -
path = system.${hostname}.${check_alias}.${perf_alias}
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for the LUAScripts module.
[/settings/lua]
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; A list of scripts available to run from the LuaSCript module.
[/settings/lua/scripts]
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for the Scheduler module.
[/settings/scheduler]
; THREAD COUNT - Number of threads to use.
threads = 5
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for the Scheduler module.
[/settings/scheduler/schedules]
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Section for SYSLOG passive check module.
[/settings/syslog/client]
; CHANNEL - The channel to listen to.
channel = syslog
; HOSTNAME - The host name of this host if set to blank (default) the windows name of the computer will be used.
hostname =
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
; Target definition for: default
[/settings/syslog/client/targets/default]
; TARGET ADDRESS - Target host address
address =
; TODO -
critical severity = critical
; TODO -
facility = kernel
; TODO -
message_syntax = %message%
; TODO -
ok severity = informational
; TODO -
severity = error
; TODO -
tag_syntax = NSCA
; TODO -
unknown severity = emergency
; TODO -
warning severity = warning
;*************************************************************************************************************************************************************************
;*************************************************************************************************************************************************************************
[/settings/default/socket]
; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default/socket
allowed hosts = 127.0.0.1
; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default/socket
bind to =
; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default/socket
cache allowed hosts = true
; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default/socket
timeout = 30
comment:5 Changed 11 months ago by mickem
- Milestone set to 0.4.0
comment:6 Changed 9 months ago by mickem
- Milestone changed from 0.4.0 to 0.4.1
- Resolution set to fixed
- Status changed from new to closed
I think this was due to case insensetive issues added in 0.4.0 which ahs been fixed in 0.4.1
comment:7 Changed 9 months ago by Remc0
Tested it with 0.4.1.57 and the issue is indeed fixed.
Thanks Michael!









My guess is the problem is the very old "inject" keyword which has been migrate to the newer format which is causing the problem.'
The \ failure has a fall back so it will parse it in the old way.
But it should be key=command not key=inject command...
(So this should not work in 0.3.9 either unless by misstake)
Michael Medin