automatically add clients to nagios server

拈花ヽ惹草 提交于 2019-12-08 03:33:12

问题


I have a Linux environment which having more than 50 servers and which is monitoring by Nagios. Now we are creating new servers using python web based GUI and we need to add them to nagios server manually. Now we would like to add new servers automatically to nagios. is there any method to add the new servers to nagios automatically?

Thanks in advance


回答1:


I think it's not possible to automatically add client in monitoring system, but you can add it through web browser using Nconf.




回答2:


Nagios doesn't support this out of the box. That said, it would be fairly easy to create a Python script to automate the task. At the least, you'd have to provide it with a list of machine names and IP addresses, then let the script do all the .cfg file updates. Did this with Perl, taking less than a day to write, it added the host and several basic infra checks.



来源:https://stackoverflow.com/questions/26708916/automatically-add-clients-to-nagios-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!