critical/config: ICINGA2 hosts.conf file

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.
  • Hello all


    I got a strange problem, I defined a new host in hosts.conf shows as below, but when I reload icinga2, error comes


    object Host "ctu01" {

    import "snmp-host"

    address = "ctu01"

    vars.agent = "snmp"

    vars.network_interfaces = ["VL152"]

    }


    Dec 25 01:16:35 ICINGA2 icinga2[15085]: /etc/icinga2/conf.d/hosts.conf(20): object Host "ctu01" {

    Dec 25 01:16:35 ICINGA2 icinga2[15085]: /etc/icinga2/conf.d/hosts.conf(21): import "snmp-host"

    Dec 25 01:16:35 ICINGA2 icinga2[15085]: ^^^^^^^^^^^^^^^^^^

    Dec 25 01:16:35 ICINGA2 icinga2[15085]: /etc/icinga2/conf.d/hosts.conf(22): address = "ctu01"

    Dec 25 01:16:35 ICINGA2 icinga2[15085]: /etc/icinga2/conf.d/hosts.conf(23): vars.agent = "snmp"

    Dec 25 01:16:35 ICINGA2 icinga2[15085]: [2017-12-25 01:16:35 -0500] critical/config: 1 error

    Dec 25 01:16:35 ICINGA2 systemd[1]: icinga2.service: control process exited, code=exited status=1

    Dec 25 01:16:35 ICINGA2 systemd[1]: Failed to start Icinga host/service/network monitoring system.

    Dec 25 01:16:35 ICINGA2 systemd[1]: Unit icinga2.service entered failed state.

    Dec 25 01:16:35 ICINGA2 systemd[1]: icinga2.service failed.


    the ICINGA2 version is 2.5.0 and the above configuration on version 2.4.1 is working well.


    Thanks