Hello,
I have the following issue, I just cant pass arguments from my nagios server to nsclient. I tried every post that I found about this but does not work for me. I’m using nsclient 0.4.2.93 usin the on nsc.ini file. In nsclient log it said 2015-03-27 07:23:19: error:D:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:440: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
[/settings/NRPE/server]
verify mode=none
insecure=true
[modules]
CheckExternalScripts.dll=1
CheckHelpers.dll=1
CheckEventLog.dll=1
CheckNSCP.dll=1
CheckDisk.dll=1
CheckSystem.dll=1
NRPEListener.dll=1
allow arguments = true
[Settings]
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
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
use_ssl=1
allow arguments = true
allow_arguments=1
allow_nasty_meta_chars=1
[NRPE]
;# NRPE PORT NUMBER
; This is the port the NRPEListener.dll will listen to.
port=15696
allow_arguments=1
allow_nasty_meta_chars=1
[External Scripts]
;check_updates=cscript.exe //NoLogo //T:40 scripts\check_windows_updates.wsf
check_carbonite=cscript.exe //NoLogo scripts\check_carbonite.vbs
;check_mdaemon_connections=scripts\check_mdaemon_connections.exe -w 10 -c 20
;check_mdaemon_queues=cscript.exe //NoLogo scripts\check_mdaemon_queues.vbs 10 20
check_backupexec_run=scripts/check_be.exe "C:\Program Files\Symantec\Backup Exec\Data\" "JOBNAME" -w1 -c3
check_ntbackup_active=cscript.exe //NoLogo scripts\check_ntbackup_active.vbs
check_updates=cscript.exe //T:30 //NoLogo scripts\nm-check-available-updates.vbs
<strong>runcmd=scripts\cmd.bat "$ARG1$"</strong>
allow_arguments=1
allow_nasty_meta_chars=1
[External Alias]
check_main_disks=checkDriveSize MinWarnFree=10% MinCritFree=5% Drive=C Drive=E
check_backup_disks=checkDriveSize MinWarnFree=10% MinCritFree=5% Drive=F Drive=G
check_services=checkServiceState LogMeIn=started DNS=started Spooler=started
check_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s
check_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical
check_alive=checkOk
I’ve tried with allow arguments = true as well.