From 1804023da9ad604cb57af7e934352ef84e127736 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Thu, 15 Sep 2005 02:55:19 +0000 Subject: Make 4801 temp monitor work (and make it work with sajax) --- usr/local/www/includes/functions.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'usr/local/www/includes') diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php index defe0a1..dddc5ab 100644 --- a/usr/local/www/includes/functions.inc.php +++ b/usr/local/www/includes/functions.inc.php @@ -65,6 +65,17 @@ function get_pfstate() { return $curentries . $maxstates; } +function get_temp($type) { + switch($type) { + case '4801': + $ret = rtrim(`/usr/local/sbin/env4801 | /usr/bin/grep Temp |/usr/bin/cut -c24-25`); + break; + default: + return; + } + + return $ret; +} function disk_usage() { -- cgit v1.1