简体   繁体   English

Icinga2对象ApiUser未知

[英]Icinga2 object ApiUser is unknown

I need help understanding an error why I'm seeing an error. 我需要帮助来理解错误,为什么会看到错误。 The feature api is already enabled with the correct ApiListener object, and Api logs are being updated in /var/lib/icinga2/api/log/current . 已经使用正确的ApiListener对象启用了功能api ,并且正在/var/lib/icinga2/api/log/current更新Api日志。

But I'm getting this error when I restart icinga2: 但是重新启动icinga2时出现此错误:

Error: Error while evaluating expression: The type 'ApiUser' is unknown: in /etc/icinga2/conf.d/api-users.conf: 1:0-1:20

I'm running version r2.3.10-1 of Icinga2 on Ubuntu. 我在Ubuntu上运行Icinga2的r2.3.10-1版本。

Can someone explain what the problem is? 有人可以解释是什么问题吗?

You are probably mixing the current snapshot packages with the released stable versions. 您可能正在将当前的快照软件包与已发布的稳定版本混在一起。 The 'ApiUser' object is part of the upcoming Icinga 2 v2.4 release and only available in git master (and therefore snapshot packages as well as docs). “ ApiUser”对象是即将发布的Icinga 2 v2.4版本的一部分,仅在git master中可用(因此,快照包和文档也是如此)。 The stable 2.3.x tree does not have that kind of configuration object type and therefore bails out with an error. 稳定的2.3.x树没有这种配置对象类型,因此会因出错而失败。

Remove that file or its content, you don't need it for 2.3.x. 删除该文件或其内容,2.3.x版不需要它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM