Skip to content

Icinga2 Check for monitoring the Age und Count of VMware Snapshots

License

Notifications You must be signed in to change notification settings

Chucy/icinga2_vmware_snapshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

}

About

Icinga2 Check for monitoring the Age und Count of VMware Snapshots

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages