Discussion:
[Monitorix-general] Squid statistics empty
Giacomo Trovato
2015-01-15 22:23:18 UTC
Permalink
I've installed Monitorix on my Ubuntu servers and I'm very impressed about
it!
I've a problem on Squid statistics graphs that are empty.
In the log I have these errors:





*Use of uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 1.Use of
uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 2.Use of
uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 3.Use of
uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 4.Use of
uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 5.*

Thank you for the help!
Giacomo.
Jordi Sanfeliu
2015-01-17 16:55:03 UTC
Permalink
Hi Giacomo,

Assuming you are using the latest version, please, make sure the logfile
pointed by the option 'squid_log' is really the Squid log file.

The logfile should have lines like this:

1420942141.159 0 127.0.0.1 TCP_MISS/200 1663 GET
cache_object://127.0.0.1/counters - NONE/- text/plain
1420942141.166 2 127.0.0.1 TCP_MISS/200 3104 GET
cache_object://127.0.0.1/info - NONE/- text/plain
[...]

You could also provide the Squid version you have there in order to have
the opportunity to discover if something has changed in recent Squid
versions.

Thanks.
Post by Giacomo Trovato
I've installed Monitorix on my Ubuntu servers and I'm very impressed
about it!
I've a problem on Squid statistics graphs that are empty.
/Use of uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 1.
Use of uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 2.
Use of uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 3.
Use of uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 4.
Use of uninitialized value $g_status in hash element at
/usr/lib/monitorix/squid.pm <http://squid.pm> line 227, <IN> line 5./
Thank you for the help!
Giacomo.
--
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat
Loading...