Page 1 of 1
How to update VMware Monitoring Wizard
Posted: Mon Oct 13, 2014 3:25 am
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.
Re: How to update VMware Monitoring Wizard
Posted: Mon Oct 13, 2014 12:03 pm
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
Re: How to update VMware Monitoring Wizard
Posted: Tue Oct 14, 2014 6:25 am
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
Re: How to update VMware Monitoring Wizard
Posted: Wed Oct 15, 2014 2:00 pm
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.
Re: How to update VMware Monitoring Wizard
Posted: Mon Oct 20, 2014 7:20 am
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
Re: How to update VMware Monitoring Wizard
Posted: Mon Oct 20, 2014 10:17 am
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.
Re: How to update VMware Monitoring Wizard
Posted: Mon Oct 20, 2014 4:08 pm
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
Re: How to update VMware Monitoring Wizard
Posted: Mon Oct 20, 2014 4:18 pm
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.
Re: How to update VMware Monitoring Wizard
Posted: Tue Oct 21, 2014 4:25 am
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.
Re: How to update VMware Monitoring Wizard
Posted: Tue Oct 21, 2014 1:19 pm
by tmcdonald
Looks like everything is working then? If so I would like to mark this topic as solved and close it.