分类: LINUX
2010-02-05 20:29:06
cd ...nagios/etc cp nagios.cfg-sample nagios.cfg cp commands.cfg-sample commands.cfg cp cgi.cfg-sample cgi.cfg cp localhost.cfg-sample localhost.cfg .... |
use_authentication=1 (默认) default_user_name=nagios authorized_for_system_information=nagiosadmin,nagios authorized_for_configuration_information=nagiosadmin,nagios authorized_for_system_commands=nagiosadmin,nagios authorized_for_all_services=nagiosadmin,nagios authorized_for_all_hosts=nagiosadmin,nagios authorized_for_all_service_commands=nagiosadmin,nagios authorized_for_all_host_commands=nagiosadmin,nagios |
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg |
Total Warnings: 0 Total Errors: 0 |
/etc/rc.d/init.d/nagios start |
/usr/bin/htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios |