六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 73|回复: 0

nagiosbp,nagvis 整合到opsview

[复制链接]

升级  32.67%

27

主题

27

主题

27

主题

秀才

Rank: 2

积分
99
 楼主| 发表于 2013-2-7 00:54:51 | 显示全部楼层 |阅读模式
整合nagvis nagiosbpopsview 帮助手册
1)登陆一台已经安装了 nagvisnagiosboopsview的机器,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>
<!--[if !supportLists]-->3)  <!--[endif]-->到/usr/local/nagios/etc/opsview.conf 中复制$authtkt_shared_secret= "复制该key";替换第二步中的红色key
 
<!--[if !supportLists]-->4)  <!--[endif]-->修改/usr/local/opsview-web/opsview_web.yml 设置authtkt_ignoreip 1
Controller::Root:
  authtkt_ignoreip: 1
 
<!--[if !supportLists]-->5)  <!--[endif]-->进入opsview>advanced>modules>  点击右上角 actions >create new modules > 填写 bpnagvis的名字和url地址 然后勾选enabled
 



 
最后重启电脑就可以了
 

by:pako
email:zealzpc@gmail.com
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表