Stats Null for ESXi host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
thennessey
Posts: 13
Joined: Tue Feb 05, 2013 10:33 am

Stats Null for ESXi host

Post by thennessey »

I looked at some previous posts on this topic, but none that I found matched my problem.

ESXi 5.1
Nagios xi 2012R1.4

All the stats for my esxi host are null / critical. Nagios can connect with it and ping checks work.
I followed the steps in the guide the best I could. http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

I couldn't find any place in the Monitoring Wizard page to "upload" the vmware wizard. Where can I upload?
There was already a vmware wizard installed so I figured, maybe it comes with this version of Nagios pre installed.
After installing the SDK script, it didn't say "Enjoy - The VMware Team" at the end. It said something like "some of the programs have to be installed manually, or separately." Something like that.

What am I missing here?
Thanks for the help!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Stats Null for ESXi host

Post by slansing »

Can you show a screenshot of the service's returning Null? We should pin down which checks are returning that, "I have a feeling they will be datastore checks."

And yes the Wizard comes preinstalled with the current versions of Nagios XI.
thennessey
Posts: 13
Joined: Tue Feb 05, 2013 10:33 am

Re: Stats Null for ESXi host

Post by thennessey »

I think the steps in that tutorial are wrong. I found another guide on some blog and went back through the whole process according to the new steps and it worked. If I come across that guide again I will post the URL here. Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Stats Null for ESXi host

Post by slansing »

That would be great thank you. Do you remember where they differed at all? Also, what version of ESX and XI are you using?
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post by cokj72 »

I have the same problem.
I' have Nagios XI last release and "VMware ESX Server 3 (Dali)"

The monitoring "Datastore usage per VMHost" (all monitoring on the VMWare agent) response "null":

I used this procedure: http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Stats Null for ESXi host

Post by slansing »

Please run the following to make sure the correct packages are available:

Code: Select all

yum clean all
yum erase perl-XML-SAX-Base-1.04-1.el6.rf.noarch
yum install perl-XML-SAX -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post by cokj72 »

slansing wrote:Please run the following to make sure the correct packages are available:

Code: Select all

yum clean all
yum erase perl-XML-SAX-Base-1.04-1.el6.rf.noarch
yum install perl-XML-SAX -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
This is response:
[root@nagios ~]#yum erase perl-XML-SAX-Base-1.04-1.el6.rf.noarch
Package(s) perl-XML-SAX-Base-1.04-1.el6.rf.noarch available, but not installed.
No Packages marked for removal

[root@nagios ~]#yum install perl-XML-SAX -y
Complete!

[root@nagios ~]#yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
Public key for libuuid-2.17.2-12.9.el6_4.3.x86_64.rpm is not installed

And the problem persists
You do not have the required permissions to view the files attached to this post.
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post by cokj72 »

now in the CCM->Services the 3 VMWare Service is:
You do not have the required permissions to view the files attached to this post.
cokj72
Posts: 47
Joined: Thu Jul 11, 2013 8:40 am

Re: Stats Null for ESXi host

Post by cokj72 »

I deleted the 3 vmware host and related services and the problem Missed Sync is closed (tested modify other services on the other Host).

but I have the problem of monitoring the 3 server VMWare... :mrgreen:

The version of VMware wizard is:
Monitor a VMware host or guest VM.
Version: 1.5


And other post i find this check:
[root@nagios ~]# /usr/local/nagios/libexec/check_esx3.pl | head --lines=1 2&>1
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_esx3.pl line 32.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_esx3.pl line 32.
[root@nagios ~]# echo $?
1
...
Help me :mrgreen:
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Stats Null for ESXi host

Post by slansing »

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
Locked