VMware Cloud Community
insearchof
Expert
Expert
Jump to solution

Vcenter 6.7 HA not enabled but shows it is.

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

0 Kudos
1 Solution

Accepted Solutions
daphnissov
Immortal
Immortal
Jump to solution

You can verify with PowerCLI (courtesy of LucD​)

Get-Cluster -Name cluster_name | Get-VMHost | Select Name,@{N='State';E={$_.ExtensionData.Runtime.DasHostState.State}}

View solution in original post

0 Kudos
5 Replies
daphnissov
Immortal
Immortal
Jump to solution

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....

0 Kudos
insearchof
Expert
Expert
Jump to solution

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

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

You can verify with PowerCLI (courtesy of LucD​)

Get-Cluster -Name cluster_name | Get-VMHost | Select Name,@{N='State';E={$_.ExtensionData.Runtime.DasHostState.State}}

0 Kudos
insearchof
Expert
Expert
Jump to solution

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.

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

Please mark your answer as correct.

0 Kudos