我想在我的 varnishncsa 日志中包含以下信息(我需要将一些问题与特定用户联系起来)。
- 帖子请求的内容
- 包含完整内容的 cookie
- XID
阅读https://www.varnish-cache.org/docs/trunk/reference/varnishncsa.html后,我不太确定如何实现它。
顺便说一句,我无法将“varnishncsa”标签添加到问题中 - 有人可以添加它(具有更高的声誉?:P)。
我想在我的 varnishncsa 日志中包含以下信息(我需要将一些问题与特定用户联系起来)。
阅读https://www.varnish-cache.org/docs/trunk/reference/varnishncsa.html后,我不太确定如何实现它。
顺便说一句,我无法将“varnishncsa”标签添加到问题中 - 有人可以添加它(具有更高的声誉?:P)。
我有使用 pnp4nagios 的 nagios 基础设施。最后几天我添加了新的主机 nosql 和安装在那里的 mongodb 警报。
主机配置:
define host{
host_name nosql
use linux-server,host-pnp
address xxx.xxx.xx.xxx
}
服务配置:
define service{
hostgroup_name nosql-servers
use generic-service,pnp-service
service_description MongoDB Connect
check_command check_nrpe!check_mongo_connect
}
它们的配置方式似乎与其他配置方式相同。但是,当我尝试访问 pnp4nagios 中的图形时,我得到:
Please check the documentation for information about the following error.
XML file "/usr/local/pnp4nagios/var/perfdata/nosql/MongoDB_Connect.xml" not found. Read FAQ online
file [line]:
application/models/data.php [312]:
我有点帮助。
我应该如何激活新图表?
今天我注意到我的 LDAP 服务器 (OpenDS) 在每个可用内核上都占用了 100% 的 CPU。快速诊断显示在 futex 锁定期间有很多 ETIMEDOUT。
我如何调试它以弄清楚发生了什么以及如何修复它?
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779077, {1342114766, 309244206}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779079, {1342114766, 309528293}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779081, {1342114766, 309812186}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779083, {1342114766, 310107537}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779085, {1342114766, 310406075}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779087, {1342114766, 310705339}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779089, {1342114766, 311018839}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779091, {1342114766, 311315446}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779093, {1342114766, 311632617}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779095, {1342114766, 311951779}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779097, {1342114766, 312278610}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f7ecf9053a4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1540779099, {1342114766, 312601929}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
futex(0x7f7ecf9053d0, FUTEX_WAKE_PRIVATE, 1) = 0
不确定它是否相关 - 但我还注意到 Redmine(Ruby 应用程序)具有类似的“功能”......帮助:)
我正在使用 pnp4nagios 和 nagios。
一切似乎都已正确集成 - 我在每个链接到 pnp4nagios 图形的主机和服务附近都有“额外操作”图标。
但是,当我访问https://xxxx/pnp4nagios/时,它总是将 url 更改为:
https://x.x.x.x/pnp4nagios/graph?host=webhost01
我怎样才能关闭这种行为?
我想在 /pnp4nagios/ 上查看从所有服务器收集的图表。