Check vmware esx Ubuntu: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 7: | Zeile 7: | ||
*make | *make | ||
*make install | *make install | ||
| − | + | *tar -xvzf VMware-vSphere-Perl-SDK-5.5.0-2043780.x86_64.tar.gz | |
| − | *VMware-vSphere-Perl-SDK-5.5.0- | + | *cd vmware-vsphere-cli-distrib/lib/VMware/share/VMware |
| − | * | + | *cd /root/vmware-vsphere-cli-distrib/ |
| − | |||
| − | * | ||
*perl Makefile.PL | *perl Makefile.PL | ||
*make all | *make all | ||
*make install | *make install | ||
| + | *vi /usr/local/share/perl/5.22.1/VMware/VICommon.pm | ||
| + | add this | ||
| + | <pre> | ||
| + | BEGIN { | ||
| + | $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; | ||
| + | eval { | ||
| + | # required for new IO::Socket::SSL versions | ||
| + | require IO::Socket::SSL; | ||
| + | IO::Socket::SSL->import(); | ||
| + | IO::Socket::SSL::set_ctx_defaults( SSL_verify_mode => 0 ); | ||
| + | }; | ||
| + | }; | ||
| + | </pre> | ||
| + | |||
| + | and change this () brackets | ||
| + | <pre> | ||
| + | sub get_session_loaded { | ||
| + | my $self = shift; | ||
| + | my $user_agent = $self->{user_agent}; | ||
| + | return (defined $user_agent->cookie_jar and | ||
| + | $user_agent->cookie_jar->as_string ne ''); | ||
| + | } | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | *https://smeretech.com/vmware-perl-sdk-possible-precedence-issue-with-control-flow-operator-at-usrshareperl5-20vmwarevicommon-pm-line-2147/ | ||
| + | *https://monitoring-portal.org/index.php?thread/28404-solved-problem-mit-check-vmware-api-pl/ | ||
| + | |||
==check_vmware_esx== | ==check_vmware_esx== | ||
*git clone https://github.com/BaldMansMojo/check_vmware_esx.git | *git clone https://github.com/BaldMansMojo/check_vmware_esx.git | ||
Aktuelle Version vom 15. März 2017, 16:13 Uhr
Vmware Perl SDK
- apt-get install make uuid-dev perl-doc libhttp-date-perl libgetopt-long-descriptive-perl libtime-duration-perl
- wget http://search.cpan.org/CPAN/authors/id/L/LZ/LZAP/UUID-0.05.tar.gz
- tar -xvzf UUID-0.05.tar.gz
- cd UUID-0.05/
- perl Makefile.PL
- make
- make install
- tar -xvzf VMware-vSphere-Perl-SDK-5.5.0-2043780.x86_64.tar.gz
- cd vmware-vsphere-cli-distrib/lib/VMware/share/VMware
- cd /root/vmware-vsphere-cli-distrib/
- perl Makefile.PL
- make all
- make install
- vi /usr/local/share/perl/5.22.1/VMware/VICommon.pm
add this
BEGIN {
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;
eval {
# required for new IO::Socket::SSL versions
require IO::Socket::SSL;
IO::Socket::SSL->import();
IO::Socket::SSL::set_ctx_defaults( SSL_verify_mode => 0 );
};
};
and change this () brackets
sub get_session_loaded {
my $self = shift;
my $user_agent = $self->{user_agent};
return (defined $user_agent->cookie_jar and
$user_agent->cookie_jar->as_string ne '');
}
- https://smeretech.com/vmware-perl-sdk-possible-precedence-issue-with-control-flow-operator-at-usrshareperl5-20vmwarevicommon-pm-line-2147/
- https://monitoring-portal.org/index.php?thread/28404-solved-problem-mit-check-vmware-api-pl/
check_vmware_esx
- git clone https://github.com/BaldMansMojo/check_vmware_esx.git
- cd check_vmware_esx/
- make
- install -m 755 check_vmware_esx /usr/lib/nagios/plugins/