Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_vmware_server
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!
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.
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.
Reviews (0)
Be the first to review this listing!