Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 1.77 KB

README.md

File metadata and controls

65 lines (50 loc) · 1.77 KB

icinga2_vmware_snapshots

Icinga2 Check for monitoring age and count of VMware Snapshots.

I modified the Original Check from simonmeggle, to use the Monitoring::Plugin instead the old Nagios::Plugin which is not available on CPAN anymore.

I also added Icinga Command Definitions to integrate the Check easier into your Icinga Installation.


How to Use

  1. Put the Plugin check_vmware_snapshots.pl in the Icinga-PluginDir.
  2. Put the Icinga Command Definitions in your Icinga-ConfigDir.
  3. Define and Apply the Services.
  4. Configure the Service through your Hosts according to your needs.

There are already Defaultthresholds set in the Command Definition change them if needed. You can also check the script itself for documentation and examples.


Example

Services

apply Service "Vmware Snapshot Age" {
  check_command = "check_vmware_snapshots_age"
  assign where "vcenter" in host.templates
}
apply Service "Vmware Snapshot Count" {
  check_command = "check_vmware_snapshots_count"
  assign where "vcenter" in host.templates
}

Host

object Host "Vcenter"  {
import "vcenter"

address = "192.168.10.100"
display_name = "Vcenter"
vars.snapshot_username = "vcenteruser"
vars.snapshot_password = "userpassword"
  
# More Options
# Age Check
# vars.snapshot_age_warning = 2
# vars.snapshot_age_critical = 7
    
# vars.snapshot_age_separator = ", "
# vars.snapshot_age_blacklist = "test"
# vars.snapshot_age_whitelist = "test"
# vars.snapshot_age_match_names = 1

# Count Check
# vars.snapshot_count_warning = 1
# vars.snapshot_count_critical = 2
    
# vars.snapshot_count_separator = ", "
# vars.snapshot_count_blacklist = "test"
# vars.snapshot_count_whitelist = "test"
# vars.snapshot_count_match_names = 1

}