VM Host critical alert
-
[email protected]
- Posts: 34
- Joined: Mon Sep 26, 2016 1:37 pm
VM Host critical alert
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,
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,
You do not have the required permissions to view the files attached to this post.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: VM Host critical alert
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.
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.
-
[email protected]
- Posts: 34
- Joined: Mon Sep 26, 2016 1:37 pm
Re: VM Host critical alert
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,
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,
You do not have the required permissions to view the files attached to this post.
Last edited by dwhitfield on Tue Dec 06, 2016 10:10 am, edited 1 time in total.
Reason: removing profile for security purposes
Reason: removing profile for security purposes
Re: VM Host critical alert
Can you run a check from the command line against each datastore (for troubleshooting purposes), and show the output?
Example:
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"
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
[email protected]
- Posts: 34
- Joined: Mon Sep 26, 2016 1:37 pm
Re: VM Host critical alert
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,
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
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.
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.
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.oldCode: Select all
yum install perl-Nagios-Pluginhttps://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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
[email protected]
- Posts: 34
- Joined: Mon Sep 26, 2016 1:37 pm
Re: VM Host critical alert
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,
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,
-
[email protected]
- Posts: 34
- Joined: Mon Sep 26, 2016 1:37 pm
Re: VM Host critical alert
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,
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
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.
Former Nagios Employee
-
[email protected]
- Posts: 34
- Joined: Mon Sep 26, 2016 1:37 pm
Re: VM Host critical alert
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,
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,
You do not have the required permissions to view the files attached to this post.