Page 2 of 4

Re: Stats Null for ESXi host

Posted: Mon Jul 22, 2013 4:55 am
by cokj72
slansing wrote:Can you run the following and show any output:

Code: Select all

ps -ef | egrep 'rpm|yum' | grep -v 'grep'
If you have no output please run:

Code: Select all

yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
this is output:
Loaded plugins: fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
* base: centos.copahost.com
* epel: be.mirror.eurid.eu
* extras: mirror.softaculous.com
* rpmforge: be.mirror.eurid.eu
* updates: mirror.crazynetwork.it
Setting up Install Process
Package 1:perl-XML-LibXML-1.70-5.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libuuid.x86_64 0:2.17.2-12.9.el6 will be updated
--> Processing Dependency: libuuid = 2.17.2-12.9.el6 for package: libblkid-2.17.2-12.9.el6.x86_64
--> Processing Dependency: libuuid = 2.17.2-12.9.el6 for package: util-linux-ng-2.17.2-12.9.el6.x86_64
---> Package libuuid.x86_64 0:2.17.2-12.9.el6_4.3 will be an update
---> Package libuuid-devel.x86_64 0:2.17.2-12.9.el6_4.3 will be installed
---> Package perl-Nagios-Plugin.noarch 0:0.35-2.el6.rf will be installed
--> Processing Dependency: perl(Class::Accessor::Fast) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Math::Calc::Units) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Config::Tiny) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Class::Accessor) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Running transaction check
---> Package libblkid.x86_64 0:2.17.2-12.9.el6 will be updated
---> Package libblkid.x86_64 0:2.17.2-12.9.el6_4.3 will be an update
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 will be installed
---> Package perl-Config-Tiny.noarch 0:2.12-7.1.el6 will be installed
---> Package perl-Math-Calc-Units.noarch 0:1.07-6.el6 will be installed
---> Package util-linux-ng.x86_64 0:2.17.2-12.9.el6 will be updated
---> Package util-linux-ng.x86_64 0:2.17.2-12.9.el6_4.3 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================
Package Arch Version Repository Size
===============================================================================================================
Installing:
libuuid-devel x86_64 2.17.2-12.9.el6_4.3 oraclelinux6-x86_64 83 k
perl-Nagios-Plugin noarch 0.35-2.el6.rf rpmforge 60 k
Updating:
libuuid x86_64 2.17.2-12.9.el6_4.3 oraclelinux6-x86_64 66 k
Installing for dependencies:
perl-Class-Accessor noarch 0.31-6.1.el6 base 26 k
perl-Config-Tiny noarch 2.12-7.1.el6 base 23 k
perl-Math-Calc-Units noarch 1.07-6.el6 epel 41 k
Updating for dependencies:
libblkid x86_64 2.17.2-12.9.el6_4.3 oraclelinux6-x86_64 113 k
util-linux-ng x86_64 2.17.2-12.9.el6_4.3 oraclelinux6-x86_64 1.5 M

Transaction Summary
===============================================================================================================
Install 5 Package(s)
Upgrade 3 Package(s)

Total size: 1.9 M
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY


Public key for libuuid-2.17.2-12.9.el6_4.3.x86_64.rpm is not installed

Re: Stats Null for ESXi host

Posted: Mon Jul 22, 2013 11:12 am
by abrist
Looks like you needed to install/upgrade 3 packages. Is it working now?

Re: Stats Null for ESXi host

Posted: Tue Jul 30, 2013 6:58 am
by cokj72
abrist wrote:Looks like you needed to install/upgrade 3 packages. Is it working now?
no, I have always the same problem



Upgrade 3 Package(s)

Total size: 1.9 M
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY


Public key for libuuid-2.17.2-12.9.el6_4.3.x86_64.rpm is not installed

Re: Stats Null for ESXi host

Posted: Tue Jul 30, 2013 10:42 am
by yancy
cokj72,

It's unclear if the Nagios::Plugin perl module installed properly.

Can you run the following and post the output

Code: Select all

 yum install perl-Nagios-Plugin 
-Yancy

Re: Stats Null for ESXi host

Posted: Mon Sep 02, 2013 8:55 am
by cokj72
[root@nagios ~]# yum install perl-Nagios-Plugin
Loaded plugins: fastestmirror, rhnplugin
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:
No route to host
Determining fastest mirrors
epel/metalink | 23 kB 00:00
* base: mirrors.prometeus.net
* epel: mirror.1000mbps.com
* extras: mirrors.prometeus.net
* rpmforge: apt.sw.be
* updates: mirrors.prometeus.net
base | 3.7 kB 00:00
cr | 2.9 kB 00:00
epel | 4.2 kB 00:00
http://mirror.1000mbps.com/fedora-epel/ ... ddf1a7799d 17c2c34ed5bbe34455952c31e9-primary.sqlite.bz2: [Errno 12] Timeout on http://mirror.1000mbps.com /fedora-epel/6/x86_64/repodata/22efe81cf3f6d7410f8cdda136c2ddf1a7799d17c2c34ed5bbe34455952c31e9 -primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 sec onds')
Trying other mirror.
epel/primary_db | 5.4 MB 00:19
extras | 3.4 kB 00:00
rpmforge | 1.9 kB 00:00
spacewalk-client | 2.1 kB 00:00
updates | 3.4 kB 00:00
http://mirrors.prometeus.net/centos/6.4 ... 07fd5d3ba8 70e0c4fa6feaff1328369bc401b8efeb5-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 18 - "transfer cl osed with 1141458 bytes remaining to read"
Trying other mirror.
http://centos.mirror.range-id.it/6.4/up ... sqlite.bz2: [Errno 12] Timeout on http://centos.mirror.range-id.it/6.4/up ... sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
updates/primary_db | 4.4 MB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Nagios-Plugin.noarch 0:0.35-2.el6.rf will be installed
--> Processing Dependency: perl(Class::Accessor::Fast) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Math::Calc::Units) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Config::Tiny) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Processing Dependency: perl(Class::Accessor) for package: perl-Nagios-Plugin-0.35-2.el6.rf.noarch
--> Running transaction check
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 will be installed
---> Package perl-Config-Tiny.noarch 0:2.12-7.1.el6 will be installed
---> Package perl-Math-Calc-Units.noarch 0:1.07-6.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================
Installing:
perl-Nagios-Plugin noarch 0.35-2.el6.rf rpmforge 60 k
Installing for dependencies:
perl-Class-Accessor noarch 0.31-6.1.el6 base 26 k
perl-Config-Tiny noarch 2.12-7.1.el6 base 23 k
perl-Math-Calc-Units noarch 1.07-6.el6 epel 41 k

Transaction Summary
===============================================================================================================================
Install 4 Package(s)

Total size: 150 k
Installed size: 277 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-Config-Tiny-2.12-7.1.el6.noarch 1/4
Installing : perl-Math-Calc-Units-1.07-6.el6.noarch 2/4
Installing : perl-Class-Accessor-0.31-6.1.el6.noarch 3/4
Installing : perl-Nagios-Plugin-0.35-2.el6.rf.noarch 4/4
Verifying : perl-Class-Accessor-0.31-6.1.el6.noarch 1/4
Verifying : perl-Math-Calc-Units-1.07-6.el6.noarch 2/4
Verifying : perl-Config-Tiny-2.12-7.1.el6.noarch 3/4
Verifying : perl-Nagios-Plugin-0.35-2.el6.rf.noarch 4/4

Installed:
perl-Nagios-Plugin.noarch 0:0.35-2.el6.rf

Dependency Installed:
perl-Class-Accessor.noarch 0:0.31-6.1.el6 perl-Config-Tiny.noarch 0:2.12-7.1.el6 perl-Math-Calc-Units.noarch 0:1.07-6.el6

Complete!
[root@nagios ~]#

Re: Stats Null for ESXi host

Posted: Tue Sep 03, 2013 9:35 am
by slansing
Is your server registered with RHEL? Does it have routs to the correct repo's and servers?

Re: Stats Null for ESXi host

Posted: Wed Oct 16, 2013 10:05 am
by cokj72
No

Re: Stats Null for ESXi host

Posted: Wed Oct 16, 2013 10:36 am
by slansing
You will have to properly register the RHEL server so you have access to external repo's such as "yum".

Re: Stats Null for ESXi host

Posted: Thu Oct 17, 2013 4:28 am
by cokj72
Now I have this problem:
VMware.PNG
I have tried in this CLI command:
[root@nagios libexec]# /usr/bin/perl ./check_esx3.pl -H xxx.xxx.xxx.xxx -u root -p "password" -l cpu -s usage -w 80 -c 90

and I got this answer:
/usr/bin/perl: symbol lookup error: /usr/lib64/perl5/auto/Class/MethodMaker/MethodMaker.so: undefined symbol: Perl_Tstack_sp_ptr

Re: Stats Null for ESXi host

Posted: Thu Oct 17, 2013 11:11 am
by abrist
Did you ever resolve your repo issue and reinstall the necessary packages?