bonycamel的无聊空间

人生忧患识字始

  DonewsBlog  |  Donews首页  |  Donews社区  |  Donews邮箱  |  我的首页  |  联系作者  |  聚合   |  登录
  48篇文章 :: 0篇收藏:: 101篇评论:: 0个Trackbacks

公告


关注blog
virushuo@demo
女孩拽拽
智者乱想
北美留学征途网
郭珊
乱点英文
乱点中文
银杏站内搜索
公民记者
xuyou

counter stats
View My Stats

文章

收藏

相册

存档


正在读取评论……


所有的安装配置里面,都说将cgi.cfg的use_authentication=0,据说这样能够访问全部的页面。事实上,这是一个偷懒的做法,而且在以后必将会更正。

我们会在web页面对一些设置进行更改,在nagios的机制中,都会通过nagios.cmd。而use_authentication=0,会disable external_command_file的使用,于是,所有更改都会提示authentication错误。

正确的做法,首先,将cgi.cfg的use_authentication=1,然后我们授权用户的权限。
authorized_for_system_information=*
authorized_for_configuration_information=*
authorized_for_system_commands=siemsen
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*
*代表所有用户,也可以用逗号形式将用户逐一添入(推荐这种方法)。例如:
authorized_for_system_information=nagios,nagiosadmin,www-data,apacheuser

接着,要改变nagios.cmd所在目录/usr/local/nagios/var/rw的权限,命令如下。
chown nagios.nagiocmd /usr/local/nagios/var/rw
chmod u+rwx /usr/local/nagios/var/rw
chmod g+rwx /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw
最后重起nagios:
/etc/init.d/nagios restart
再去更新设置,就能成功了!



Trackback: http://tb.donews.net/TrackBack.aspx?PostId=1226523


[点击此处收藏本文]  发表于2007年11月08日 6:02 PM




正在读取评论……

发表评论

大名:
网址:
验证码
评论