Cheshire Cat Computing

Software support and information
It is currently Fri May 24, 2013 1:37 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Jul 20, 2012 4:25 am 
Offline
User

Joined: Fri Jul 20, 2012 4:05 am
Posts: 1
I'm trying to set up the check_esx2 to monitor ESXi CPU Load, ESXi Memory usage, ESXi Network usage and ESXi Runtime status in nagios. I've been doing the services like this:
define service{
use generic-service
host_name esxi01
service_description ESXi CPU Load
check_command check_esx_cpu!80!90
}

and the commands like:
define command {
command_name check_esx_cpu
command_line $USER1$/check_esx2 -H $HOSTADDRESS$ -u $USER11$ -p $USER12$ -l CPU -s usage -w $ARG1$ -c $ARG2$
}
On my nagios I just get a list of all the hosts with a number in the brackets after, eg VHosts: 10/10 up: ssaas-sbs(304), 2003 Veeam(16) etc.

If I try to run the command within the terminal filling in the parameters I get:
Unknown option: u
then the same VHosts.....

I tried dropping the -u but I still get the VHosts.
Any idea what I'm doing wrong?

Thanks in advanced,
Jethro


Top
 Profile  
 
PostPosted: Fri Jul 27, 2012 11:04 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
You should change to using check_vmware instead of check_esx -- the VMWare API has changes and check_esx has been replaced by check_vmware which uses the official API.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Sat Sep 29, 2012 9:16 am 
Offline
User

Joined: Sat Sep 29, 2012 9:05 am
Posts: 1
stevesh wrote:
You should change to using check_vmware instead of check_esx -- the VMWare API has changes and check_esx has been replaced by check_vmware which uses the official API.


Hi steve,

I am having the same problem as the OP. But I am not sure how to use the solution that you suggested. what do you mean by VMWare API? Where do I obtain that? sorry my english is not that good. I know there are some companies that do translation services, perhaps I could pay one to translate it to my native language.


Last edited by Gisela9 on Sun Oct 21, 2012 3:13 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Oct 02, 2012 10:19 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
The VMware API is the new and only supported way to get status information from ESX or virtual centre.

You can download the Perl API toolkit from VMware - this is called the vSphere Perl SDK these days, but its the same thing:
http://communities.vmware.com/community ... e_sdk_perl

You need to install this in order for the check_vmware agent to work.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group