[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - check_vmware.pl error "Server version unavailable"

Cheshire Cat Computing

Software support and information
It is currently Mon Dec 08, 2025 10:40 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Thu May 12, 2011 10:44 pm 
Offline
User

Joined: Thu May 12, 2011 10:08 pm
Posts: 2
Hello Steve,
first of all, thanks for your great work.

Since we updated our VMware servers i have a problem with the check_vmware.pl plugin.
I used the plugin to monitor our VMware servers through the vCenter api.

When i execute the command:
perl check_vmware.pl -config=vmconfig -report=cpu

i get the following error:
UNKNOWN: Login to VirtualCentre server failed: Server version unavailable at 'https://192.168.88.183:443/sdk/vimService.wsdl' at /usr/local/share/perl/5.10.0/VMware/VICommon.pm line 545.

The config file:
VI_PASSWORD=xxxxxx
VI_SERVER=192.168.88.183
VI_USERNAME=<user>

Versions:
check_vmware.pl --version
vSphere SDK for Perl version: 4.1
Script 'check_vmware.pl' version: 1.13

Nagios Version: 3.2.1

vSphere Client 4.1.0
VMware vCenter Server 4.1.0 Build 258902
ESX Servers: 4.1.0 348481

The following modules are installed:

apt-get install libxml2-dev # bei Debian
apt-get install libssl-dev
cpan Crypt::SSLeay
cpan SOAP::Lite
cpan Class::MethodMaker
cpan Data::UUID
cpan -r // recompile perl modules
cpan XML::LibXML
---------------------------- VMware vSphere SDK ---------
VMware-vSphere-Perl-SDK-4.1.0-254719.i386.tar.gz (unpacked, compiled and installed)

I hope you are able to help me.
Thanks in advance,
Rolf


Top
 Profile Send private message  
 
PostPosted: Tue May 17, 2011 2:59 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Seems the API is failing to connect.

Check the installation on the vmware server -- make sure the API is available, and you have the firewall open appropriately (this is what I think is most likely the issue). I usually access the API on the virtualcentre, not on the vmware server itself.

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


Top
 Profile Send private message  
 
PostPosted: Wed Jun 08, 2011 8:47 pm 
Offline
User

Joined: Wed Jun 08, 2011 8:39 pm
Posts: 3
hello steve!
is there any known solution 4 this problem?

i get the same message and i think it happens since a system-update of my monitoring-server running suse11.4 -> but i don't know where to start searching 4 solution
i can replicate it by updating my fedora14 and gets the same message.

could there be a significant change in perl-installation conflicting with vmware-perl-api?
there was no change on virtualcenter & esx-servers.

today i'll try to downgrade my perl-version, hope it works...


Top
 Profile Send private message  
 
PostPosted: Wed Jun 08, 2011 9:08 pm 
Offline
User

Joined: Thu May 12, 2011 10:08 pm
Posts: 2
thank you for the answer, no i've no solution yet.

I had already checked my vmware servers and the virtualcentre server. The API is available, because i'm able to access it with an older nagios installation.

I couldn't solve the problem and had not enough time to test any further so i had to go back to an older backup-image.
Similar to smg72523889, the poblem started when i made an update of the whole system (debian) including perl...

if i have new information i'll post it.


Top
 Profile Send private message  
 
PostPosted: Wed Jun 15, 2011 9:59 pm 
Offline
User

Joined: Wed Jun 08, 2011 8:39 pm
Posts: 3
i now solved the issue by removing complete perl & vmware sdk and installing new the old version of perl & vmware perl sdk.

i think the problem could be situated in vmware's perl sdk using deprecated functions?

maybe a new version of sdk will work ... i'm waiting - and next time i'll test it before installing updates ;-)


Top
 Profile Send private message  
 
PostPosted: Thu Jun 16, 2011 11:16 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Sorry I cant help with this one much, as it doesnt affect us here and so I cant duplicate it.

We use the latest 4.1 SDK (I think) with Perl 5.10 and the latest VirtualCentre.

Steve

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


Top
 Profile Send private message  
 
PostPosted: Wed Jun 22, 2011 3:20 am 
Offline
User

Joined: Wed Jun 22, 2011 3:17 am
Posts: 1
This error is caused by newer perl LWP libs that do certificate checking, and the VmWare self-signed certificates generate an error.
The solution is to add this at the top of the script:

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

Franky


Top
 Profile Send private message  
 
PostPosted: Wed Jun 22, 2011 3:25 am 
Offline
User

Joined: Wed Jun 08, 2011 8:39 pm
Posts: 3
thx for this tipp.

i added the line to my script, but i don't want to test it now :D never touch a running system :mrgreen:


Top
 Profile Send private message  
 
PostPosted: Fri Jun 24, 2011 3:34 am 
Offline
User

Joined: Fri Jun 24, 2011 3:31 am
Posts: 1
I'm actually running into the same error. What is interesting is that a tcpdump shows that there isn't even an attempt to connect to the remote server. Any ideas?


Top
 Profile Send private message  
 
PostPosted: Fri Jun 24, 2011 12:28 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Is it possible that at the ESX server end you have some sort of additional firewall, tcpwrappers or xinetd rule that is causing the connection to drop immediately on SYN request?

That would mean that the API is OK, but the problem lies in the security rules on the ESX server (or VC server)

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


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group