.NET开源MSSQL、Redis监控产品Opserver之安全配置

简介

Opserver是Stack Overflow的开源监控解决方案,由Stack Exchange发布,基于.NET框架构建。开源地址:https://github.com/opserver/Opserver

Opserver是Stack Exchange的一个开源监控系统,基于Net、MVC开发,所以Net程序员可以轻松基于它二次开发。它主要监控:

  • servers 
  • SQL clusters/instances 
  • redis 
  • elastic search 
  • exception logs
  • haproxy

Opserver提供详细的面板,用来快速展示被监控系统的总体情况。

配置

https://github.com/opserver/Opserver

先从GitHub上下载最新的源代码

找到Opserver\config文件夹,我们可以看到多个以"*.example"结尾的文件,如

CloudFlareSettings.json.example  //CloudFlare监控配置
DashboardSettings.json.example //仪表盘配置
ElasticSettings.json.example  //ElasticSearch监控配置
ExceptionsSettings.json.example //Exceptions异常数据监控配置
HAProxySettings.json.example //HAProxy监控配置
JiraSettings.json.example //Jira问题配置
PagerDutySettings.json.example //IT警报系统
PollingSettings.json.example //轮询(猜的)
RedisSettings.json.example //Redis监控
SecuritySettings.config.example //安全
SQLSettings.json.example //数据库
View Code

找到SecuritySettings.config.example然后把example后缀删掉,打开config文件,example中启用的默认配置为AD("ad")认证登入,其他还有“alladmin",view all。因环境中没有AD服务,这里使用"alladmin"配置登录opserver网站(即所有人都已管理员身份登录)。

<?xml version="1.0" encoding="utf-8"?>
<SecuritySettings provider="alladmin" >
    <!-- Optional, these networks can see the overview dashboard without authentication -->
    <InternalNetworks>
        <Network name="SE Internal" cidr="10.0.0.0/8" />
    </InternalNetworks>
</SecuritySettings>

然后用admin admin登录

 

现在的话因为没有进行任何配置,所以会报错

这样的话安全这一块就配好了,我们项目中只用到了Redis跟MSSQL,所有暂时只会对这两当面进行配置

 

Opserver系列目录 http://www.cnblogs.com/xiaopotian/category/1007536.html

 

posted @ 2017-05-24 12:25  小破天  阅读(1006)  评论(0编辑  收藏  举报