Page 2 of 3
Re: VMWare Monitoring
Posted: Mon Feb 01, 2016 1:25 am
by raamardhani7
rkennedy wrote:You may be missing a dependency, can you verify these are installed?
once it opens, enter -
Code: Select all
install GAAS/libwww-perl-5.837.tar.gz
What is the result now?
Hi Team,
Still the same error.
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "CPU"
ESX3 CRITICAL - HOST CPU Unknown error
And using this plugin, will be able to monitor ESX servers???
Re: VMWare Monitoring
Posted: Mon Feb 01, 2016 12:12 pm
by lmiltchev
Do any of the other checks work? For example:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "MEM"
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "NET"
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "RUNTIME"
Try increasing the verbosity and post the output:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "CPU" -vvv
And using this plugin, will be able to monitor ESX servers???
Yes, but we need to find out first why it is failing for you.
Re: VMWare Monitoring
Posted: Mon Feb 01, 2016 1:06 pm
by raamardhani7
lmiltchev wrote:Do any of the other checks work? For example:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "MEM"
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "NET"
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "RUNTIME"
Try increasing the verbosity and post the output:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H xx.xx.xx.xx -f "/usr/local/nagiosxi/etc/components/vmware/xx.xx.xx.xx_auth.txt" -l "CPU" -vvv
And using this plugin, will be able to monitor ESX servers???
Yes, but we need to find out first why it is failing for you.
Hi Team,
Please find the output.
Code: Select all
[root@lussvpnagiosxi00 ~]# /usr/local/nagios/libexec/check_esx3.pl -H XX.XX.XX.XX -f "/usr/local/nagiosxi/etc/components/vmware/vusrcpvcentr00_fossil_com_auth.txt" -l "MEM"
ESX3 CRITICAL - HOST MEM Unknown error
Code: Select all
[root@lussvpnagiosxi00 ~]# /usr/local/nagios/libexec/check_esx3.pl -H XX.XX.XX.XX -f "/usr/local/nagiosxi/etc/components/vmware/vusrcpvcentr00_fossil_com_auth.txt" -l "NET"
ESX3 CRITICAL - all 0 NICs are connected | OK_NICs=0;; Bad_NICs=0;;
Code: Select all
[root@lussvpnagiosxi00 ~]# /usr/local/nagios/libexec/check_esx3.pl -H XX.XX.XX.XX -f "/usr/local/nagiosxi/etc/components/vmware/vusrcpvcentr00_fossil_com_auth.txt" -l "RUNTIME"
ESX3 OK - 0/3 VMs up, overall status=green, connection state=connected, maintenance=no, 305 health issue(s), no config issues | vmcount=0units;;
Code: Select all
[root@lussvpnagiosxi00 ~]# /usr/local/nagios/libexec/check_esx3.pl -H XX.XX.XX.XX -f "/usr/local/nagiosxi/etc/components/vmware/vusrcpvcentr00_fossil_com_auth.txt" -l "CPU" -vvv
[extra-opts] check_esx3.pl -H XX.XX.XX.XX -f /usr/local/nagiosxi/etc/components/vmware/vusrcpvcentr00_fossil_com_auth.txt -l CPU -vvv
ESX3 CRITICAL - HOST CPU Unknown error
Re: VMWare Monitoring
Posted: Mon Feb 01, 2016 2:00 pm
by lmiltchev
Try the following - open the "/usr/local/nagios/libexec/check_esx3.pl" plugin in a text editor and add the following line on the top of the page, right below the initial comments:
Code: Select all
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
Save and exit. Test your checks again. Let us know if this helped.
What are the permissions of your user, i.e. "Administrator", "VM power user", etc.?
Re: VMWare Monitoring
Posted: Tue Feb 02, 2016 4:44 am
by raamardhani7
lmiltchev wrote:Try the following - open the "/usr/local/nagios/libexec/check_esx3.pl" plugin in a text editor and add the following line on the top of the page, right below the initial comments:
Code: Select all
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
Save and exit. Test your checks again. Let us know if this helped.
What are the permissions of your user, i.e. "Administrator", "VM power user", etc.?
Have added that line and still facing the same issue.
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H XX.XX.XX.XX -f "/usr/local/nagiosxi/etc/components/vmware/vusrcpvcentr00_fossil_com_auth.txt" -l "MEM"
ESX3 CRITICAL - HOST MEM Unknown error
Privileges given for the user ID : Admin.
Re: VMWare Monitoring
Posted: Tue Feb 02, 2016 10:29 am
by tgriep
What version of the VMWare Perl SDK did you install?
What version of VMWare are you running for the servers?
Login to the XI server as root, run the following commands to update the perl modules from your first post.
Code: Select all
yum update perl-MIME-Base64
yum update perl-Compress-Zlib
yum update perl-Compress-Raw-Zlib
yum update perl-IO-Compress-Base
yum update perl-IO-Compress-Zlib
yum update perl-version
yum update perl-Socket6
yum update perl-IO-Socket-INET6
cpan install LWP::Protocol::https
Try that out and see if you still have any errors.
Re: VMWare Monitoring
Posted: Tue Feb 02, 2016 12:06 pm
by raamardhani7
tgriep wrote:What version of the VMWare Perl SDK did you install?
What version of VMWare are you running for the servers?
Login to the XI server as root, run the following commands to update the perl modules from your first post.
Code: Select all
yum update perl-MIME-Base64
yum update perl-Compress-Zlib
yum update perl-Compress-Raw-Zlib
yum update perl-IO-Compress-Base
yum update perl-IO-Compress-Zlib
yum update perl-version
yum update perl-Socket6
yum update perl-IO-Socket-INET6
cpan install LWP::Protocol::https
Try that out and see if you still have any errors.
Hi Tom,
Looks like everything is installed earlier.
Code: Select all
[root@lussvpnagiosxi00 ~]# yum update perl-MIME-Base64
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
Package(s) perl-MIME-Base64 available, but not installed.
No Packages marked for Update
You have new mail in /var/spool/mail/root
[root@lussvpnagiosxi00 ~]# yum update perl-Compress-Zlib
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
No Packages marked for Update
[root@lussvpnagiosxi00 ~]# yum update perl-Compress-Raw-Zlib
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
No Packages marked for Update
[root@lussvpnagiosxi00 ~]#
You have new mail in /var/spool/mail/root
[root@lussvpnagiosxi00 ~]#
[root@lussvpnagiosxi00 ~]# yum update perl-IO-Compress-Base
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
No Packages marked for Update
You have new mail in /var/spool/mail/root
[root@lussvpnagiosxi00 ~]# yum update perl-IO-Compress-Zlib
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
No Packages marked for Update
[root@lussvpnagiosxi00 ~]# yum update perl-version
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
No Packages marked for Update
[root@lussvpnagiosxi00 ~]# yum update perl-Socket6
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
No Packages marked for Update
[root@lussvpnagiosxi00 ~]# yum update perl-IO-Socket-INET6
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
No Packages marked for Update
Code: Select all
cpan LWP::Protocol::https
t/https_proxy.t .. ok
All tests successful.
Files=2, Tests=61, 2 wallclock secs ( 0.04 usr 0.01 sys + 0.52 cusr 0.04 csys = 0.61 CPU)
Result: PASS
MSCHILLI/LWP-Protocol-https-6.06.tar.gz
/usr/bin/make test -- OK
Running make install
Prepending /root/.cpan/build/LWP-Protocol-https-6.06-5u5szz/blib/arch /root/.cpan/build/LWP-Protocol-https-6.06-5u5szz/blib/lib to PERL5LIB for 'install'
Installing /usr/local/share/perl5/LWP/Protocol/https.pm
Installing /usr/local/share/man/man3/LWP::Protocol::https.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
MSCHILLI/LWP-Protocol-https-6.06.tar.gz
/usr/bin/make install -- OK
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H XX.XX.XX.XX -f "/usr/local/nagiosxi/etc/components/vmware/vusrcpvcentr00_fossil_com_auth.txt" -l "MEM"
ESX3 CRITICAL - HOST MEM Unknown error
Could see the same issue still..
Re: VMWare Monitoring
Posted: Tue Feb 02, 2016 12:29 pm
by tgriep
What version of the VMWare Perl SDK did you install?
What version of VMWare are you running for the servers?
Try installing those perl modules by running the following.
Code: Select all
yum install perl-MIME-Base64
yum install perl-Compress-Zlib
yum install perl-Compress-Raw-Zlib
yum install perl-IO-Compress-Base
yum install perl-IO-Compress-Zlib
yum install perl-version
yum install perl-Socket6
yum install perl-IO-Socket-INET6
Re: VMWare Monitoring
Posted: Wed Feb 03, 2016 4:11 am
by raamardhani7
tgriep wrote:What version of the VMWare Perl SDK did you install?
What version of VMWare are you running for the servers?
Try installing those perl modules by running the following.
Code: Select all
yum install perl-MIME-Base64
yum install perl-Compress-Zlib
yum install perl-Compress-Raw-Zlib
yum install perl-IO-Compress-Base
yum install perl-IO-Compress-Zlib
yum install perl-version
yum install perl-Socket6
yum install perl-IO-Socket-INET6
What version of the VMWare Perl SDK did you install?
vSphere Perl SDK Version 6 is installed.
What version of VMWare are you running for the servers?
Version is 5.5.0
Code: Select all
yum install perl-MIME-Base64
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-MIME-Base64.x86_64 0:3.13-1.el6.rf will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
perl-MIME-Base64 x86_64 3.13-1.el6.rf rpmforge 47 k
Transaction Summary
========================================================================================================================================================================
Install 1 Package(s)
Total download size: 47 k
Installed size: 96 k
Is this ok [y/N]: y
Downloading Packages:
perl-MIME-Base64-3.13-1.el6.rf.x86_64.rpm | 47 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/share/man/man3/MIME::Base64.3pm.gz from install of perl-MIME-Base64-3.13-1.el6.rf.x86_64 conflicts with file from package perl-4:5.10.1-141.el6_7.1.x86_64
file /usr/share/man/man3/MIME::QuotedPrint.3pm.gz from install of perl-MIME-Base64-3.13-1.el6.rf.x86_64 conflicts with file from package perl-4:5.10.1-141.el6_7.1.x86_64
Error Summary
-------------
Rest others are already installed. please let me know what can be done.. thanks.
Re: VMWare Monitoring
Posted: Wed Feb 03, 2016 10:52 am
by tgriep
Lets try and see if you can connect to the VMWare server using the VMWare Perl SDK tools to see if we can get those to work.
Your path to the tool could be different from ours as we are using the SDK version 5.5 and not 6.
Change to the following directory
/usr/lib/vmware-vcli/apps/general
Run this to test to see if you can connect to the VMWare VCenter server
./connect.pl --url
https://xxx.xxx.xxx.xxx/sdk/vimService --username <username> --password <password>
If the above passes, go to this directory.
/usr/lib/vmware-vcli/apps/host
Run this to test to see if you can get the list of hosts connected to the VMWare VCenter server
./hostinfo.pl --url
https://xxx.xxx.xxx.xxx/sdk/vimService --username <username> --password <password>
Remember to replace xxx.xxx.xxx.xxx with the IP address of your VCenter server and to put in the correct username and password.
Please post any errors