Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
PowerCLI Plugin Shows Alert Status on vCenter
1.0
2018-02-05
- Nagios 3.x
- Nagios 4.x
GPL
6118
File | Description |
---|---|
check_vmware_triggeredalarms.ps1 | check_vmware_triggeredalarms.ps1 |
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!
Will Return Something Like This!
CRITICAL! Acknowledged Alarms > Total: 4 | Acknowledged: 3 | Unacknowledged: 1
WARNING! Acknowledged Alarms: Total: 4 | Acknowledged: 4 | Unacknowledged: 0
OK! Acknowledged Alarms: Total: 0 | Acknowledged: 0 | Unacknowledged: 0
<#
.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! Acknowledged Alarms > Total: 4 | Acknowledged: 3 | Unacknowledged: 1
WARNING! Acknowledged Alarms: Total: 4 | Acknowledged: 4 | Unacknowledged: 0
OK! Acknowledged Alarms: Total: 0 | Acknowledged: 0 | Unacknowledged: 0
.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
.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER
.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER -CredentialFilePath .nagios.monitor.xml
#>
.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! Acknowledged Alarms > Total: 4 | Acknowledged: 3 | Unacknowledged: 1
WARNING! Acknowledged Alarms: Total: 4 | Acknowledged: 4 | Unacknowledged: 0
OK! Acknowledged Alarms: Total: 0 | Acknowledged: 0 | Unacknowledged: 0
.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
.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER
.EXAMPLE
.check_vmware_triggeredalarms.ps1 -Server VCENTER -CredentialFilePath .nagios.monitor.xml
#>
Reviews (0)
Be the first to review this listing!