Ubuntu 11.10/Nagios 3.3.1
I'm trying to use this plugin - http://www.claudiokuenzler.com/nagios-p ... rdware.php, for esxi hardware checks. I have Python and the Python extension pywbem prerequisites installed.
Commands.cfg -
define command{
command_name check_esxi_hardware
command_line /usr/local/nagios/libexec/check_esxi_hardware -t 120 -H $HOSTADDRESS$ -U root -P {password} -V hp
}
Windows.cfg -
define service{
use generic-service
host_name G2-ESXi
service_description Check ESXi Hardware
check_command check_esxi_hardware
}
I'm getting a 'Return code of 127 is out of bounds...' message for this check though. Any suggestions?
Nagios ESXi hardware check
Re: Nagios ESXi hardware check
What happens when you run it from the command line? return code 127 is usually the symptom of one or two things: 1. The file permissions are wrong and Nagios can't execute it or 2. The script is failing to execute at all because it can't find the file or OS dependencies for executing it.