daniel.uramg escreveu:tem como configura-lo para exibir apenas os clientes ATIVOS, como era na 2.0.4?
kmus2003 escreveu:si estoy equivocado me matan
kmus2003 escreveu:hola me parece muy bueno el addon.. solamente quiero decir que muestra los valores en kbps y debiera ser en kilobytes(KB). bueno eso.. si estoy equiivocado me matan
jeferson escreveu:Olá, gostaria de saber se simon para versao 2.0.6 possui a opção de escolher entre kilobits e kilobytes?
elberex escreveu:saludos, me lei todo el hilo y disculpen si me salte algun post, el problemita ke tengo es el siguiente, instale todo normal, puse las ip a monitorear exactamente como dice el manual pero cuando monitorea solo me dice "1 active ips" <--- supongo ke en lugar de eso deberia sali el ip de la makina ke esta funcionando, el igual pasa cuando hay mas makinas conectadas osea aparece "4 active ips"... algo hise mal???
BlackByte escreveu:Hola Daniel
perdona que meta la cuchara pero a mi me hace eso si no le pongo la etiqueta a la ip (ej Pepe:192.168.0.xxx)
si se la saco no aparece la ip solo el trafico o sale culquier cosa
Saludos
El guapo Dan escreveu:BlackByte escreveu:Hola Daniel
perdona que meta la cuchara pero a mi me hace eso si no le pongo la etiqueta a la ip (ej Pepe:192.168.0.xxx)
si se la saco no aparece la ip solo el trafico o sale culquier cosa
Saludos
Bien bien, encontraron un bug chicos , prueben poniendo ":" antes de la ip sin etiqueta o sea ":192.168.0.xxx"
Gracias por la info BlackByte.
El guapo Dan escreveu:La fuente de simon 1x y 2x ya no existen, aqui esta la fuente de simon 3 http://www.mediafire.com/file/vb1aqt8hn/simon3-source.tar.gz
Saludos.
#!/bin/sh
# simon.cgi Is part fo Simon 2.0
# An ip bandwidth monitor for Brazil Firewall And Router www.brazilfw.com.br
# Author: Daniel R. Torres (a.k.a El guapo Dan, Cavernicola) torres-daniel@hotmail.com, thecavernicola@gmail.com
# Copyright 2009 Daniel R. Torres
# Mexicali, Baja California, Mexico.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. /var/http/web-functions
. /etc/coyote/coyote.conf
ShowMain()
{
echo "Content-type: text/html"
echo "Pragma: nocache"
echo "cache-control: no-cache, must-revalidate, no-store"
echo ""
cat << CLEOF
<html>
<head>
<title>Simon 2.0</title>
<script language="javascript">
<!--
// modificacion script de simon pablino76
// Cambia estos parametros
var seconds = 2; // el tiempo en que se refresca
var divid = "mylist"; // el div que quieres actualizar!
var url = "simonhelper.cgi"; // el archivo que ira en el div
function refreshdiv(){
// The XMLHttpRequest object
var xmlHttp;
try{
xmlHttp=new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari
}
catch (e){
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
}
catch (e){
try{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){
alert("Tu explorador no soporta AJAX.");
return false;
}
}
}
// Timestamp for preventing IE caching the GET request
fetch_unix_timestamp = function()
{
return parseInt(new Date().getTime().toString().substring(0, 10))
}
var timestamp = fetch_unix_timestamp();
var nocacheurl = url+"?t="+timestamp;
// The code...
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4){
document.getElementById(divid).innerHTML=xmlHttp.responseText;
setTimeout('refreshdiv()',seconds*1000);
}
}
xmlHttp.open("GET",nocacheurl,true);
xmlHttp.send(null);
}
// Empieza la función de refrescar
window.onload = function startrefresh(){
setTimeout('refreshdiv()',seconds*1000);
}
// fin de mofidicacion de codigo simon pablino76
var xmlSSTR = "";
function startSimond()
{
var url = "";
url = "simonhelper.cgi?ACTION=start";
if (window.XMLHttpRequest) {
xmlSSTR = new XMLHttpRequest();
} else if (window.ActiveXObject) {
xmlSSTR = new ActiveXObject("Microsoft.XMLHTTP");
} else {
alert("Your browser lacks the needed ability to use Ajax");
return false;
}
xmlSSTR.open("GET", url, true);
xmlSSTR.send("");
}
var xmlSSTP = "";
function stopSimond()
{
var url = "";
url = "simonhelper.cgi?ACTION=stop";
if (window.XMLHttpRequest) {
xmlSSTP = new XMLHttpRequest();
} else if (window.ActiveXObject) {
xmlSSTP = new ActiveXObject("Microsoft.XMLHTTP");
} else {
alert("Your browser lacks the needed ability to use Ajax");
return false;
}
xmlSSTP.open("GET", url, true);
xmlSSTP.send("");
}
var xmlSSRT = "";
function sort(sorting)
{
var url = "";
url = "simonhelper.cgi?SORT=" + sorting;
if (window.XMLHttpRequest) {
xmlSSRT = new XMLHttpRequest();
} else if (window.ActiveXObject) {
xmlSSRT = new ActiveXObject("Microsoft.XMLHTTP");
} else {
alert("Your browser lacks the needed ability to use Ajax");
return false;
}
xmlSSRT.open("GET", url, true);
xmlSSRT.send("");
}
CLEOF
if [ -e /var/http/htdocs/cgi-bin/bwm.cgi ]; then
cat << CLEOF
var xml2 = "";
function getPage()
{
var url = "bwm.cgi";
if (window.XMLHttpRequest) {
xml2 = new XMLHttpRequest();
} else if (window.ActiveXObject) {
xml2 = new ActiveXObject("Microsoft.XMLHTTP");
} else {
alert("Your browser lacks the needed ability to use Ajax");
return false;
}
xml2.onreadystatechange = processPage;
xml2.open("GET", url, true);
xml2.send("");
setTimeout('getPage()', 5000);
}
function processPage() {
if (xml2.readyState == 4) {
if (xml2.status == 200) {
div = document.getElementById("bwmon");
div.innerHTML = xml2.responseText;
} else {
//alert("There was a problem retrieving the XML data:\n" + xml.statusText);
}
}
}
CLEOF
fi
cat << CLEOF
//-->
</script>
CLEOF
if [ ! -e /var/http/htdocs/style/style.css ] ; then
cat /var/http/style.css
else
cat /var/http/htdocs/style/style.css
fi
echo "</head>"
cat << CLEOF
<table class=maintable border=0 cellspacing=1 width=100%>
<tr><td width=160>
<a href=http://www.brazilfw.com.br><img border=0 src="/logo.png"></a></td>
<td class=tdbfw><span id=textbfw>BrazilFW Firewall and Router</span><br>
<a href=http://www.brazilfw.com.br>http://www.brazilfw.com.br</a></td>
</tr><tr><td valign="top"><table class=menutable><tr><th>$MM</th></tr>
CLEOF
cl_menuitem "$Mh" "/cgi-bin/index.cgi"
if [ "$INETTYPE" = "PPP" ]; then
cl_menuitem "$Mdl $PPP_ISP" "/cgi-bin/dial-ppp.cgi"
cl_menuitem "$Mhg $PPP_ISP" "/cgi-bin/hangup-ppp.cgi"
fi
cl_menuitem "$Mln" "/cgi-bin/lanconf.cgi"
cl_menuitem "$Mic" "/cgi-bin/inetconf.cgi"
cl_menuitem "$Pti" "/cgi-bin/loadbalance.cgi"
[ ! -z $DMZ_IPADDR ] && cl_menuitem "$Mdz" "/cgi-bin/dmzconf.cgi"
cl_menuitem "$Mdh" "/cgi-bin/dhcpconf.cgi"
cl_menuitem "$Mac" "/cgi-bin/adminconf.cgi"
cl_menuitem "$Mpf" "/cgi-bin/portfw.cgi"
cl_menuitem "$Msf" "/cgi-bin/sfirewall.cgi"
cl_menuitem "$Mfc" "/cgi-bin/firewall.cgi"
cl_menuitem "$Mqc" "/cgi-bin/qos.cgi"
cl_menuitem "$Msg" "/cgi-bin/cron.cgi"
cl_menuitem "$Psf" "/cgi-bin/subnet.cgi"
cl_menuitem "$Msp" "/cgi-bin/chpasswd.cgi"
#Allow future packages to add new pages to webadmin menu
FILES=`ls /var/http/htdocs/cgi-bin/pak_*.inc 2>/dev/null`
if [ ! -z "$FILES" ]; then
for INCS in $FILES ; do
if [ -x $INCS ] ; then
. $INCS
fi
done
fi
cl_menuitem "$Mcf" "/cgi-bin/editconf.cgi"
cl_menuitem "$Mdt" "/cgi-bin/diags.cgi"
cl_menuitem "$Msh" "/cgi-bin/profiles.cgi"
cl_menuitem "$Mbt" "/cgi-bin/backup.cgi"
cl_menuitem "$Mpc" "/cgi-bin/reboot.cgi"
# End main menu -----------
#PID=`pidof simond`
#if [ "$PID" = "" ]; then
cat << CLEOF
</table></td><td width=100% class=middle><table border=0 class=tbcontent><tr><td class=middle>
<body onload="startSimond(); refreshdiv(); getPage();" onUnLoad="stopSimond();">
<div id="eth0" style="position: absolute; top:2%; right:1%; background-color:transparent;">
<div id="bwmon" >
</div>
</div>
<div id="mylist">
</div>
</body>
</html>
CLEOF
#else
#cat << CLEOF
#</table></td><td width=100% class=middle><table border=0 class=tbcontent><tr><td class=middle>
# <body onload="getList();getPage();" onUnLoad="stopSimond();">
# <div id="eth0" style="position: absolute; top:2%; right:1%; background-color:transparent;">
# <div id="bwmon" >
# </div>
# </div>
# <div id="mylist">
# </div>
# </body>
# </html>
#
#CLEOF
#fi
}
ShowMain
pablino76 escreveu:el addon esta muy bueno
no mucho mejor que netdiscover-cgi... pero esta bueno
Usuários navegando neste fórum: Nenhum usuário registrado e 0 visitantes