Page 1 of 1

Failed to execute check_explorer: 2: The system cannot find

Posted: Sun Oct 01, 2017 5:56 pm
by kwhogster
Nagios Core 4.1
Windows 2012 R2 Server
Using NRPE checks

Failed to execute check_explorer: 2: The system cannot find the file specified.

from console

This one fails
root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -t 50 -H TGCS009-2012R2 -c check_explorer -a explorer.exe
Failed to execute check_explorer: 2: The system cannot find the file specified.|

This one works
root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -t 50 -H TGCS001-2012R2 -c check_explorer -a explorer.exe
PROCESS OK - 53 process(es)|'processes'=53

They both have the same nsclient.ini file
They both are VM's recently built
I have 20 other servers on Windows 2012 R2 and Windows 2008 they all work fine

[codedefine service{
use generic-service
host_name TGCS009-2012R2
service_description Explorer
servicegroups explorer
check_command check_nrpe!check_explorer! -a explorer.exe
check_period backup_WIN12P
notification_period backup_WIN12P
}
][/code]

My commands.cfg entry

Code: Select all

define command{
        command_name    check_explorer
        command_line    $USER1$/check_procs -c 1:30 -C explorer
}
I checked task manager on the server and explorer.exe is running

Any ideas on why on this Windows 2012 R2 only?

Thanks Tom :?:

Re: Failed to execute check_explorer: 2: The system cannot f

Posted: Sun Oct 01, 2017 9:16 pm
by kwhogster
I fixed this you can lock this now

Was missing check_winprocess.exe in the scripts folder

Re: Failed to execute check_explorer: 2: The system cannot f

Posted: Mon Oct 02, 2017 9:11 am
by kyang
Sounds great! I'll be closing this topic.

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

Thank you for using the Nagios Support Forum!