nagiosbp,nagvis 整合到opsview

整合nagvis nagiosbpopsview 帮助手册

1)登陆一台已经安装了 nagvisnagiosboopsview的机器,apach安装好mod_auth_tkt.so 模块

 

2)  编辑 /etc/httpd/nagvis.conf,在文件最后添加一下内容

</Directory>

Alias /nagvis /usr/local/nagios/nagvis

ProxyPass /nagvis !

# Have two authentication options for Nagvis.

# Authtkt requires the AuthTkt apache module and allows single-sign-on with Opsview

# Set this to the same as the shared secret in opsview.conf

TKTAuthSecret "CAD78B90-4A2E-11E0-8DC7-2629A211B844"

<Location /nagvis>

#  Order allow,deny

#  Allow from all

AuthType None

TKTAuthLoginURL /login?app=nagvis

TKTAuthTimeout 86400s

# Set below if you are getting "ticket is invalid" messages and you have multiple proxies in front of Opsview

# You also need to set 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值