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
35261
Files:
FileDescription
check_vmware_server.ps1check_vmware_server.ps1 1.0
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.