about-开源监控nagios.
nagios作为开源监控工具,以其快速定位故障的能力而闻名。同类软件如cacti,zabbix,gangla等等。
这里只是做个笔记。一些小技巧吧。
一.因为监控软件我们一般放在内网的主体网络中。或者通过添加路由的方式来监控整个网络。
作为内网去监控整个平台,建议取消输入用户名以及密码的功能。
方法:在apache主配置文件中添加如下带颜色的代码即可。
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" <Directory "/usr/local/nagios/sbin"> # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic satisfy any AuthUserFile /usr/local/nagios/etc/htpasswd.users # AuthUserFile /usr/local/nagios/etc/htpasswd.admin Require valid-user </Directory> Alias /nagios "/usr/local/nagios/share" <Directory "/usr/local/nagios/share"> # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic satisfy any AuthUserFile /usr/local/nagios/etc/htpasswd.users # AuthUserFile /usr/local/nagios/etc/htpasswd.admin Require valid-user </Directory> <VirtualHost *> DocumentRoot "/var/www/html/cacti" <Directory "/var/www/html/cacti"> allow from all Options +Indexes </Directory> </VirtualHost>