How to update VMware Monitoring Wizard
How to update VMware Monitoring Wizard
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.
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
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 -VBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: How to update VMware Monitoring Wizard
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
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: How to update VMware Monitoring Wizard
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.
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.
Re: How to update VMware Monitoring Wizard
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
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
Lets re-test with the new plugin:
To verify it is working properly, after that, we will want to change the command definitions that the wizard uses in XI.
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 VMFSRe: How to update VMware Monitoring Wizard
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
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: How to update VMware Monitoring Wizard
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.
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.
Re: How to update VMware Monitoring Wizard
@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.
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
Looks like everything is working then? If so I would like to mark this topic as solved and close it.
Former Nagios employee