ubuntu - Nagios Core - 如何使用 pnp4nagios 显示图形图标?

标签 ubuntu server monitoring nagios

我的 Nagios Core 服务器是 Ubuntu 20.04 LTS 设备,
我安装了 pnp4nagios 插件,它运行良好,图表显示在“http://@IP/pnp4nagios/”页面上。
但是,我正在尝试将图形图标放在 Nagios Core 上(在“服务”菜单中)
here但我不知道该怎么做。
所以拜托,我需要你的帮助。

最佳答案

我建议您尝试 action_url可用于服务和主机对象的属性。 description from the manual是:

This directive is used to define an optional URL that can be used to provide more actions to be performed on the host. If you specify an URL, you will see a red "splat" icon in the CGIs (when you are viewing host information) that links to the URL you specify here. (...)


该属性支持 macros , 所以你应该可以设置一个值 喜欢 (主机示例):
action_url  http://your_host/pnp4nagios/$HOSTNAME$
我不知道您的 pnp4nagios 实例的正确语法是什么,但是这样您可以让 Nagios 为您填写 URL 的动态部分,因此该属性可以在许多对象中重复使用(通过例如模板)。

关于ubuntu - Nagios Core - 如何使用 pnp4nagios 显示图形图标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72015884/

相关文章:

C - 使用进程监视文件

java - 网址为 : "/servlet" goes to "ip/servlet" instead of "ip/app/servlet"

ubuntu - Cassandra 时间戳数据类型

r - 如何在 Ubuntu 16.04 和 17.04 上安装 Tidyverse

c - 为什么bind函数返回-1(绑定(bind)失败)?

java - 将图像从java客户端发送到python服务器

ubuntu - Ansible 和 GCE 中的其他图像

heroku - 如何暂时停止 Heroku 服务器上的事件以防止被计费

apache-kafka - 监控kafka的UI工具

没有签名的c++监视功能