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

 nagiosbp,nagvis 整合到opsview

nagiosbp,nagvis 整合到opsview


 

最后重启电脑就可以了

 

by:pako

email:[email protected]