Instantly share code, notes, and snippets.

Embed
What would you like to do?
Icinga2 Centreon Commands Integration
object CheckCommand "centreon-snmp-load" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::linux::snmp::plugin"
"--mode" = "load"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
}
}
object CheckCommand "centreon-snmp-load-win" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::windows::snmp::plugin"
"--mode" = "load"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
object CheckCommand "centreon-snmp-memory" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::linux::snmp::plugin"
"--mode" = "memory"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
}
}
object CheckCommand "centreon-snmp-memory-win" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::windows::snmp::plugin"
"--mode" = "memory"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
object CheckCommand "centreon-snmp-swap" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::linux::snmp::plugin"
"--mode" = "swap"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
}
}
object CheckCommand "centreon-snmp-swap-win" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::windows::snmp::plugin"
"--mode" = "swap"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
object CheckCommand "centreon-snmp-interfaces" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::linux::snmp::plugin"
"--mode" = "interfaces"
"--hostname" = "$address$"
"--name" = "$snmp_interface$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
// "--warning" = "$snmp_warn$"
// "--critical" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
object CheckCommand "centreon-snmp-interfaces-win" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::windows::snmp::plugin"
"--mode" = "interfaces"
"--hostname" = "$address$"
"--interface" = "$snmp_interface$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
// "--warning" = "$snmp_warn$"
// "--critical" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
object CheckCommand "centreon-snmp-interfaces-list-win" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::windows::snmp::plugin"
"--mode" = "list-interfaces"
"--hostname" = "$address$"
"--name" = "$snmp_interface$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
// "--warning" = "$snmp_warn$"
// "--critical" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
object CheckCommand "centreon-snmp-storage" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::linux::snmp::plugin"
"--mode" = "storage"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning-usage" = "$snmp_warn$"
"--critical-usage" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
object CheckCommand "centreon-snmp-storage-win" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::windows::snmp::plugin"
"--mode" = "storage"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
object CheckCommand "centreon-snmp-cpu" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::linux::snmp::plugin"
"--mode" = "cpu"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
}
}
object CheckCommand "centreon-snmp-cpu-win" {
import "plugin-check-command"
command = [ "/home/icinga2/centreon-plugins/centreon_plugins.pl"]
arguments = {
"--plugin" = "os::windows::snmp::plugin"
"--mode" = "cpu"
"--hostname" = "$address$"
"--snmp-version" = "2c"
"--snmp-community" = "$snmp_community$"
"--warning" = "$snmp_warn$"
"--critical" = "$snmp_crit$"
"--range-perfdata" = "1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment