《分享》Windows Resource Threshold |  |
Windows在安裝及啟用SNMP後,Resource Graphs已可撈到Memory/Disk數據,繪製流量圖。
Memory

Disk

而其參照的設定則定義在mib2.xml中,路徑如下。
/usr/share/opennms/etc/datacollection/mib2.xml
##### Diks & Memory 用的是同一組 #####
<group name="mib2-host-resources-storage" ifType="all">
<mibObj oid=".1.3.6.1.2.1.25.2.3.1.2" instance="hrStorageIndex" alias="hrStorageType" type="string" />
<mibObj oid=".1.3.6.1.2.1.25.2.3.1.3" instance="hrStorageIndex" alias="hrStorageDescr" type="string" />
<mibObj oid=".1.3.6.1.2.1.25.2.3.1.4" instance="hrStorageIndex" alias="hrStorageAllocUnits" type="gauge" />
<mibObj oid=".1.3.6.1.2.1.25.2.3.1.5" instance="hrStorageIndex" alias="hrStorageSize" type="gauge" />
<mibObj oid=".1.3.6.1.2.1.25.2.3.1.6" instance="hrStorageIndex" alias="hrStorageUsed" type="gauge" />
</group>
有了這些oid定義,又能以這些數據繪製流量圖,
我們當然也可以使用這些數據來設定相關threshold的告警機制。
以上除了CPU的偵測需要自行增加外,
Windows的Memory與Disk的threshold設定,我們都可以拿系統預設的threshold來做樣本套用或修改,
也如同上一篇 Linux Resource Threshold 所說,我們可以依需求來建立自己的threshold,
也可以依各主機的性質不同,透過IP來進行對應的過濾。
這部分請參考 Linux Resource Threshold,本篇就不再重複贅述~
Windows的threshold設定到此告一段落~
參考資料
雜亂的學習筆記本

♥順子老婆的網拍,請多關照~
If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!
|