Posts by neohost

This forum was archived to /woltlab and is now in read-only mode. Please register a new account on our new community platform.

You can create a thread on the new site and link to an archived thread. This archive is available as knowledge base, safe and secured.

More details here.

    If you look at what was added with the command "icinga2 node update-config"

    All settings added to /etc/icinga2/repository.d/*
    If I think I'm using Bottom Up Import
    So how do I configure it to be from master to client?
    thanks for your answer :)

    1. /etc/icinga2/repository.d/zones/PC-00.conf
    2. object Zone "PC-00" {
    3. endpoints = [ "PC-00" ]
    4. parent = ""
    5. }
    1. /etc/icinga2/repository.d/hosts/PC-00.conf
    2. object Host "PC-00" {
    3. import "satellite-host"
    4. check_command = "cluster-zone"
    5. }
    1. /etc/icinga2/repository.d/endpoints/PC-00.conf
    2. object Endpoint "PC-00" {
    3. }
    1. /etc/icinga2/repository.d/hosts/PC-00/load.conf
    2. object Service "load" {
    3. import "satellite-service"
    4. check_command = "dummy"
    5. host_name = "PC-00"
    6. zone = "PC-00"
    7. }

    In the host client windows

    Now I'm trying to integrate a windows host.

    These Steps I did:

    -edit the icinga.conf and added include <windows-plugins>

    -installed the Icinga client on WindowsServer

    -Generated a Setup Ticket for the client on Icinga

    -executed sudo icinga2 node update-config on icinga

    My host appears on icinga but there are no thresholds for example at the CPU load. On /usr/share/icinga2/include/command-plugins-windows.conf are thresholds defined.

    Why they do not working?

    For each host icinga2 creates a new entry for host and service in the repository /etc/icinga2/repository.d/hosts/PC-00

    For each services there is an *.conf that looks like:

    1. object Service "load" {
    2.     import "satellite-service"
    3.     check_command = "dummy"
    4.     host_name = "PC-00"
    5.     zone = "PC-00"
    6. }

    The check_command seems not to be the right one. It should be "load-windows". But why does it work?

    In the agent icinga2 I indicated that I will not listen to any port because I want it is not to open ports on windows


    just select:

    -accept commands for master

    -accept config update from master

    How do I add services for a windows client that only has icinga2 agent?

    The windows client added it by generating the ticket and adding it as a node, but I put the values of critical and warning and it does not work.
    the windows host is automatically added to /etc/icinga2/repository.d/

    in the agent to indicate that windows made connection to the master.
    is necessary to use add-ons such as nsclient++, nscp or nrpe?

    if but how to define it so that it only applies to a hosts and that all the others use the one that is by default, without having to define another service more for that host that has different PluginDir

    could you apply a for or filter in templates.conf?

    or in services.conf?

    Example where I assign a service for several hosts but there is a server to which I do not have root access and the address of the plugins can not be the same as the others

    In constants.conf set PluginDir to / usr / lib / nagios / plugins /

    But in this case I need a different dir to monitor a single hosts to which I do not have access to root

    Sorry my english is not very good ^^
    I hope I have explained ^^


    apply Service "checkswap" {

    import "generic-service"

    check_command = "checkbyssh"

    vars.by_ssh_command = PluginDir + "/check_swap -w $swap_warn$ -c $swap_crit$"

    vars.swap_warn = "90%"

    vars.swap_crit = "85%"

    assign where (host.address || host.address6) && host.vars.os == "LinuxOS"



    object Host "" {

    /* Import the default host template defined in `templates.conf`. */

    import "generic-host"

    address = ""

    address6 = ""

    vars.by_ssh_address = ""

    vars.by_ssh_port = "22"

    vars.by_ssh_logname = "usernoroot"



    object CheckCommand "checkbyssh" {

    import "plugin-check-command"

    import "ipv4-or-ipv6"

    command = [ PluginDir + "/check_by_ssh" ]

    arguments = {

    "-H" = "$by_ssh_address$"

    "-p" = "$by_ssh_port$"

    "-C" = "$by_ssh_command$"

    "-l" = "$by_ssh_logname$"

    "-i" = "$by_ssh_identity$"

    "-q" = {

    set_if = "$by_ssh_quiet$"


    "-w" = "$by_ssh_warn$"

    "-c" = "$by_ssh_crit$"

    "-t" = "$by_ssh_timeout$"

    "-o" = "StrictHostKeyChecking=no"


    vars.by_ssh_address = "$check_address$"

    vars.by_ssh_quiet = false