Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
centos:web_c7:icinga:config_1 [05.05.2015 19:39. ] – [Remotehost-Konfiguration] djangocentos:web_c7:icinga:config_1 [05.05.2015 20:19. ] – [Remotehost-Konfiguration] django
Zeile 475: Zeile 475:
    OK - load average: 0.13, 0.13, 0.09|load1=0.130;15.000;30.000;0; load5=0.130;10.000;25.000;0; load15=0.090;5.000;20.000;0;    OK - load average: 0.13, 0.13, 0.09|load1=0.130;15.000;30.000;0; load5=0.130;10.000;25.000;0; load15=0.090;5.000;20.000;0;
  
 +   # vim /etc/icinga2/conf.d/commands/by_ssh.conf
 +<code>//Django : 2015-05-05
 +object CheckCommand "by_ssh" {
 +  import "plugin-check-command"
  
 +  command = [ PluginDir + "/check_by_ssh" ]
 +
 +  arguments = {
 +    "-H" = "$by_ssh_host$"
 +    "-p" = "$by_ssh_port$"
 +    "-4" = {
 +             set_if = "$by_ssh_ipv4$"
 +           }
 +    "-6" = {
 +             set_if = "$by_ssh_ipv6$"
 +           }
 +    "-1" = {
 +             set_if = "$by_ssh_version1$"
 +           }
 +    "-2" = {
 +             set_if = "$by_ssh_version2$"
 +           }
 +    "-S" = "$by_ssh_skip_stdout$"
 +    "-E" = "$by_ssh_skip_stderr$"
 +    "-f" = {
 +             set_if = "$by_ssh_fork$"
 +           }
 +    "-C" = "$by_ssh_command$"
 +    "-l" = "$by_ssh_user$"
 +    "-i" = "$by_ssh_keyfile$"
 +    "-O" = "$by_ssh_output$"
 +    "-s" = "$by_ssh_services$"
 +    "-n" = "$by_ssh_name$"
 +    "-o" = "$by_ssh_option$"
 +    "-F" = "$by_ssh_configfile$"
 +    "-q" = {
 +             set_if = "$by_ssh_quiet$"
 +           }
 +    "-w" = "$by_ssh_warn$"
 +    "-c" = "$by_ssh_crit$"
 +    "-t" = "$by_ssh_timeout$"
 +
 +  }
 +}
 +</code>
 +
 +
 +   # vim /etc/icinga2/conf.d/nausch.org/services/by_ssh.conf
 +<file cc+ /etc/icinga2/conf.d/nausch.org/services/by_ssh.conf>
 +// Django: 2015-05-05
 +
 +apply Service for (by_ssh => config in host.vars.by_ssh) {
 +  import "generic-service"
 +
 +  check_command = "by_ssh"
 +  command_endpoint = host.vars.remote_client
 +
 +  vars += config
 +
 +  assign where host.vars.remote_client
 +}
 +</file>
  
 ==== Bridging ==== ==== Bridging ====
  • centos/web_c7/icinga/config_1.txt
  • Zuletzt geändert: 20.04.2018 10:36.
  • von 127.0.0.1