Nagios ESXi hardware check

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
alceryes
Posts: 41
Joined: Wed Sep 28, 2011 11:05 am

Nagios ESXi hardware check

Post by alceryes »

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?
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Nagios ESXi hardware check

Post by jsmurphy »

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.
Locked