Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check vSphere HA Agent Status

Rating
0 votes
Favoured:
1
Current Version
1.0
Last Release Date
2011-12-23
Compatible With
  • Nagios 3.x
  • Nagios XI
Owner
License
GPL
Hits
84917
Files:
FileDescription
Check_HA_Agent_Status.ps1Check_HA_Agent_Status.ps1
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
A Powershell script that checks the status of the HA Agents of all hosts within a vSphere VirtualCenter environment.
A Powershell script that checks the status of the HA Agents of all hosts within a vSphere VirtualCenter environment. When one or more hosts report a non-"running" state, the plugin gives a CRITICAL.

Script uses an secure way of reading out the password for the used account (that provides access to vc). Read the first section for all the info you need.

Script calls the VMWare-snapin without powershell so no need to start powershell with the -PSConsoleFile option.

Prerequisites:
# Windows machine to run the script
# Powershell installed
# VMWare vSphere PowerCLI 4 or later installed
# Account with access to Virtual Center

PS: This is one of my first Powershell-scripts so I think it could be much better or more efficient, but it does the job. ;-)