Page 1 of 2
VM Host critical alert
Posted: Mon Dec 05, 2016 10:34 am
Hi,
we added 17 VM Host, 16 are added successfully and one VM host (10.x.x.58) has the issue while adding, got the critical alert for Datastore usage for VMHost service, as shown below
Error in DataStore usage for VMHost service:"ESX3 Critical-Illegal Division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065.
we have esx3 version 2.0 looked for solution the in support forum and downloaded the esx3-0.5 version plugin, Uploaded and implemented only on 10.x.x.58 for DataStore usage for VMHost service. still it is showing critical alert.
output:
CHECK_ESX3-0.5.PL CRITICAL - Storages : CS1-Datastore04-VM=1313272.00 MB (25.05%), CS1-Datastore05-VM=841591.00 MB (16.05%), CS1-Datastore00-VM=5241713.00 MB (49.99%), CS1-Datastore09-VM (DB)=1475737.00 MB (28.15%), CS1-Datastore03-VM=1368369.00 MB (26.10
Please find the screen shot for reference.
Thanks,
Re: VM Host critical alert
Posted: Mon Dec 05, 2016 2:44 pm
by dwhitfield
Previous posts suggest the datastore may be disconnected.
That said, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the Download Profile (not Show Profile) button in the top right corner. If for whatever reason you cannot download the profile, please put the output of Show Profile in the thread (that will at least get us some info).
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
UPDATE: profile shared with techs.
Re: VM Host critical alert
Posted: Tue Dec 06, 2016 5:44 am
Hi,
Today we have added one more VM Host 10.x.x.31 and it is showing critical alert same as in our previous conversation to the Datastore usage for VMHost service.
Please find the attached screen shot.
Note: Attached updated profile zip.
Thanks,
Re: VM Host critical alert
Posted: Tue Dec 06, 2016 3:15 pm
by lmiltchev
Can you run a check from the command line against each datastore (for troubleshooting purposes), and show the output?
Example:
Code: Select all
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore00-VM"
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore03-VM"
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore04-VM"
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore05-VM"
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore09-VM"
Re: VM Host critical alert
Posted: Wed Dec 07, 2016 3:10 am
Hi,
Please find the outputs as requested.
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore00-VM"
output: CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore00-VM=5241713.00 MB (49.99%) | CS1-Datastore00-VM=5241713.00MB;;
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore03-VM"
output: CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore03-VM=1368369.00 MB (26.10%) | CS1-Datastore03-VM=1368369.00MB;;
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore04-VM"
output: CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore04-VM=1313272.00 MB (25.05%) | CS1-Datastore04-VM=1313272.00MB;;
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore05-VM"
output: CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore05-VM=1769028.00 MB (33.74%) | CS1-Datastore05-VM=1769028.00MB;;
/usr/local/nagios/libexec/check_esx3-0.5.pl -H <ip address> -f <auth file> -l "VMFS" -s "CS1-Datastore09-VM (DB)"
output: CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore09-VM (DB)=1475737.00 MB (28.15%) | 'CS1-Datastore09-VM (DB)'=1475737.00MB;;
Thanks,
Re: VM Host critical alert
Posted: Wed Dec 07, 2016 1:45 pm
by tgriep
Try and upgrade the plugin to version 0.7.1 and see if that fixes the error.
First, login to the XI server as root and make a backup of the existing one by running the following.
Code: Select all
cp /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3.pl.old
Then run the following to install a required Perl Module for the new plugin.
Then download this updated plugin to your PC.
https://github.com/shinken-monitoring/p ... ck_esx3.pl
After it is downloaded, login to the XI GUI and go to the Admin > Manage Plugins menu
Browse to the new plugin and then click on the Upload Button.
Wait 10 minutes and see if you are still receiving the error for those Datastores.
Re: VM Host critical alert
Posted: Mon Dec 12, 2016 1:09 am
Hi,
From the link
https://github.com/shinken-monitoring/p ... ck_esx3.pl
I am unable to find any download option, just able to see the code.
help me to download the file.
Thanks,
Re: VM Host critical alert
Posted: Mon Dec 12, 2016 1:43 am
Hi,
As you suggested in the previous post I have implement the same steps but no result, still same critical error only for those two VM hosts.
Thanks,
Re: VM Host critical alert
Posted: Mon Dec 12, 2016 10:38 am
by rkennedy
Please show us the commands you ran, and what the new result is. The issue may lie in the plugin so anything you can provide will help.
Re: VM Host critical alert
Posted: Tue Dec 13, 2016 5:41 am
Hi,
Please find the details of commands executed by us as you suggested.
cp /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3.pl.old
output:
[root@cs1-prd-cmn-nag01 libexec]# cp /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3.pl.old
[root@cs1-prd-cmn-nag01 libexec]#
yum install perl-Nagios-Plugin
output:
[root@cs1-prd-cmn-nag01 libexec]# yum install perl-Nagios-Plugin
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
cr | 3.3 kB 00:00:00
Not using downloaded repomd.xml because it is older than what we have:
Current : Thu Dec 8 04:48:54 2016
Downloaded: Thu Dec 10 18:39:22 2015
epel/x86_64/metalink | 13 kB 00:00:00
extras | 3.4 kB 00:00:00
nagios-base | 1.5 kB 00:00:00
nagiosxi-deps | 1.5 kB 00:00:00
nginx | 2.9 kB 00:00:00
rpmforge | 1.9 kB 00:00:00
updates | 3.4 kB 00:00:00
Determining fastest mirrors
* base: mirrors.gigenet.com
* epel: kdeforge2.unl.edu
* extras: centos.aol.com
* rpmforge: ftp.cc.uoc.gr
* updates: mirrors.gigenet.com
Package perl-Nagios-Plugin-0.36-7.el7.noarch already installed and latest version
Nothing to do
[root@cs1-prd-cmn-nag01 libexec]#
I have downloaded the check_esx3.pl file and uploaded into nagios xi and added to commands. please find the screen shot named esx3-new.jpg.
And please find the error details in attached screen shot after applying the plugin on the VM host.
Thanks,