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-78273

Michel's questions

Martin Hope
Michel
Asked: 2023-10-05 23:22:18 +0800 CST

即使 munin-run 显示数据和其他插件工作正常,Munin haproxy 插件也无法获取数据

  • 5

我有一台 Munin 服务器(2.72)可以很好地监控很多服务器。

我有一个 haproxy 服务器,其中 munin-node (2.0.73)对于每个插件都运行良好,除了 haproxy_* (haproxy_sessions_frontend、haproxy_bytes_frontend、haproxy_rate_frontend 等),它给我 NaN 值。

当我在 haproxy 服务器上本地测试插件时,我得到相关值:

# Skipping systemd properties simulation due to required systemd version (999)
# Processing plugin configuration from /etc/munin/plugin-conf.d/00-default
# Processing plugin configuration from /etc/munin/plugin-conf.d/haproxy
# Processing plugin configuration from /etc/munin/plugin-conf.d/munin-node
# Setting /rgid/ruid/ to /982/0/
# Setting /egid/euid/ to /982 982/0/
# Setting up environment
# Environment frontend = https_front haproxy-monitoring fe-letsencrypt
# Environment url = http://127.0.0.1:8080/haproxy_stats;csv;norefresh
# Environment backend = app-main haproxy-monitoring letsencrypt-backend
# About to run '/etc/munin/plugins/haproxy_sessions_frontend'
scurea490f35148af7011c03b86177948440.value 3
smaxea490f35148af7011c03b86177948440.value 25
scur4dc7a8e588e9bb787fe6e39c1c96957a.value 1
smax4dc7a8e588e9bb787fe6e39c1c96957a.value 2
scura92191189150289a82c2c4464351178c.value 0
smaxa92191189150289a82c2c4464351178c.value 5

当我从 Munin 服务器远程连接时,我得到的是:

bash-4.4$ /usr/share/munin/munin-update --debug --nofork --host servxxx.domain.tld --service haproxy_session_frontend
2023/10/05 17:12:57 [DEBUG] Creating new lock file /var/run/munin/munin-update.lock
2023/10/05 17:12:57 [DEBUG] Creating lock : /var/run/munin/munin-update.lock succeeded
2023/10/05 17:12:57 [INFO]: Starting munin-update
2023/10/05 17:12:58 [DEBUG] Creating new lock file /var/run/munin/munin-datafile.lock
2023/10/05 17:12:58 [DEBUG] Creating lock : /var/run/munin/munin-datafile.lock succeeded
2023/10/05 17:12:58 [DEBUG] Writing state to /var/lib/munin/datafile.storable
2023/10/05 17:12:58 [DEBUG] about to write '/var/lib/munin/datafile.storable'
2023/10/05 17:12:58 [INFO]: Munin-update finished (1.47 sec)

但我的 rrd 文件充满了 NaN,并且在 munin-update.log 中,每次 Munin 尝试从节点更新数据时我都会收到此警告:

2023/10/05 17:15:13 [WARNING] 6 lines had errors while 0 lines were correct (100.00%) in data from 'fetch haproxy_sessions_frontend' on haproxy.captcha/x.x.x.x:4949

我已经尝试了此页面https://guide.munin-monitoring.org/en/latest/tutorial/troubleshooting.html中的几乎所有内容,但我一无所知。相同的插件在另一个 haproxy 服务器上运行良好。主要区别是另一台服务器运行的是 Rocky Linux 8,而有问题的服务器运行的是 Rocky Linux 9

我该怎么做才能让这个插件运行?

haproxy
  • 1 个回答
  • 19 Views
Martin Hope
Michel
Asked: 2020-02-19 02:35:21 +0800 CST

Tomcat Threads 插件的 Munin 图不完整

  • 0

我的 munin 在 CentOs 网络服务器机器上运行得相当好,除了“Tomcat Threads”插件中的一个图表不完整。为什么要这样做?我的服务器远未超载。

查看不完整的图表:

穆宁图不完整

所有其他 Tomcat 图表都可以,如下所示: 穆宁图ok

当我运行以下命令时:

 munin-run tomcat_threads

大多数时候它会失败,给我同样的答案:

busy.value U
idle.value U

有时它会起作用,给我正确的价值观:

busy.value 1
idle.value 9

调试模式和日志不显示任何有用的信息。

我在跑步

  • CentOS 7.7.1908
  • 阿帕奇 2.4.6
  • 雄猫 9.0.16
  • Munin-Node 2.0.51
munin tomcat9
  • 1 个回答
  • 154 Views
Martin Hope
Michel
Asked: 2020-02-05 04:49:55 +0800 CST

两个具有相同 DocumentRoot 但不同 SSL 证书的 VHost。这甚至可能吗?

  • 1

我可以这样做:https ://www.digicert.com/kb/ssl-support/apache-multiple-ssl-certificates-using-sni.htm

但我需要这样做(注意 DocumentRoot 是故意相同的):

<VirtualHost *:443>
 ServerName www.yoursite.com
 DocumentRoot /var/www/site
 SSLEngine on
 SSLCertificateFile /path/to/www_yoursite_com.crt
 SSLCertificateKeyFile /path/to/www_yoursite_com.key
 SSLCertificateChainFile /path/to/DigiCertCA.crt
</VirtualHost>

<VirtualHost *:443>
 ServerName www.yoursite2.com
 DocumentRoot /var/www/site
 SSLEngine on
 SSLCertificateFile /path/to/www_yoursite2_com.crt
 SSLCertificateKeyFile /path/to/www_yoursite2_com.key
 SSLCertificateChainFile /path/to/DigiCertCA.crt
</VirtualHost>

该网站运行正常,但出现 https 错误:当我在浏览器中加载 www.yoursite2.com 时,如果我单击查看 ssl 证书详细信息,它会按预期显示 www.yoursite.com 而不是 yoursite2 的证书。

我需要这个,因为证书不是来自同一个机构,我不能将每个域都添加到同一个证书中。一个来自 Digicert,另一个来自 Let's encrypt。

使用 Apache 2.4.6

谢谢

ssl-certificate apache-2.4
  • 1 个回答
  • 70 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