问题标签 [icinga2]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
4443 浏览

linux - icinga2 监控一个 linux 服务正在运行

我有一台运行 Plex 的服务器和另外两个我想用 Icinga2 监控的服务,而在我的一生中,我无法弄清楚如何让它工作。如果我运行以下命令:

当我手动杀死 Plex 时,它会返回以下内容:

我只是不知道如何将此检查添加到服务器..我把它放在哪里?

我尝试向 /etc/icinga2/conf.d/services.conf 添加另一个声明,如下所示:

但是代理根本不会启动。

0 投票
1 回答
358 浏览

ssl - Logstash 的 Icinga 输出插件导致 OpenSSL::SSL::SSLError:certificate verify failed 问题

嗨,我已经为 Icinga 2 安装了 logstash 插件。我已经通过发布设置了 API icinga2 api setup,然后重新启动了 Icinga 2 服务。

我正在使用 /etc/icinga2/conf.d/api-users.conf 中提供的 Icinga 2 API 用户名和密码,并尝试将一些日志从 Logstash 推送到 Icinga 2 并得到以下问题

这是我的配置文件

我是否需要在 pki/ca.crt 中提供的请求中传递 SSL 证书的路径。有没有办法在 Logstash 中禁用 SSL 验证?请帮助我解决问题的原因

0 投票
2 回答
453 浏览

http-headers - 如何通过模板将多个标头传递给 Icinga2 check_http?

在 Icinga2 hosts.conf 中,我可以添加:http_header = "HOST: myhost.mycorp.com"

我的 check_http 将其作为标题发送。我还想添加 http_header = "ACCEPT: / "

我如何在语法上做到这一点?在命令行上check_http,我可以添加多个-k选项。

0 投票
1 回答
669 浏览

nagios - 使用 Icinga2 为 nagios 核心安装 Dell Open manage Plugin?

有没有人在 icinga2 安装上成功安装了适用于 Nagios 核心的 Dell open Manage 插件?

在 CentOS7 上安装 icinga2 的 Nagios 核心安装位置是什么?

我无法继续询问 Nagios 核心的安装位置。提供无效的安装位置会退出安装过程

插件 URL: https ://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/Dell/Dell-EMC-OpenManage-Plug-2Din-for-Nagios-Core/details 当我开始安装插件时,它会询问Nagios 核心安装的位置。由于结冰是基于 Nagios 的,这可能吗?

0 投票
1 回答
525 浏览

icinga2 - Icinga2 无法启动,因为他无法加载库“db_ido_mysql”

这是错误:

有人知道我在安装过程中做错了什么吗?没有问题,我没有得到答案。

0 投票
2 回答
2884 浏览

icinga2 - API 未将文件同步到 Icinga2 卫星

我有一个主人和一个卫星通过互联网。我无法从主服务器获取文件以同步到卫星。我正在查看 /var/lib/icinga2/api。没有区域文件。

我的主区域文件如下 -

卫星上的区域如下 -

当我运行 service icinga2 status 时,我得到以下信息 -

Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:17 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.35/s ( 321/分钟 808/5 分钟 808/15 分钟);11 月 24 日 19:35:17 master1 icinga2[21599]:[2017-11-24 19:34:17 +0000] 信息/ApiListener:来自 [51.52.53.54] 的身份“test-satellite-a”的新客户端连接: 37376 Nov 24 19:35:17 master1 icinga2[21599]:[2017-11-24 19:34:17 +0000] 警告/ApiListener:在新的 API 连接上未收到用于标识“test-satellite-a”的数据。确保在集群设置中正确配置了远程端点。11 月 24 日 19:35:17 master1 icinga2[21599]:上下文:11 月 24 日 19:35:17 master1 icinga2[21599]:(0)处理新的 API 客户端连接 11 月 24 日 19:35:17 master1 icinga2[21599]:[ 2017-11-24 19:34:27 +0000] 信息/工作队列:#7 (IdoMysqlConnection, ido-mysql) 项目数:8,速率:5.5/s(330/min 835/5min 835/15min);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:37 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.5/s ( 330/分钟 890/5分钟 890/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:47 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.33333/s ( 320/分钟 1025/5分钟 1025/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:07 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 6, rate: 5.5/s ( 330/分钟 1091/5分钟 1091/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:17 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 8, rate: 5.46667/s ( 328/分钟 1134/5分钟 1134/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:37 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.5/s ( 330/分钟 890/5分钟 890/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:47 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.33333/s ( 320/分钟 1025/5分钟 1025/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:07 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 6, rate: 5.5/s ( 330/分钟 1091/5分钟 1091/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:17 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 8, rate: 5.46667/s ( 328/分钟 1134/5分钟 1134/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:37 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.5/s ( 330/分钟 890/5分钟 890/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:47 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.33333/s ( 320/分钟 1025/5分钟 1025/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:07 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 6, rate: 5.5/s ( 330/分钟 1091/5分钟 1091/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:17 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 8, rate: 5.46667/s ( 328/分钟 1134/5分钟 1134/15分钟);ido-mysql) 项目数:2,速率:5.5/s(330/min 890/5min 890/15min);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:47 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.33333/s ( 320/分钟 1025/5分钟 1025/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:07 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 6, rate: 5.5/s ( 330/分钟 1091/5分钟 1091/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:17 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 8, rate: 5.46667/s ( 328/分钟 1134/5分钟 1134/15分钟);ido-mysql) 项目数:2,速率:5.5/s(330/min 890/5min 890/15min);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:34:47 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 2, rate: 5.33333/s ( 320/分钟 1025/5分钟 1025/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:07 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 6, rate: 5.5/s ( 330/分钟 1091/5分钟 1091/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:17 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 8, rate: 5.46667/s ( 328/分钟 1134/5分钟 1134/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:07 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 6, rate: 5.5/s ( 330/分钟 1091/5分钟 1091/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:17 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 8, rate: 5.46667/s ( 328/分钟 1134/5分钟 1134/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:07 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 6, rate: 5.5/s ( 330/分钟 1091/5分钟 1091/15分钟);Nov 24 19:35:17 master1 icinga2[21599]: [2017-11-24 19:35:17 +0000] 信息/WorkQueue: #7 (IdoMysqlConnection, ido-mysql) items: 8, rate: 5.46667/s ( 328/分钟 1134/5分钟 1134/15分钟);

任何想法这里出了什么问题?

0 投票
1 回答
1588 浏览

redis - Icinga2:在远程主机而不是主机上运行检查

我刚刚更新到需要检查远程主机的“新”方法的 Icing 2.8,所以我试图让它工作。

在 master 上,我在 zone.d 中添加了一个文件夹,其中包含远程主机的主机名。我添加了一些检查,但它们似乎都是从主机而不是远程执行的。

例如:我需要监控 Redis。我在 /etc/icinga2/zones.d/remotehostname/redis.conf 中的 redis.conf:

}

IcingaWeb 中弹出了一项新服务,但出现以下错误:

这是正确的,因为在 master 上该文件不存在。但是,它确实存在于远程主机上。

如何让 Icinga 在远程主机上执行此操作并让该主机将输出返回给主机?

0 投票
2 回答
69 浏览

icinga2 - 如何解决 icinga2 上的服务问题?

我的icinga服务器上出现此错误,您能帮我解决吗? 在此处输入图像描述

0 投票
1 回答
292 浏览

ubuntu-16.04 - 如何指定 icinga2 在调用 mail 命令时使用的 Mailbin

我在 Ubuntu xenial 机器上设置了 icinga2。我正在使用 postfix 发送电子邮件,它工作正常,即 echo "hello world" | mail -s "test subject" sammy@example.com 按预期发送电子邮件。

但是,当 icinga 发送电子邮件时,我发现以下错误消息:

/var/log/icinga2/debug.log

[2017-12-12 02:56:05 +0000] 通知/进程:PID 5512 > ('/etc/icinga2/scripts/mail-host-notification.sh' '-4' '$ $a.mydomain.com ' (PID: 5512, arguments: '/etc/icinga2/scripts/mail-host-notification.sh' '-4' '127.0.0$ Can't canonicalize "./Maildir" ./Maildir/sent: No such文件或目录未能在“./Maildir/sent”中保存消息 - 消息未发送

我知道该错误是由未设置 Maildir 目录引起的。但是,我不知道如何确定哪个用户正在调用邮件命令。我也不知道 ./Maildir/sent 中的 cwd 设置为什么。

如果有人能帮我弄清楚,我将不胜感激:

  1. 在哪里设置 Maildir
  2. 如何指定 icinga 使用的用户以便知道在哪里设置 Maildir
  3. 让 icinga 发送电子邮件的更好方法

提前致谢

0 投票
1 回答
995 浏览

icinga2 - 如何转义以美元符号 icinga2 结尾的密码?

我有几十台设备需要使用 API 脚本登录。一组设备的密码以 $ 结尾。我已经尝试了很多东西,但我似乎无法逃脱那个 $ char。这是我看到的错误。