====== Icinga2 ======
More coming soon, check the Icinga2 docs or the Monitoring-Portal for info.
[[http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/getting-started#getting-started|docs.icinga.org]]\\
[[http://www.monitoring-portal.org/wbb/index.php?page=Index|Monitoring Portal]]
===== Installation =====
wget -O - https://packages.icinga.com/icinga.key | apt-key add -
echo 'deb http://packages.icinga.org/ubuntu icinga-trusty main' > /etc/apt/sources.list.d/icinga-main-trusty.list
apt-get update
apt-get install icinga2
#ITS DEPRECATED https://github.com/icinga/icinga2/issues/5102
#Check https://lunetikk.de/doku.php?id=linux:ubuntu:icingaweb2
apt-get install icinga2-classicui
If you are not using "trusty", get your repository here: [[https://www.icinga.com/docs/icinga2/latest/doc/02-getting-started/|Icinga2 - Getting Started]]
===== Configuration =====
coming soon
==== .conf-files ====
more coming soon
=== Checkcommands ===
== check_nrpe ==
object CheckCommand "check_nrpe" {
import "plugin-check-command"
command = [ PluginDir + "/check_nrpe" ]
arguments = {
"-H" = "$address$"
"-c" = "$nrpe_command$"
"-a" = "$nrpe_attributes$"
"-n" = {
set_if = "$nrpe_nossl$"
}
"-t" = {
set_if = "$nrpe_timeout$"
}
}
vars.nrpe_nossl = true
vars.nrpe_timeout = false
}
== check_http ==
object CheckCommand "check_http" {
import "plugin-check-command"
command = [ PluginDir + "/check_http" ]
arguments = {
"-H" = "$http_vhost$"
"-I" = "$http_address$"
"-u" = {
set_if = "$http_uri$"
}
"-p" = "$http_port$"
"-S" = {
set_if = "$http_ssl$"
}
"--sni" = {
set_if = "$http_sni$"
}
"-a" = {
value = "$http_auth_pair$"
description = "Username:password on sites with basic authentication"
}
"--no-body" = {
set_if = "$http_ignore_body$"
}
"-r" = "$http_expect_body_regex$"
"-w" = "$http_warn_time$"
"-c" = "$http_critical_time$"
"-C" = "$http_critdays$"
"-e" = "$http_expect$"
"-s" = "$http_string$"
"-f" = "$http_follow$"
}
vars.http_address = "$address$"
vars.http_ssl = false
vars.http_sni = false
}
== check_ssh ==
object CheckCommand "check_ssh" {
import "plugin-check-command"
command = [ PluginDir + "/check_ssh" ]
arguments = {
"-H" = "$address$"
"-p" = {
set_if = "$ssh_port$"
}
"-t" = {
set_if = "$ssh_timeout$"
}
}
vars.ssh_port = false
vars.ssh_timeout = false
}
== check_smtp ==
object CheckCommand "check_smtp" {
import "plugin-check-command"
command = [ PluginDir + "/check_smtp" ]
arguments = {
"-H" = "$address$"
"-p" = {
set_if = "$smtp_port$"
}
"-t" = {
set_if = "$smtp_timeout$"
}
}
vars.smtp_port = false
vars.smtp_timeout = false
}
== check_dns ==
object CheckCommand "check_dns" {
import "plugin-check-command"
command = [ PluginDir + "/check_dns"]
arguments = {
"-H" = "$dns_host$"
"-s" = "$address$"
"-a" = "$dns_address$"
"-t" = "$dns_timeout$"
}
}
== check_tcp ==
object CheckCommand "check_tcp" {
import "plugin-check-command"
command = [ PluginDir + "/check_tcp"]
arguments = {
"-H" = "$tcp_address$"
"-p" = "$tcp_port$"
}
}
== check_procs ==
object CheckCommand "check_procs" {
import "plugin-check-command"
command = [ PluginDir + "/check_procs" ]
arguments = {
"-w" = "$warn$"
"-c" = "$crit$"
"-C" = {
set_if = "$command$"
}
"-a" = "$argument$"
"-u" = "$user$"
}
}
== check_fail2ban ==
object CheckCommand "check_fail2ban" {
import "plugin-check-command"
command = [ PluginDir + "/check_fail2ban" ]
arguments = {
"-l" = "$f2b_log$"
"-p" = "$f2b_conf$"
"-w" = "$f2b_warn$"
"-c" = "$f2b_crit$"
}
}
== check_esx_hardware ==
object CheckCommand "check_esx_hardware" {
import "plugin-check-command"
command = [ PluginDir + "/check_esxi_hardware.py"]
timeout = 4500
arguments = {
"-H" = "$address$"
"-U" = "$esx_user$"
"-P" = "$esx_pass$"
}
}
== check_esx_volumes ==
object CheckCommand "check_esx_volumes" {
import "plugin-check-command"
command = [ PluginDir + "/check_vmware_esx.pl"]
arguments = {
"-H" = "$esx_address$"
"-f" = "$esx_login$"
"-S" = "$esx_checkstring$"
"-w" = "$esx_warn$"
"-c" = "$esx_crit$"
}
}
== check_vmware_snapshots ==
object CheckCommand "check_esx_snapshot" {
import "plugin-check-command"
command = [ PluginDir + "/check_vmware_snapshots.pl"]
arguments = {
"--server" = "$esx_address$"
"--username" = "$esx_user$"
"--password" = "$esx_pass$"
"--mode" = "$esx_checkstring$"
"--warning" = "$esx_warn$"
"--critical" = "$esx_crit$"
"--blacklist" = "$esx_blacklist$"
}
}
== check_nwc_hardware ==
object CheckCommand "check_nwc_hardware" {
import "plugin-check-command"
command = [ PluginDir + "/check_nwc_health"]
arguments = {
"--hostname" = "$address$"
"--community" = "$nwc_community$"
"--mode" = "$nwc_mode$"
}
}
== check_snmp_disk ==
object CheckCommand "check_snmp_disk" {
import "plugin-check-command"
command = [ PluginDir + "/check_snmp_disk.pl"]
arguments = {
"-H" = "$address$"
"-p" = "$community$"
"-w" = "$snmpdisk_warn$"
"-c" = "$snmpdisk_crit$"
}
}
== check_snmp_load ==
object CheckCommand "check_snmp_load" {
import "plugin-check-command"
command = [ PluginDir + "/check_snmp_load.pl"]
arguments = {
"-H" = "$address$"
"-C" = "$community$"
"-w" = "$snmpload_warn$"
"-c" = "$snmpload_crit$"
}
}
== check_snmp_zpool ==
object CheckCommand "check_snmp_load" {
import "plugin-check-command"
command = [ PluginDir + "/check_snmp_load.pl"]
arguments = {
"-H" = "$address$"
"-C" = "$community$"
"-w" = "$snmpload_warn$"
"-c" = "$snmpload_crit$"
}
}
=== Conditions ===
[[https://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/language-reference#conditional-statements|conditional-statements]]
if (vars.abc){
display_name = vars.abc
} else {
display_name = vars.name
}
\\
\\
~~DISCUSSION:closed~~