How to update VMware Monitoring Wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ichayan
Posts: 9
Joined: Thu Aug 21, 2014 7:48 am

How to update VMware Monitoring Wizard

Post by ichayan »

Hi

I am receiving an error as shown below. I found the information and the updated script from the link
http://support.nagios.com/forum/viewtop ... 71#p100171
I updated the plugin via the web interface but the problem still persist.

Can some one guide me how to update this properly, thanks in advance.

***** Nagios XI Alert *****

Nagios has detected a problem with this service.

Notification Type: PROBLEM

Service: Datastore usage for VMHost
Host: xxxxx
Address: xxxxx
State: CRITICAL
Info:
ESX3 CRITICAL - Illegal division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to update VMware Monitoring Wizard

Post by lmiltchev »

Can you show us the actual command that you are running from the command line along with the output of it? Also, run the following command and show us the output:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
ichayan
Posts: 9
Joined: Thu Aug 21, 2014 7:48 am

Re: How to update VMware Monitoring Wizard

Post by ichayan »

Hi
Thank you for your kind reply details are as follows


[root@nagiosxi ~]# /usr/local/nagios/libexec/check_esx3.pl -V
check_esx3.pl 0.2.0

Service description: Datastore usage for VMHost

/usr/local/nagios/libexec/check_esx3.pl -H hostname.com -f /usr/local/nagiosxi/etc/components/vmware/hostname_com_auth.txt -l VMFS



output

ESX3 CRITICAL - Illegal division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065.

then usage data for some LUN's

the problems are exactly same as it is outlined in the two threads. This happens data stores are migrated across during VMotion or SRM tests.


http://support.nagios.com/forum/viewtop ... =16&t=8875

http://support.nagios.com/forum/viewtop ... 71#p100171

Thanks in advance
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to update VMware Monitoring Wizard

Post by Box293 »

Did you follow the steps outlined in these posts?

The 0.5.0 version can be downloaded here:
http://exchange.nagios.org/directory/Pl ... st/details

I'm pretty sure this will fix most of your issues.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ichayan
Posts: 9
Joined: Thu Aug 21, 2014 7:48 am

Re: How to update VMware Monitoring Wizard

Post by ichayan »

Thank you for your reply. Could you please help? How do I upgrade the plugin? (put check_esx3-0.5.pl this instead of the current one) . Do I need to reconfigure the monitoring services?

Thanks in advance
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to update VMware Monitoring Wizard

Post by slansing »

Lets re-test with the new plugin:

Code: Select all

/usr/local/nagios/libexec/check_esx3-0.5.pl -V

/usr/local/nagios/libexec/check_esx3-0.5.pl -H hostname.com -f /usr/local/nagiosxi/etc/components/vmware/hostname_com_auth.txt -l VMFS
To verify it is working properly, after that, we will want to change the command definitions that the wizard uses in XI.
ichayan
Posts: 9
Joined: Thu Aug 21, 2014 7:48 am

Re: How to update VMware Monitoring Wizard

Post by ichayan »

Hi
I have tested this and that illegal division by zero is not there. But when I run the command with esx3.pl that error reappears.

TIA
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to update VMware Monitoring Wizard

Post by Box293 »

Simply rename the old one and put the new one in place.

mv /usr/local/nagios/libexec/check_esx3.pl mv /usr/local/nagios/libexec/check_esx3_old.pl
mv /usr/local/nagios/libexec/check_esx3-0.5.pl mv /usr/local/nagios/libexec/check_esx3.pl

Then everything should just work.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ichayan
Posts: 9
Joined: Thu Aug 21, 2014 7:48 am

Re: How to update VMware Monitoring Wizard

Post by ichayan »

@Box293 Thank you very much. This was the first thing I tried. for some reason it didn't work. But having tried it now, it works. For the future reference of someone like me I have removed the extra moves "mv" from the middle of the commands

mv /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3_old.pl
mv /usr/local/nagios/libexec/check_esx3-0.5.pl /usr/local/nagios/libexec/check_esx3.pl

Thanks again.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to update VMware Monitoring Wizard

Post by tmcdonald »

Looks like everything is working then? If so I would like to mark this topic as solved and close it.
Former Nagios employee
Locked