作者gogohc (gogohc)
看板MIS
標題Re: [請益] CactiEZ可以做到警報Mail功能嗎?
時間Wed Jan 15 11:00:55 2014
恕刪
日前CactiEZ的建置已經都完成了
但我一直有個問題
就是例如Monitor頁面不會自動refresh
要手動按f5更新網頁
這個問題要如何解呢?
--------------------
ANS:
在以下兩個php網頁的最頂端, 加入refresh語法,
即可讓monitor, weathermap五分鐘自動更新
/var/www/html/plugins/monitor/monitor.php
/var/www/html/plugins/weathermap/weathermap-cacti-plugin.php
Auto refresh the web page every 5 seconds, with PHP
<?php
$url=$_SERVER['REQUEST_URI'];
header("Refresh: 5; URL=$url");
?>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.130.45.192
2F:→ gogohc:我找到的解法是直接在php網頁中加refresh語法 01/15 16:15
※ 編輯: gogohc 來自: 220.130.45.192 (01/15 16:20)
4F:推 trumpete:有解法了 好想M起來 要不要把一連串的仙人掌文章 都編成 01/15 16:27
5F:推 trumpete:一篇呀? 01/15 16:27
6F:→ trumpete:不過 前面幾篇好像沒有重要東西在裡面 G 大要不要整理個 01/15 16:28
7F:→ trumpete:建制心得與步驟分享? 01/15 16:28
8F:→ gogohc:我為了這個Cacti花了不少時間, 已經快吐血了 01/15 16:32
9F:→ gogohc:我想我把常碰到的問題解法寫出來好了 01/15 16:33
※ 編輯: gogohc 來自: 220.130.45.192 (01/15 16:35)
10F:→ trumpete:寫起來 M起來~~~ 01/15 17:04