John, this is not likely something that will be fixed per say, as it is working as intended, and we really do not want or cannot change some of the items that cause it to be issue prone due to potential vulnerabilities by doing so, and restrictions due to php. Otherwise your point is spot on that check_by_ssh does not work via the test command button due to many different reasons, testing via cli or immediate command execution is suggested instead.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
When on the vmware host, how long does the check plugin take to run? I see that you have the check_by_ssh currently only set to 20 seconds, might it be running longer than that?
time ./box293_check_vmware.pl --check Host_Memory_Usage --server 10.0.10.100 --host 10.0.10.20
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
I've reproduced your environment but I am unable to recreate the problem you are getting.
I ran up a VM with Ubuntu Linux 10.04.1 (server x64)
I installed nagios-plugins-1.4.15
I followed all the steps in the box293_check_vmware manual
I am able to execute the same check you are doing and it works as expected
I'm not sure what could be the problem.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.