Site Tools


linux:ubuntu:icinga2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ubuntu:icinga2 [2017/06/19 11:10] lunetikklinux:ubuntu:icinga2 [2018/12/20 17:45] (current) – Discussion status changed lunetikk
Line 3: Line 3:
 More coming soon, check the Icinga2 docs or the Monitoring-Portal for info. 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 - getting started]]\\+[[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]] [[http://www.monitoring-portal.org/wbb/index.php?page=Index|Monitoring Portal]]
  
 ===== Installation ===== ===== Installation =====
  
-coming soon+<code> 
 +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 
 +</code> 
 + 
 +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 ===== ===== Configuration =====
Line 16: Line 27:
 ==== .conf-files ==== ==== .conf-files ====
  
-coming soon+more coming soon 
 + 
 +=== Checkcommands === 
 + 
 +== check_nrpe == 
 + 
 +<code> 
 +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 
 + 
 +
 +</code> 
 + 
 +== check_http == 
 + 
 +<code> 
 +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 
 +
 +</code> 
 + 
 +== check_ssh == 
 + 
 +<code> 
 +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 
 +
 +</code> 
 + 
 +== check_smtp == 
 + 
 +<code> 
 +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 
 +
 +</code> 
 + 
 +== check_dns == 
 + 
 +<code> 
 +object CheckCommand "check_dns"
 +  import "plugin-check-command" 
 +  command = [ PluginDir + "/check_dns"
 +  arguments = { 
 +        "-H" = "$dns_host$" 
 +        "-s" = "$address$" 
 +        "-a" = "$dns_address$" 
 + "-t" = "$dns_timeout$" 
 +  } 
 + 
 +
 +</code> 
 + 
 +== check_tcp == 
 + 
 +<code> 
 +object CheckCommand "check_tcp"
 +  import "plugin-check-command" 
 +  command = [ PluginDir + "/check_tcp"
 +  arguments = { 
 +        "-H" = "$tcp_address$" 
 +        "-p" = "$tcp_port$" 
 +  } 
 + 
 +
 +</code> 
 + 
 +== check_procs == 
 + 
 +<code> 
 +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$" 
 +  } 
 +
 +</code> 
 + 
 +== check_fail2ban == 
 + 
 +<code> 
 +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$" 
 +  } 
 +
 +</code> 
 + 
 +== check_esx_hardware == 
 + 
 +<code> 
 +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$" 
 +  } 
 + 
 +
 +</code> 
 + 
 +== check_esx_volumes == 
 + 
 +<code> 
 +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$" 
 +  } 
 + 
 +
 +</code> 
 + 
 +== check_vmware_snapshots == 
 + 
 +<code> 
 +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$" 
 +  } 
 + 
 +
 +</code> 
 + 
 +== check_nwc_hardware == 
 + 
 +<code> 
 +object CheckCommand "check_nwc_hardware"
 +  import "plugin-check-command" 
 +  command = [ PluginDir + "/check_nwc_health"
 +  arguments = { 
 +        "--hostname" = "$address$" 
 +        "--community" = "$nwc_community$" 
 +        "--mode" = "$nwc_mode$" 
 +  } 
 + 
 +
 +</code> 
 + 
 +== check_snmp_disk == 
 + 
 +<code> 
 +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$" 
 +  } 
 + 
 +
 +</code> 
 + 
 +== check_snmp_load == 
 + 
 +<code> 
 +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$" 
 +  } 
 + 
 +
 +</code> 
 + 
 +== check_snmp_zpool == 
 + 
 +<code> 
 +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$" 
 +  } 
 + 
 +
 +</code>
  
 === Conditions === === Conditions ===
Line 38: Line 354:
 \\ \\
 \\ \\
-~~DISCUSSION~~+~~DISCUSSION:closed~~
linux/ubuntu/icinga2.1497863402.txt.gz · Last modified: 2017/06/19 11:10 by lunetikk