Hola jos

 

A ver te daré algo que te debe servir, aun no lo he probado en la versión ,
yo pase por eso  no recuerdo la versión la verdad,.. porque llevo ya varias
semanas probando todas y haciendo todas las pruebas que se me vienen a la
cabeza J

 

Recuerdo perfectamente que me paso en una versión y encontré luego de mucha
búsqueda en un sitio que tienes que modificar el file .class que viene con
el sqstat, aca te paso el resultado entre el original y el modificado

diff /root/store/sqstat.class.php sqstat.class.php 

107c107
< if($raw[0]!="HTTP/1.0 200 OK"){
---
> if($raw[0]!="HTTP/1.1 200 OK"){
131,132c131,132
< if(substr($v,0,5)=="peer:")
$parsed["con"][$connection]["peer"]=substr($v,6);
< if(substr($v,0,3)=="me:") $parsed["con"][$connection]["me"]=substr($v,4);
---
> if(substr($v,0,8)=="remote: ")
$parsed["con"][$connection]["remote"]=substr($v,8);
> if(substr($v,0,6)=="local:")
$parsed["con"][$connection]["local"]=substr($v,7);
178c178
< $ip=substr($v["peer"],0,strpos($v["peer"],":"));
---
> $ip=substr($v["remote"],0,strpos($v["remote"],":"));
189c189
< $ip=ip2long(substr($v["peer"],0,strpos($v["peer"],":")));
---
> $ip=ip2long(substr($v["remote"],0,strpos($v["remote"],":"))); 

Mas sencillo :

 

(línea 107)

< if($raw[0]!="HTTP/1.0 200 OK"){       ///// DONDE ESTABA ESTA LINEA
> if($raw[0]!="HTTP/1.1 200 OK"){      /////  ACTUALIZALA A ESTA

(línea 131 )

< if(substr($v,0,5)=="peer:")
$parsed["con"][$connection]["peer"]=substr($v,6);  ///// DONDE ESTABA ESTA
LINEA
> if(substr($v,0,8)=="remote: ")
$parsed["con"][$connection]["remote"]=substr($v,8);   /////  ACTUALIZALA A
ESTA

< if(substr($v,0,3)=="me:") $parsed["con"][$connection]["me"]=substr($v,4);
///// DONDE ESTABA ESTA LINEA
> if(substr($v,0,6)=="local:")
$parsed["con"][$connection]["local"]=substr($v,7);   /////  ACTUALIZALA A
ESTA

(línea 178)

< $ip=substr($v["peer"],0,strpos($v["peer"],":"));    ///// DONDE ESTABA
ESTA LINEA
> $ip=substr($v["remote"],0,strpos($v["remote"],":"));   /////  ACTUALIZALA
A ESTA

(linea189)

< $ip=ip2long(substr($v["peer"],0,strpos($v["peer"],":")));   ///// DONDE
ESTABA ESTA LINEA
> $ip=ip2long(substr($v["remote"],0,strpos($v["remote"],":")));   /////
ACTUALIZALA A ESTA

 

 

Espero resuelvas.

 

saludos

 

De: Josvany Hernández Ortega [mailto:josvan...@centis.edu.cu] 
Enviado el: martes, 6 de octubre de 2020 14:20
Para: 'Lista cubana de soporte técnico en Tecnologias Libres'
Asunto: [Gutl-l] squid

 

Listeros hace un tiempo implemente al pie de la letra como esta en sysadmin
para instalar squid 5.02 y todo salió ok he instalado squidanalyzer y todo
ok solo no he podido hacer que me funcione el sqstat ya que esta herramienta
me permite ver quien esta conectado en tiempo real al squid ya no se que mas
hacer me he leído un sinfín de tutoriales de internet y probado ya no se
cuantas configuraciones en el squid (perdi la nocion de todo lo que ya he
hecho y nada) estoy frustrado con respecto a esto. Si algui ya lo tiene
(para squid 5.0.2) porfavor facilitarme configuración en el archivo squid y
archivos de sqstat.

PD si lo tengo funcionando ok en squid 3.5.12

 

========================



Josvany Hernández Ortega.

Administrador de Red.

Telf. +53 7 682 3279

Pizz. +53 7 682 9563 al 70

Ext. 108

 <http://www.centis.cu> www.centis.cu

josvan...@centis.edu.cu

========================

 

_______________________________________________
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu

Responder a