Plugins WeatherMap
建立的Map放置於[/var/www/html/plugins/weathermap/configs]
Default icon size沒有設定,設定如下即可修改大小:
Exam
[Node node09983 ]
[ LABEL FileSVR(172.17.113.28) ]
[ ICON images/HPMini.png ]
[ POSITION 358 524 ]
Modify
[Node node09983 ]
[ LABEL FileSVR(172.17.113.28) ]
[ ICON 50 50 images/HPMini.png ]
[ POSITION 358 524 ]
Plugins
ReportIT
php /var/www/html/plugins/reportit/runtime.php
-m
PHP Bindings
for windows.
http://www.gknw.net/php/ext_win32/php-5.2.1_rrdtool-1.2.19-w32.zip
Cacti由於超時無法讀取數據解決方法
在利用Cacti監控時候遇到讀取數據不據定,分析後透過以下改動得以改善
修改 /etc/php.ini
將 memory_limit改大至32M以上(Default
32M)
同時設置增加Cacti下面的snmp
time out延長加大至500以上
cacti本身的模板只可以監控硬碟的使用大小,而不能監控使用非分率,所以我們要自定義cdef來監控硬碟使用率,並借助thold插件實現報警功能。網上找的資料都是在cacti.0.8.6版上實現的,而我用的是cacti.0.8.7版。因此,根據實際情況做如下改動︰
在cacti目錄下,vi global_arrays.php
搜索custom_data_source_types,修改這一段如下︰
$custom_data_source_types = array( "CURRENT_DATA_SOURCE" => "Current Graph Item Data Source", "ALL_DATA_SOURCES_NODUPS" => "All Data Sources (Don't Include Duplicates)", "ALL_DATA_SOURCES_DUPS" => "All Data Sources (Include Duplicates)", "SIMILAR_DATA_SOURCES_NODUPS" => "All Similar Data Sources (Don't Include Duplicates)", "SIMILAR_DATA_SOURCES_DUPS" => "All Similar Data Sources (Include Duplicates)", "CURRENT_DS_MINIMUM_VALUE" => "Current Data Source Item: Minimum Value", "CURRENT_DS_MAXIMUM_VALUE" => "Current Data Source Item: Maximum Value", "CURRENT_GRAPH_MINIMUM_VALUE" => "Graph: Lower Limit", "CURRENT_GRAPH_MAXIMUM_VALUE" => "Graph: Upper Limit", "VALUE_OF_HDD_TOTAL" => "Value of hdd_total data source"); |
在cacti界面的Graph Management-cdefs新建cdef模塊,名字自己起,添加字段如下︰
Item #1 Special Data Source: CURRENT_DATA_SOURCE Item #2 Custom String: 100 Item #3 Operator: * Item #4 Special Data Source: VALUE_OF_HDD_TOTAL Item #5 Operator: / |
也就是說
cdef=CURRENT_DATA_SOURCE,100,*,VALUE_OF_HDD_TOTAL,/
這樣就可以在Threshold Templates裡面添加監控硬碟的模塊了,我添加的是Host MIB - Hard Drive Space ,最後在Threshold CDEF裡面選擇剛自定義的cdef,這樣就可以正常監控硬碟使用率了。
如何將Router及Switch的Description顯示在Graph的Title
[Console]=>[Templates]=>[Graph
Templates]=>[Select one of templates]=>[Option--Title]
Default |host_description| - Traffic
Modify |host_description| - Traffic - |query_ifAlias|