自动将客户端添加到nagios服务器 [英] automatically add clients to nagios server

查看:112
本文介绍了自动将客户端添加到nagios服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Linux环境,该环境具有超过50台服务器,并且由Nagios进行监视.现在,我们正在使用基于Python Web的GUI创建新服务器,我们需要将它们手动添加到nagios服务器.现在,我们想将新服务器自动添加到nagios.有什么方法可以将新服务器自动添加到nagios?

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?

预先感谢

推荐答案

Nagios不支持此功能.话虽如此,创建一个Python脚本来自动执行任务将相当容易.至少,您必须为其提供计算机名称和IP地址的列表,然后让脚本执行所有.cfg文件更新.用Perl做到了这一点,花了不到一天的时间,它添加了主机和一些基本的基础检查.

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.

这篇关于自动将客户端添加到nagios服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆