Windows 10 Pro
NSclient 4.4.19
Trying to get this to work on my Windows 10 Pro found this here https://outsideit.net/monitoring-windows-updates/
Have it working on a Window 7 Pro and a Windows 2012 R2 server so far
I have other check_nrpe services defined for this computer that work fine.
The nsclient log is complaining about the allowed arguments. not sure where
TGKW001 WSUS Notifications for this service have been disabled UNKNOWN 02-21-2017 22:36:30 0d 0h 56m 17s 3/3 Arguments not allowed see nsclient.log for details
My nsclient log shows this
2017-02-21 21:49:02: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 21:51:02: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 21:53:02: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 21:56:29: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 22:06:29: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 22:16:29: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 22:26:30: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 22:36:30: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
My command
Code: Select all
define command{
command_name check_ms_win_updates2
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c check_ms_win_updates -a '-wd 45 -cd 90 -M PSWindowsUpdate'
}
Code: Select all
define service{
use generic-service
host_name TGKW001
service_description WSUS
check_command check_ms_win_updates2
servicegroups Windows Updates
}
Code: Select all
; Section for external scripts configuration options (CheckExternalScripts).
[/settings/external 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
; 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 = 0
allow arguments = 1
TGKW001 WSUS Notifications for this service have been disabled UNKNOWN 02-21-2017 22:59:00 0d 1h 12m 50s 3/3 CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
The latest nsclient log entries after that change
2017-02-21 22:46:30: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 22:56:30: error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:451: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2017-02-21 22:58:30: error:c:\source\nscp\include\socket/connection.hpp:149: Failed to send data: The file handle supplied is not valid
2017-02-21 23:00:00: error:c:\source\nscp\include\socket/connection.hpp:149: Failed to send data: The file handle supplied is not valid
Something not correct in my nsclient ini ??????
Thoughts?
Thanks
Tom