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
84333
Files:
FileDescription
Check_HA_Agent_Status.ps1Check_HA_Agent_Status.ps1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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. ;-)