Cheshire Cat Computing

Software support and information
It is currently Mon May 20, 2013 7:02 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jan 17, 2012 11:55 pm 
Offline
User

Joined: Tue Jan 17, 2012 11:34 pm
Posts: 1
Hi,

Great plugin!
I've fixed some small points and did some changes, and would like to propose a patch.
It introduces the following changes:
  • SSL workaround for last vsphere
  • Corrected net default thresholds
  • Switched thresholds from int to float type for better accuracy
  • Quoted perfdata labels to support spaces in labels

Attached the patch for check_vmware.pl 1.13:
Attachment:
check_vmware.pl-1.13.patch.zip


BR,
Yannick


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Fri Jan 20, 2012 11:28 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Thanks for this -- I will check it out soon and merge in with the development version

_________________
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: Wed Feb 15, 2012 2:16 am 
Offline
User

Joined: Wed Feb 15, 2012 1:19 am
Posts: 1
ALL,

Here are some suggestion & some fixes, that I've applied at my site:

Add:
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
at the beggining (Yannick already suggest that).

Add:
my($PERL_) = "/usr/bin/perl"; # perl location
my($SCRIPT_) = "/nagios/Plugin/current/libexec/check_vmware.pl"; # my central script location, used by Nagios
and change lines (MRTG section) from: Target[$hostobj-res-vm]: `check_vmware.pl ......
To: Target[$hostobj-res-vm]: `$PERL_ $SCRIPT_ ......
Reason:
When I run the MRTG using cron, I got error that the MRTG cannot find the script or perl,
so the actual lines will be: Target[$hostobj-res-vm]: `/usr/bin/perl /nagios/Plugin/current/libexec/check_vmware.pl .....
and using setting in the beggining of the script, will allow to easily manipulate the script.

Change: $cmdopt = "--config=/usr/local/etc/vmware.cfg ";
To: $cmdopt = "--config=".Opts::get_option('config')." ";
Reason: I got several VCs here, with different users & password,
by deafult the script always show /usr/local/etc/vmware.cfg, even if I've use the generate with different
--config location

I'm also sugest changing: PageTop[$hostobj--vm-actv]: null
To: PageTop[$hostobj--vm-actv]: <h1> $hostobj Active Guests </h1>
Which will show, as header, the guest name

Another suggestion:
1. generate from list of servers (what I've done is to ">>" the output using script that take a list of ESX servers)
2. generate the list of only desire checking (like - only memory, only cpu, only status of machine)

Just for the info -
In my small network,
I use MRTG to monitor VC environment with ~120 ESX servers, each server got 8-16 VMs (windows & linux) (cron, every 4 hours, since it takes several minutes for each check)
I also use MRTG to monitor ~60 switches, some windows & linux machine (your template) & APC UPS (your template) (cron, every 5 minutes)
I use Nagios with Kannel (sms), to monitor exta ~100 servers & services with notification.


Moshe


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

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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