AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-371960

dcos's questions

Martin Hope
dcos
Asked: 2016-09-07 03:18:57 +0800 CST

普罗米修斯警报管理器

  • 0

我试图让 Prometheus 通过警报管理器在 Docker 容器中发送警报。我已成功发出 Prometheus 警报,但这些警报未传递给同一主机上的警报管理器

两个容器都可以正常运行,并且配置可以从指定的卷中正确安装,您可以使用 WebUI 进行检查。但是,当我触发警报并且它显示为正在触发时。警报管理器中没有出现警报

这是我用来启动两个容器的 docker 命令

docker run -d -p 9090:9090 --name=prom_server -v /prometheus-data/prometheus.yml:/etc/prometheus/prometheus.yml -v /prometheus-data/alert.rules:/etc/prometheus/alert.rules prom/prometheus -config.file=/etc/prometheus/prometheus.yml -alertmanager.url=http://10.1.1.10:9093

这是警报管理器 docker 实例

docker run -d -p 9093:9093 --name=prom_alertmanager -v /prometheus-data/alertmanager.conf:/alertmanager.conf prom/alertmanager -config.file=/alertmanager.conf

当我用 docker inspect 检查这个时,我可以看到正在传递的参数

[root@myserver]# docker inspect prom_server
...
"Cmd": [
                "-config.file=/etc/prometheus/prometheus.yml",
                "-alertmanager.url=http://10.196.106.41:9093"
            ],
...

我已经检查过了,我看不到您在 Prometheus 服务器配置中指定 alertmanager URL 的其他任何地方。然而,没有警报从一个传递到另一个。我没有运行 iptables。我在这里错过了什么吗?

docker
  • 1 个回答
  • 2810 Views
Martin Hope
dcos
Asked: 2016-08-24 08:34:16 +0800 CST

Juniper Netscreen 电子邮件警报 SSG-550M

  • 0

我在 NSRP 组活动/活动中的 2 SSG-550M 上的 Netscreen 6.3r22 上配置电子邮件警报时遇到一些问题。我知道通过需要身份验证的邮件服务器发送 SMTP 警报是有限制的,但是邮件似乎根本不是从防火墙生成的

当我打开调试并检查

debug sendmail all
get db stream

我得到这个令人困惑的输出

## 2016-08-23 16:37:50 : Notify (1)
## 2016-08-23 16:37:50 : Prepare to send mail [sort=0]
## 2016-08-23 16:37:50 : Mail server name : mail.example.com
## 2016-08-23 16:37:50 : begin to send event alarm, start time=78611, current time=79211, max entries=102
## 2016-08-23 16:37:50 : total event alarm record 2 retrieved, start_time=78611
## 2016-08-23 16:37:50 : fail to send no 0 due to (log time[78878] < last_sent_event_time [79211] && allowed to email [0])
## 2016-08-23 16:37:50 : fail to send no 1 due to (log time[78857] < last_sent_event_time [79211] && allowed to email [0])
## 2016-08-23 16:37:50 : last event id = -1
## 2016-08-23 16:37:50 : Event alarm: Log entries sent out=0, Last Log entry id=-1, time=79211

我已经配置了邮件服务器和管理员地址

Mail Alert: On, Mail Server: mail.example.com
E-Mail Address: [email protected]
E-Mail Traffic Log: Off
Configuration Format: DOS
Device Reset: Enabled
Hardware Reset: Enabled
Admin privilege: read-only (Remote admin has read-only privileges)
Max Failed Admin login attempts: 10
Lock admin accounts on auth failure: On, locking time 1 minutes
HTTP redirect: true

我没有看到邮件服务器受到任何影响,但我似乎无法在瞻博网络论坛上找到对这些故障类型的解释。从这个输出中,对我来说,邮件似乎没有发送,但我不明白为什么。

juniper netscreen
  • 1 个回答
  • 210 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve