Failed to execute check_explorer: 2: The system cannot find

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:

Failed to execute check_explorer: 2: The system cannot find

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

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

Post by kwhogster »

I fixed this you can lock this now

Was missing check_winprocess.exe in the scripts folder
kyang

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

Post 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!
Locked