Page 2 of 2
Re: VM Host critical alert
Posted: Tue Dec 13, 2016 5:10 pm
by rkennedy
Do you have any datastores that are disconnected? This is what would leave me to think that the result is 0.
Re: VM Host critical alert
Posted: Tue Dec 13, 2016 11:19 pm
Hi,
No, we don't have any datastores that are disconnected.
I am able get the status information if apply check_esx3.0.5 plugin. But getting status as critical, I just want make it Ok as status.
Is there any way to change the threshold settings.
Please find the screen shots for reference.
Thanks,
Re: VM Host critical alert
Posted: Wed Dec 14, 2016 2:34 am
Hi,
Following previous post I found why we are getting Critical alerts for fab-svvh02 and csd-svvh10 machines.
1. csd-svvh10
We have total 13 datastores in csd-svvh10 as follows below
CS1-Datastore00-VM
CS1-Datastore01-VM
CS1-Datastore02-VM
CS1-Datastore03-VM
CS1-Datastore04-VM
CS1-Datastore05-VM
CS1-Datastore06-VM
CS1-Datastore07-VM (DB)
CS1-Datastore08-VM (Logs)
CS1-Datastore09-VM (DB)
CS1-Datastore10-VM (DB)
CSD-SVVH10 - OS Disk
Software
Output of each datastore:
1.[root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore00-VM"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore00-VM=5241713.00 MB (49.99%) | CS1-Datastore00-VM=5241713.00MB;;
[root@cs1-prd-cmn-nag01 /]#
2. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore01-VM"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore01-VM=1867679.00 MB (35.62%) | CS1-Datastore01-VM=1867679.00MB;;
[root@cs1-prd-cmn-nag01 /]#
3. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore02-VM"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore02-VM=1658545.00 MB (31.64%) | CS1-Datastore02-VM=1658545.00MB;;
[root@cs1-prd-cmn-nag01 /]#
4. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore03-VM"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore03-VM=1368369.00 MB (26.10%) | CS1-Datastore03-VM=1368369.00MB;;
[root@cs1-prd-cmn-nag01 /]#
5. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore04-VM"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore04-VM=1313272.00 MB (25.05%) | CS1-Datastore04-VM=1313272.00MB;;
[root@cs1-prd-cmn-nag01 /]#
6. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore05-VM"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore05-VM=1769028.00 MB (33.74%) | CS1-Datastore05-VM=1769028.00MB;;
[root@cs1-prd-cmn-nag01 /]#
7. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore06-VM"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore06-VM=2722522.00 MB (51.93%) | CS1-Datastore06-VM=2722522.00MB;;
[root@cs1-prd-cmn-nag01 /]#
8. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore07-VM (DB)"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore07-VM (DB)=2660530.00 MB (50.75%) | 'CS1-Datastore07-VM (DB)'=2660530.00MB;;
[root@cs1-prd-cmn-nag01 /]#
9. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore08-VM (Logs)"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore08-VM (Logs)=133614.00 MB (12.75%) | 'CS1-Datastore08-VM (Logs)'=133614.00MB;;
[root@cs1-prd-cmn-nag01 /]#
10. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore09-VM (DB)"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore09-VM (DB)=1475737.00 MB (28.15%) | 'CS1-Datastore09-VM (DB)'=1475737.00MB;;
[root@cs1-prd-cmn-nag01 /]#
11. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CS1-Datastore10-VM (DB)"
CHECK_ESX3-0.5.PL OK - Storages : CS1-Datastore10-VM (DB)=5241618.00 MB (99.98%) | 'CS1-Datastore10-VM (DB)'=5241618.00MB;;
[root@cs1-prd-cmn-nag01 /]#
12[root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "CSD-SVVH10 - OS Disk"
CHECK_ESX3-0.5.PL OK - Storages : CSD-SVVH10 - OS Disk=133583.00 MB (99.58%) | 'CSD-SVVH10 - OS Disk'=133583.00MB;;
[root@cs1-prd-cmn-nag01 /]#
13. [root@cs1-prd-cmn-nag01 /]# /usr/local/nagios/libexec/check_esx3-0.5.pl -H 10.x.x.58 -f /usr/local/nagiosxi/etc/components/vmware/csd_svvh10_dpix_com_auth.txt -l "VMFS" -s "Software"
CHECK_ESX3-0.5.PL CRITICAL - Storages : Software is not accessible
[root@cs1-prd-cmn-nag01 /]#
2. fab-svvh02
output:
CHECK_ESX3-0.5.PL CRITICAL - Storages : Software - ISO Images is not accessible
Note : We are getting critical alerts for both fab-svvh02 and csd-svvh10 because datastore named Software is not accessible in both VM host.
we able to get values in other VM hosts.
what I might be the reason in fab-svvh02 and csd-svvh10 that datastore named Software is not accessible.
Thanks,
Re: VM Host critical alert
Posted: Wed Dec 14, 2016 10:30 am
by rkennedy
It's hard to say without knowing, but I want to believe the plugin is reporting correctly. How is Software mounted in comparison to CS1/CSD? There really isn't anything in the code that would make me think it's differentiated, other then it simply not being accessible. Are there specific permissions applied to Software at all?
Code: Select all
elsif (uc($command) eq "VMFS")
{
($result, $output) = host_list_vm_volumes_info($esx, $np, $subcommand, $percc || $percw);
}
elsif (uc($command) eq "VMFS")
{
($result, $output) = dc_list_vm_volumes_info($np, $subcommand, $percc || $percw);
}
Re: VM Host critical alert
Posted: Wed Dec 14, 2016 11:13 pm
Hi,
I just excluded the datastores Software & Software - ISO Images from the both VM hosts. Now status is showing OK.
Command as follow below
$USER1$/check_esx3-0.5.pl -H "$HOSTADDRESS$" -f "$ARG1$" -l "$ARG2$" -x "$ARG3$"
Thanks,
Re: VM Host critical alert
Posted: Thu Dec 15, 2016 10:23 am
by rkennedy
Are we good to mark this thread as resolved then, or do you have further questions?
Re: VM Host critical alert
Posted: Thu Dec 15, 2016 10:27 pm
Hi,
We are good and right now I don't have any questions. I will get back to you if I face any issue on this.
Thanks,