Home Directory Plugins Operating Systems * Virtual Environments VMWare PowerCLI Windows Plugin Monitor Datastore

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

PowerCLI Windows Plugin Monitor Datastore

Current Version
1.0
Last Release Date
2018-02-05
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
738
Files:
FileDescription
check_vmware_datastore.ps1check_vmware_datastore.ps1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
CapacityGB: 1003GB > FreeSpaceGB: 205GB
WARNING! Datastore AX4-1 > CapacityGB: 1003GB > FreeSpaceGB: 205GB
OK! Datastore AX4-1 > CapacityGB: 1003GB > FreeSpaceGB: 205GB

.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER -Name DataStore-Name -W 50 -C 10

.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER -CredentialFilePath .nagios.monitor.xml -Name DataStore-Name -W 50 -C 10

.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER -User monitor.user -Password MyPassword -Name DataStore-Name -W 50 -C 10

#>
<#
.SYNOPSIS
This script will connect to vSphere through PowerCLI and using PowerShell, it will return information about the alerts:

Will Return Something Like This!
CRITICAL! Datastore AX4-1 > CapacityGB: 1003GB > FreeSpaceGB: 205GB
WARNING! Datastore AX4-1 > CapacityGB: 1003GB > FreeSpaceGB: 205GB
OK! Datastore AX4-1 > CapacityGB: 1003GB > FreeSpaceGB: 205GB

.NOTES
Author : Pedro Simões
.LINK
http://blog.mirandasimoes.eu

.PARAMETER Server
Server Full Address or Machine Name

.PARAMETER CredentialFilePath
Path For Credential File Generated by Function New-VICredentialStoreItem
a Password file can be Generated By » New-VICredentialStoreItem -Host $VIServer -User $user -Password $password -File $CredentialFilePath
.PARAMETER Name
Datastore Name
.PARAMETER W
Return Warning in GB
.PARAMETER C
Return Critical in GB

.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER -Name DataStore-Name -W 50 -C 10

.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER -CredentialFilePath .nagios.monitor.xml -Name DataStore-Name -W 50 -C 10

.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER -User monitor.user -Password MyPassword -Name DataStore-Name -W 50 -C 10

#>