Nagios Core-如何使用PNP4NAGIOS显示图标?
我的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您使用可用于服务和主机对象的
action_url
属性。 手册中的描述此属性支持,因此您应该能够设置一个值喜欢(主机示例):
我不知道您的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 attribute supports macros, so you should be able to set a value like (host example):
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).