The command returned an invalid return code 255

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

The command returned an invalid return code 255

Post by kwhogster »

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?
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: The command returned an invalid return code 255

Post by kwhogster »

Mark this as resolved.

perl510.dll missing was the error.

Restarted the server and it started working again.
kyang

Re: The command returned an invalid return code 255

Post by kyang »

Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!
Locked