Posts by vladimirmezera

This forum was archived to /woltlab and is now in read-only mode.

    Hi,


    we use last version of Icingaweb2 and last version of module Director.


    Is there option to create apply rule on service where hostgroup_name like %group_prefix%. It looks that match in hostgroup name is not supported in icinga2?


    Does it correct?


    Thanks


    VM

    Hi,


    i want extend component service grid in my own plugin. But if i have mysql database and add custom variable for sorting records.


    Hi,


    we use passive checks by Icinga2 REST API to setup status and performace data. Can we configure these passive sonds to setup state as "UKNOWN" or "ERROR" when requests by Icinga2 REST API aren't sended?


    Thx


    VM

    Hi,


    we use Director in version 1.3.2. We create hosts and these hosts are in configuration e.g.

    zones.d/master/hosts.conf


    Code
    1. object Host "TEST" {
    2. import "generic-host2"
    3. display_name = "TEST"
    4. address = "127.0.0.1"
    5. }


    But services in zones are setup to

    zones.d/director-global/service_templates.conf

    Code
    1. template Service "test-ssh" {
    2. check_command = "ping4"
    3. }


    Is it ok? We setup e.g. service to zone 'master', but service is still created to this configuration.

    Hi,


    we've got a problem with sync hosts by REST API. When we did sync (call REST API POST update command on host --> add attribute), then attributes in Icingaweb2 looks OK. But if we restart server new rules are not apply. Attribute is not in

    /var/lib/icinga2/api/packages/_api/ but in modified-attributes.conf config file.


    If we watch HOST by REST API, configuration looks like:


    original_attributes: {

    address: "182.25.45.334",

    display_name: "example",

    vars: {

    xx: "Server",

    yy: "110",

    critical: "CRITICAL",

    env: "PROD",


    },

    zone: "master"

    },

    package: "_api",

    paused: false,

    retry_interval: 10,

    state: 0,

    state_type: 1,

    templates: [

    "Server_110",

    "generic-host"

    ],

    type: "Host",

    vars: {

    app: [

    "TEST Production"

    ],

    appkey: [

    "2051"

    ],

    critical: "CRITICAL",

    env: "PROD",

    },



    Apply rules test attribute


    app: ["TEST Production"]


    If host is created with this attribute, everythink works.



    icinga2 --version


    Copyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/)


    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>


    This is free software: you are free to change and redistribute it.


    There is NO WARRANTY, to the extent permitted by law.



    Application information:


    Installation root: /usr


    Sysconf directory: /etc


    Run directory: /run


    Local state directory: /var


    Package data directory: /usr/share/icinga2


    State path: /var/lib/icinga2/icinga2.state


    Modified attributes path: /var/lib/icinga2/modified-attributes.conf


    Objects path: /var/cache/icinga2/icinga2.debug


    Vars path: /var/cache/icinga2/icinga2.vars


    PID path: /run/icinga2/icinga2.pid



    System information:


    Platform: Red Hat Enterprise Linux Server


    Platform version: 7.1 (Maipo)


    Kernel: Linux


    Kernel version: 3.10.0-229.20.1.el7.x86_64


    Architecture: x86_64



    Build information:


    Compiler: GNU 4.8.5


    Build host: unknown


    version of icingaweb2 is 2.4.1