一.实验描述
成都网站建设、成都网站设计的关注点不是能为您做些什么网站,而是怎么做网站,有没有做好网站,给创新互联建站一个展示的机会来证明自己,这并不会花费您太多时间,或许会给您带来新的灵感和惊喜。面向用户友好,注重用户体验,一切以用户为中心。
# vim /etc/apache2/httpd.conf \\在最后面添加一下内容
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "nagios access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd Require valid-user Alias /nagios /usr/local/nagios/share Options None AllowOverride None Order allow,deny Allow from all AuthName "nagios access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd Require valid-user |
define host { host_name 192.168.1.1 alias Hillstone Firewall \\别名 address 192.168.1.1 \\填写被监控主机IP contact_groups admins \\这个值是来自contacts.cfg文件里面,contactgroup_name后面的值 check_command check-host-alive max_check_attempts 5 notification_interval 10 notification_period 24x7 notification_options d,u,r } |
define service { host_name 192.168.1.1 service_description check-host-alive check_period 24x7 max_check_attempts 4 normal_check_interval 3 retry_check_interval 2 contact_groups admins \\此处的值同上 notification_interval 10 notification_period 24x7 notification_options w,u,c,r check_command check-host-alive \\检查主机是否存活 } |