linux lighttpd nagiosQL
lighttpd.conf
alias添加一行,修改为: alias.url = ( "/nagios/cgi-bin" => "/usr/local/nagios/sbin", "/nagios" => "/usr/local/nagios/share/", "/nagadmin" => "/www/web/nagadmin" )
10.通过web访问配置nagios 建立文件夹 mkdir -p /etc/nagiosql/backup/services mkdir -p /etc/nagiosql/hosts mkdir -p /etc/nagiosql/services mkdir /etc/nagios mkdir /etc/nagios/import touch /etc/nagios/nagios.cfg touch /etc/nagios/cgi.cfg Permissions权限设置 chgrp www-data /etc/nagios/nagios.cfg chgrp www-data /etc/nagios/cgi.cfg chmod 775 /etc/nagios chmod 664 /etc/nagios/nagios.cfg chmod 664 /etc/nagios/cgi.cfg chgrp www-data /usr/local/nagios/etc/nagios.cfg chgrp www-data /usr/local/nagios/etc/cgi.cfg chmod 664 /usr/local/nagios/etc/nagios.cfg chmod 664 /usr/local/nagios/etc/cgi.cfg chmod 6755 /etc/nagiosql chown www-data.nagios /etc/nagiosql chmod 6755 /etc/nagiosql/hosts chown www-data.nagios /etc/nagiosql/hosts chmod 6755 /etc/nagiosql/services chown www-data.nagios /etc/nagiosql/services chown www-data.nagios /etc/nagiosql/backup chmod 6755 /etc/nagiosql/backup/hosts chown www-data.nagios /etc/nagiosql/backup/hosts chmod 6755 /etc/nagiosql/backup/services chown www-data.nagios /etc/nagiosql/backup/services chmod 644 /etc/nagiosql/*.cfg chown www-data.nagios /etc/nagiosql/*.cfg
chmod 644 /etc/nagiosql/hosts/*.cfg chown www-data.nagios /etc/nagiosql/hosts/*.cfg chown www-data.nagios /etc/nagiosql/services/*.cfg 修改/usr/local/nagios/etc/nagios.cfg #change for hugwww cfg_file=/etc/nagiosql/contactgroups.cfg cfg_file=/etc/nagiosql/contacts.cfg cfg_file=/etc/nagiosql/timeperiods.cfg cfg_file=/etc/nagiosql/commands.cfg cfg_file=/etc/nagiosql/hostgroups.cfg cfg_dir=/etc/nagiosql/hosts cfg_file=/etc/nagiosql/hosttemplates.cfg cfg_file=/etc/nagiosql/servicedependencies.cfg cfg_file=/etc/nagiosql/serviceescalations.cfg cfg_file=/etc/nagiosql/hostdependencies.cfg cfg_file=/etc/nagiosql/hostescalations.cfg cfg_file=/etc/nagiosql/hostextinfo.cfg cfg_file=/etc/nagiosql/serviceextinfo.cfg Administration -> Domains -> 修改
|
|||
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |