Nagios Core-如何使用PNP4NAGIOS显示图标?

发布于 2025-01-24 09:05:41 字数 275 浏览 2 评论 0原文

我的Nagios Core Server是Ubuntu 20.04 LTS设备, 我安装了PNP4NAGIOS插件,并且效果很好,图形显示在“ http://@ip/pnp4nagios/”页面上。

但是,我试图将图形图标放在Nagios Core(在“服务菜单”中) 在这里,但我不知道该怎么做。

所以请,我需要您的帮助。

My Nagios Core server is an Ubuntu 20.04 LTS device,
I installed pnp4nagios plugins and it works well, the graphs are displaying on the "http://@IP/pnp4nagios/" page.

However, I'm trying to put the graph icons on Nagios Core (in the Services menu)
here but I don't know how to do it.

So please, I need your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怂人 2025-01-31 09:05:41

我建议您使用可用于服务和主机对象的action_url属性。 手册中的描述

该指令用于定义可选的URL,该URL可用于提供更多在主机上执行的操作。如果指定URL,则会在CGIS(查看主机信息)中看到一个红色的“ Splat”图标,该图标链接到您在此处指定的URL。 (...)

此属性支持,因此您应该能够设置一个值喜欢(主机示例):

action_url  http://your_host/pnp4nagios/$HOSTNAME$

我不知道您的pnp4nagios实例的正确语法是什么,但是这样您就可以让Nagios填写为您提供的动态部分,因此可以在许多对象上重复使用该属性(例如,通过模板)。

I would suggest that you experiment with the action_url attribute which is available for service and host objects. The description from the manual is:

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. (...)

This attribute supports macros, so you should be able to set a value like (host example):

action_url  http://your_host/pnp4nagios/$HOSTNAME$

I don't know what the correct syntax would be for your pnp4nagios instance, but this way you can have Nagios fill in the dynamic part of the URL for you, and as such the attribute can be re-used across many objects (through a template for example).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文