运维好工具-Icinga-让你的DC掌握在你的手里

近来在DevOps组工作,要管理N多机器,所以研究下数据中心的基础架构监测工具。

需求很简单:

1) 监视机器,我们有不同的物理机,虚拟机。

2) 监视部分站点

3) 磁盘监视,硬盘慢了可以报警。

看到大家用到的工作最多的就是Nagios,不过这个工具现在已经不是开源的了。所以找打了这个工具,Icinga,他是Nagios的branch演进过来的。跟Nagios的插件兼容。

好了,言归正传,下面是这个工具的安装步骤,希望你可以在一台机器上试试,这种东西看着是一会儿事,真要自己玩会碰到不少问题,如有问题,欢迎留言:

我在Evernote里记得是英文,就直接拷过来了,不太难,很容易懂的:

Follow this link to install:
https://wiki.icinga.org/display/howtos/Setting+up+Icinga+with+IDOUtils+on+Ubuntu
Notes:
     1. MUST use sudo for all commands.
     2. You can ignore the README.
     3. Use PPA instead of official package
     4. Not sure it can auto resolve the depends like apache. Saying in http://docs.icinga.org/latest/en/quickstart-icinga.html, Prerequisites

Then please check the apache config whether there is Alias icinga like below:
运维好工具-Icinga-让你的DC掌握在你的手里_第1张图片

I have apache installed before, so I have to insert the above configure manually.    
Copy from /usr/share/icinga/apache2.config, and remove the authentication part.


Wiki:
1. Icinga 1.x vs Icinga 2.x
     1.x is Nagios based and branch. The above link will install the 1.x
     2.x is rewriting to 1.x
2. Icinga Classic UI and Icinga Web
     Classic UI : cgi based. The above link will install this one.
     Icinga Web is a new one.
3. IDOUtils
     Used to connect to DB
4. cgi.cfg path
     /etc/icinga/cgi.cfg (most configure files)
5. How to change the default url for Classic UI
     https://wiki.icinga.org/display/howtos/Change+the+default+url+for+Classic+UI

Issues:
/etc/apache2/ports.config Listen 8080

http://yourhostname/icinga/

# Icinga CGI 
/usr/lib/cgi-bin

我相信每个人安装都会碰到不同的问题,我尝试写的很详细,但是那会非常长和无聊。所以,如果你碰巧在学习这个工具,然会也遇到了问题,欢迎留言,我会尽可能回复。


你可能感兴趣的:(运维好工具-Icinga-让你的DC掌握在你的手里)