The command returned an invalid return code 255
Posted: Fri Jan 05, 2018 8:22 pm
Nagios Core 4.3.4
Check Windows Temp Folder UNKNOWN 01-05-2018 20:02:27 0d 1h 31m 15s 3/3 The command (check_winfile) returned an invalid return code: 255
Explorer UNKNOWN 01-05-2018 20:07:00 0d 2h 14m 42s 3/3 The command (check_explorer) returned an invalid return code: 255
This is for a Windows 2016 DC server.
I have the same two checks on all my servers
Both were working until I applied an update today and restarted.
I restarted the nscp service several times no change
nsclient
; A list of scripts available to run from the CheckExternalScripts module. Syntax is: <command>=<script> <arguments>
[/settings/external scripts/scripts]
; Check Windows Temp Folder
check_winfile = scripts\\check_winfile.exe $ARG1$ $ARG2$ $ARG3$
; Check Windows Updates
Check_Updates = cscript.exe //T:30 //NoLogo scripts\\nm-check-available-updates.vbs
; Check Explorer
check_explorer = scripts\\check_winprocess.exe $ARG1$ $ARG2$ $ARG3$
Nagios cfg
define service {
host_name TGCS020-2016
service_description Check Windows Temp Folder
check_command check_winfile
servicegroups Windows Temp
check_interval 60
notification_interval 0
check_period backup_WIN16
notification_period backup_WIN16
use generic-service
}
define service{
use generic-service
host_name TGCS020-2016
service_description Explorer
servicegroups explorer
check_command check_nrpe!check_explorer! -a explorer.exe
check_period backup_WIN16
notification_period backup_WIN16
}
Any ideas?
Check Windows Temp Folder UNKNOWN 01-05-2018 20:02:27 0d 1h 31m 15s 3/3 The command (check_winfile) returned an invalid return code: 255
Explorer UNKNOWN 01-05-2018 20:07:00 0d 2h 14m 42s 3/3 The command (check_explorer) returned an invalid return code: 255
This is for a Windows 2016 DC server.
I have the same two checks on all my servers
Both were working until I applied an update today and restarted.
I restarted the nscp service several times no change
nsclient
; A list of scripts available to run from the CheckExternalScripts module. Syntax is: <command>=<script> <arguments>
[/settings/external scripts/scripts]
; Check Windows Temp Folder
check_winfile = scripts\\check_winfile.exe $ARG1$ $ARG2$ $ARG3$
; Check Windows Updates
Check_Updates = cscript.exe //T:30 //NoLogo scripts\\nm-check-available-updates.vbs
; Check Explorer
check_explorer = scripts\\check_winprocess.exe $ARG1$ $ARG2$ $ARG3$
Nagios cfg
define service {
host_name TGCS020-2016
service_description Check Windows Temp Folder
check_command check_winfile
servicegroups Windows Temp
check_interval 60
notification_interval 0
check_period backup_WIN16
notification_period backup_WIN16
use generic-service
}
define service{
use generic-service
host_name TGCS020-2016
service_description Explorer
servicegroups explorer
check_command check_nrpe!check_explorer! -a explorer.exe
check_period backup_WIN16
notification_period backup_WIN16
}
Any ideas?