windows Opserver 監控

1、下載opserver項目git

地址:https://github.com/opserver/Opserver/github

2、用vs2012及以上版本打卡opserver項目,如圖json

 

3、右擊Opserver,點「設爲啓動項」安全

4、調試(F5)網絡

調試以後,發現報錯app

中止調試進入Opserver項目下的Config目錄找到SecuritySettings.config.example文件。清單以下:ide

[csharp] view plain copyspa

print?.net

  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <SecuritySettings provider="AD">  
  3.     <  Optional, these networks can see the overview dashboard without authentication  >  
  4.     <InternalNetworks>  
  5.         <Network name="SE Internal" cidr="10.0.0.0/8" />  
  6.     </InternalNetworks>  
  7. </SecuritySettings>  
  8.   
  9.   
  10. <!--Example of global access for everyone:  
  11. <SecuritySettings provider="alladmin" >-->  

 

修改cidr配置爲你的本地地址如:192.168.0.0/24或者127.0.0.1【可選 這些網絡無須身份驗證就能夠看到概覽儀表板】調試

我這裏直接將文件改成:

 

[csharp] view plain copy

print?

  1. <?xml version="1.0" encoding="utf-8"?>  
  2.   
  3. <SecuritySettings provider="alladmin" >  
  4. </SecuritySettings>  

 

 

保存爲SecuritySettings.config(去掉example),再次調試:

由於安全設置是alladmin,因此直接點擊Login in便可,進去以後你會看到:

這是由於尚未配置如下相關監控文件

這裏以SQL爲例:

找到Opserver下面的config/SQLSettings.json.example文件,雙擊編輯:

 

[csharp] view plain copy

print?

  1. {  
  2.   "defaultConnectionString": "Data Source=$ServerName$;Initial Catalog=master;Integrated Security=SSPI;",  
  3.   "instances": [  
  4.       {  
  5.           "name": "實例名",  
  6.         "connectionString": "Data Source=實例名;Initial Catalog=DB;UID=sa;pwd=****;"  
  7.       },  
  8.     { "name": "實例名" }  
  9. }  

再次調試,看到如下界面

 

點擊Node能夠看到實例詳細。

完畢~微笑

相關文章
相關標籤/搜索