bkruse: branch aadk r684 - in /branches/aadk: config/ scripts/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Apr 17 12:23:41 MST 2007


Author: bkruse
Date: Tue Apr 17 14:23:40 2007
New Revision: 684

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=684
Log:
Minor change to make the cpu graph final and by itself, without case statements in the graphing script.

Modified:
    branches/aadk/config/graphs.html
    branches/aadk/scripts/graphs.sh

Modified: branches/aadk/config/graphs.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/graphs.html?view=diff&rev=684&r1=683&r2=684
==============================================================================
--- branches/aadk/config/graphs.html (original)
+++ branches/aadk/config/graphs.html Tue Apr 17 14:23:40 2007
@@ -32,7 +32,7 @@
 var divs_tohide = new Array('cpu_div');
 
 function update_graph(graph) {
-	var tmp_command = "sh /etc/asterisk/scripts/graphs.sh cpu > /var/lib/asterisk/static-http/config/graphs/data_cpu.html";
+	var tmp_command = "sh /etc/asterisk/scripts/graphs.sh > /var/lib/asterisk/static-http/config/graphs/data_cpu.html";
 	parent.astmanEngine.run_tool(tmp_command);
 	return true;
 	}

Modified: branches/aadk/scripts/graphs.sh
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/scripts/graphs.sh?view=diff&rev=684&r1=683&r2=684
==============================================================================
--- branches/aadk/scripts/graphs.sh (original)
+++ branches/aadk/scripts/graphs.sh Tue Apr 17 14:23:40 2007
@@ -9,47 +9,4 @@
 #### /var/lib/asterisk/static-http/config/graphs/*.svg. Thanks Guys!
 
 echo `date`
-case $1 in
-	cpu)
-		var="`head -n 1 /proc/stat`"
-		echo "$var"
-		;;
-	wan)
-		var="`cat /proc/net/dev | grep eth0`"
-		echo "$var"
-		;;
-	lan) 
-		var="`cat /proc/net/dev | grep eth1`"
-		echo "$var"
-		;;
-	hd)
-		var="`df -h`"	
-		echo "$var"
-		;;
-	mem)
-		var="`free`"
-		echo "$var"
-		;;
-	temp)
-		var="`echo \"temperature sensor?\"`"
-		echo "$var"
-		;;
-	ast)
-		var="`asterisk -rx 'core show channels'`"
-		echo "$var"
-		;;
-	swap)
-		SWAPINFO=$(free | grep "Swap:")
-		nI="0"
-		for CUR_VAR in $SWAPINFO; do
-			case "$nI" in
-				1)	TOTAL_SWAP=$CUR_VAR;;
-				3)	FREE_SWAP=$CUR_VAR
-			break;;
-			esac
-		let "nI+=1"
-		done
-		;;
-	
-esac
-#/proc/net/dev
+head -n 1 /proc/stat



More information about the asterisk-gui-commits mailing list