MSW Cluster HA Status
Posted: Mon Apr 13, 2020 8:33 am
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.
I have all the MSW checks provided working except for one.
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
All other MSW checks for vcenter 2 are working fine.
Any ideas?
Thank you
Tom
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.
I have all the MSW checks provided working except for one.
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
All other MSW checks for vcenter 2 are working fine.
Any ideas?
Thank you
Tom