cacti thold plugin微調

預設Cacti thold plugin在發送告警email時rrd圖檔顯示的內容為1day週期,因特殊需求需調整成2hrs,需修改/usr/share/cacti/plugins/thold/thold_functions.php

2811,2815c2811
<                       #$graph_data_array = array('output_flag'=> RRDTOOL_OUTPUT_STDOUT);
<                         $graph_end_time = date("U");
<                         $graph_start_time = $graph_end_time - 7200;
<                         $graph_data_array = array('output_flag'=> RRDTOOL_OUTPUT_STDOUT, 'graph_start'=>$graph_start_time, 'graph_end'=>$graph_end_time);
<
---
>                       $graph_data_array = array('output_flag'=> RRDTOOL_OUTPUT_STDOUT);

 

Facebook Comments Box

Leave a Reply