pako 发表于 2013-2-7 00:54:51

nagiosbp,nagvis 整合到opsview

整合nagvis ,nagiosbp到opsview 帮助手册
1)登陆一台已经安装了 nagvis,nagiosbo,opsview的机器,apach安装好mod_auth_tkt.so 模块
 
2)  编辑 /etc/httpd/nagvis.conf,在文件最后添加一下内容
</Directory>
Alias /nagvis/usr/local/nagios/nagvis
ProxyPass /nagvis !
# Have twoauthentication options for Nagvis.
# Authtkt requiresthe AuthTkt apache module and allows single-sign-on with Opsview
# Set this to the sameas the shared secret in opsview.conf
TKTAuthSecret "CAD78B90-4A2E-11E0-8DC7-2629A211B844"
<Location/nagvis>
#  Orderallow,deny
#  Allow fromall
AuthType None
TKTAuthLoginURL/login?app=nagvis
TKTAuthTimeout 86400s
# Set below if youare getting "ticket is invalid" messages and you have multipleproxies in front of Opsview
# You also need toset Opsview Web to ignore ip: http://docs.opsview.com/doku.php?id=opsview-community:webauthentication
TKTAuthIgnoreIP on
require valid-user
</Location>
<!---->3)  <!---->到/usr/local/nagios/etc/opsview.conf 中复制$authtkt_shared_secret= "复制该key";替换第二步中的红色key
 
<!---->4)  <!---->修改/usr/local/opsview-web/opsview_web.yml 设置authtkt_ignoreip 为1
Controller::Root:
  authtkt_ignoreip: 1
 
<!---->5)  <!---->进入opsview>advanced>modules>  点击右上角 actions >create new modules > 填写 bp和nagvis的名字和url地址 然后勾选enabled
 http://dl.iteye.com/upload/attachment/455723/c51bcdf1-7073-35e2-af7f-b4458e6d7191.jpg、
http://dl.iteye.com/upload/attachment/455725/680477aa-3f2f-3e86-bb94-73738e1d4edd.jpg


 
最后重启电脑就可以了
 

by:pako
email:zealzpc@gmail.com
页: [1]
查看完整版本: nagiosbp,nagvis 整合到opsview