[TriLUG] Nagios: Problems with check_esx3.pl plugin

Roy Vestal rvestal at trilug.org
Tue Nov 9 16:02:58 EST 2010


Hey guys,
  I'm using the op5.org check_esx3.pl plugin for nagios. I have it on a 
test system running correctly. However, on the production system, it's 
failing. If I run the plugin (perl script) on the console as the nagios 
user, it works correctly.

Here's log and config info. Any help would be greatly appreciated.

--------------<nagios.log snip>-------------------

SERVICE ALERT: server ;CPU Usage;CRITICAL;SOFT;1;(null)
SERVICE ALERT: server ;Memory Usage;CRITICAL;SOFT;1;(null)

--------------</nagios.log snip>-------------------

Here's the plugin setup:

-----------------< commands.cfg snip>-----------------
# check vc cpu usage

define command{
         command_name check_vc_host_cpu_usage
         command_line $USER1$/check_esx3.pl -H $HOSTADDRESS$ -u $USER11$ 
-p $USER12$ -l cpu -s usage -w $ARG1$ -c $ARG2$
         }

# check vc mem usage

define command{
         command_name check_vc_host_mem_usage
         command_line $USER1$/check_esx3.pl -H $HOSTADDRESS$ -u $USER11$ 
-p $USER12$ -l mem -s usage -w $ARG1$ -c $ARG2$
         }

-----------------< /commands.cfg snip>-----------------

and here's the service call:

-----------------< services.cfg snip>-----------------


# Check SASU-ESX-15 MEM Usage

define service{
         use                     local-service
         host_name               server
         service_description     Memory Usage
         check_command           check_esx3_host_mem_usage!80!90
}
# Check SASU-ESX-16 CPU Usage

define service{
         use                     local-service
         host_name               server
         service_description     CPU Usage
         check_command           check_esx3_host_cpu_usage!80!90
}

-----------------< services.cfg snip>-----------------


-Roy


------------------------------------------
Roy Vestal
http://rpp.linuxmaniac.net

   .-.
   /v\    L   I   N   U   X
  // \\>Phear the Penguin<
/(   )\
  ^^-^^
------------------------------------------




More information about the TriLUG mailing list