Wanting to configure Icinga director, I modified the zones.conf file and when I do:
icinga2 daemon -c
This returns me :
critical/icinga-app: Error while parsing command-line options: the required argument for option '--config' is missing
And icinga2 daemon -c /etc/icinga2/icinga.conf
Returns me :
critical/cli: Could not compile config files: Error: Function call 'std::ifstream::open' for file '/etc/icinga2/icinga.conf' failed with error code 2, 'No such file or directory'
Context:
(0) Compiling configuration file '/etc/icinga2/icinga.conf'
I modified this in zones.conf :
object Endpoint "PLC7Cbis" {
host = "127.0.0.1"
}
object Zone ZoneName {
endpoints = [ "PLC7Cbis" ]
}