我有pnp4nagios工作的nagios基础设施。 最后几天,我添加了新的主机nosql,并在那里安装了mongodb的警报。
主机configuration:
define host{ host_name nosql use linux-server,host-pnp address xxx.xxx.xx.xxx }
服务configuration:
define service{ hostgroup_name nosql-servers use generic-service,pnp-service service_description MongoDB Connect check_command check_nrpe!check_mongo_connect }
他们似乎像其他人一样configuration。 但是,当我试图访问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]:
我有点帮助。
我应该如何激活新图?
问题可能出在你的显示器check_mongo_connect的输出上。 除非设置为发送附加数据,否则PNP将无法将其提取出来。 如果你看到你需要做什么,我会查看一个插件的输出(通过shell命令),你得到的PNP数据。
有关更多信息,请参阅以下内容: http : //nagios.sourceforge.net/docs/3_0/perfdata.html
您需要编写一个模板来告诉pnp4nagios如何处理来自“MongoDB Connect”服务的输出(normal或perfdata); 它不会奇迹般地为新的/未知的检查types创build图表。
请参阅文档中的模板部分