VMware ESXI and vCenter 6.7 U2
Nagios 4.3.4 Core
I am using Box293 MSW plug in to checks my VMware.
I have two vCenters both have 4 hosts both setup with HA, DRS etc.
On vCenter one the Cluster HA Status check works
/usr/local/nagios/libexec$ ./check_by_ssh -E 1 -l vi-admin -H 10.10.8.74 -C "~/box293_check_vmware.pl --check Cluster_HA_Status --server 10.10.8.15 --cluster TGCSNET-Vcenter1-Cluster"
OK: 'TGCSNET-Vcenter1-Cluster' HA: {Enabled} {Host Monitoring: Enabled} {Admission Control: Enabled, Policy: Tolerates 1 Host Failure Reserved Capacity CPU: 25%, Memory: 25%} {VM Options: Restart Priority: Medium, Isolation Response: Leave Powered On} {VM Monitoring: Disabled}
On vCenter two the Cluster HA status check shows critical
nagios@tgcs017:/usr/local/nagios/libexec$ ./check_by_ssh -E 1 -l vi-admin -H 10.10.8.74 -C "~/box293_check_vmware.pl --check Cluster_HA_Status --server 10.1o.8.11 --cluster TGCSNET-Vcenter2-Cluster"
CRITICAL: 'TGCSNET-Vcenter2-Cluster' {HA: HA is disabled but should be enabled}
When I go to my vCenter select Configure then select vCenter HA
vCenter HA Mode: Enabled State Healthy.
The exact same for both vCenters.
not sure why the checks is not reporting correctly for vcenter 2
Any ideas?
Thank you
Tom
You can verify with PowerCLI (courtesy of LucD)
Get-Cluster -Name cluster_name | Get-VMHost | Select Name,@{N='State';E={$_.ExtensionData.Runtime.DasHostState.State}}
That is a community-written plug-in for Nagios which has no relation otherwise to VMware. You're best off contacting the author with your issue since they are the ones who wrote it. It was also last updated in 2016, so who knows....
Hi
I already contacted him.
I was just wondering if there was any thing I can check from the VMWare side to check to see if HA is enabled besides the GUI
You have any command line checks?
Thanks.
Tom
You can verify with PowerCLI (courtesy of LucD)
Get-Cluster -Name cluster_name | Get-VMHost | Select Name,@{N='State';E={$_.ExtensionData.Runtime.DasHostState.State}}
I figured it out
It was off on the Cluster side.
Selected my Cluster then configure
vSphere HA is Turned OFF
I had to do that when I updated the Hosts and forget to turn it back on.
All Good now
We can close this issue as resolved.
Please mark your answer as correct.