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_vmware_server

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2013-07-18
Owner
License
MIT
Hits
35664
Files:
FileDescription
check_vmware_server.ps1check_vmware_server.ps1 1.0
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 quick Powershell script that checks that one VM is running on VMware Server via NRPE.
This is just a quick powershell script(my first one infact) that uses the vmrun command from VMware Server 2.0 to check if the server is running and to check that atleast one VM is running(I didn't make this configurable simply because it wasn't important for me). I have a specific need of running VMware Server and this solves my issue of how to monitor VMware Server.


To install place check_vmware_server.ps1 into scripts dir of your nsclient++ install dir and in nsclient.ini put(if you don't already have):
Minimal settings in nsclient.ini to add to an already working NRPE setup:

; A list of wrappped scripts (ie. using the template mechanism)
[/settings/external scripts/wrapped scripts]
check_vmware_server = check_vmware_server.ps1 -username username -password password -hostname https://myvmwareserver:8333/sdk

; A list of templates for wrapped scripts
[/settings/external scripts/wrappings]

; POWERSHELL WRAPPING -
ps1 = cmd /c echo scripts%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command -


Feel free to contact me about patches and so on or publish it yourself if you want.