Ticket #2790 (closed defect: fixed)
HTTP proxy traffic report
| Reported by: | lioncub@… | Owned by: | cperez@… |
|---|---|---|---|
| Milestone: | 2.2 | Component: | logs |
| Severity: | normal | Keywords: | |
| Cc: |
Description
No statistics in Logs HTTP Proxy > Summarized report
All All 0 0 0 0 0 0 0
In Full Reports have statistics.
Attachments
Change History
comment:1 Changed 2 years ago by jamor@…
- Status changed from new to closed
- Resolution set to worksforme
comment:2 Changed 2 years ago by lioncub@…
- Status changed from closed to reopened
- Resolution worksforme deleted
~ 2 month. Current Uptime 4 days, 15:53
comment:3 Changed 2 years ago by jamor@…
Ok, then we have a problem.
First we will check that the consolidation (the process which data is aggregated to create the sumaraized logs) is not disabled. Run this command:
grep disable_consolidation /etc/zentyal/logs.conf
If the value of this setting is 'yes' (disabled) just turn it to 'no' and the logs wil lbe generated.
If the disable_consolidation values is OK, check that /sur/sahre/zentyal/manange-logs exists and execute it. Please report back any error or log output
Cheers,
Javier
comment:4 Changed 2 years ago by lioncub@…
$ grep disable_consolidation /etc/zentyal/logs.conf disable_consolidation = no
# ls /usr/share/zentyal | grep logs purge-logs
this only /usr/share/zentyal/purge-logs exist.
comment:5 Changed 2 years ago by jamor@…
Which version of zentya-core do you have?. ('apt-cache policy zentyal-core').
Anyway upgrade to the latest version of zentyal-core should install the "/usr/sahre/zentyal/manage-logs" file
comment:6 Changed 2 years ago by lioncub@…
apt-cache policy zentyal-core
zentyal-core:
Installed: 2.1.2
Candidate: 2.1.2
Version table:
*** 2.1.2 0
500 http://ppa.launchpad.net/zentyal/2.1/ubuntu/ lucid/main Packages
100 /var/lib/dpkg/status
# cat /usr/sahre/zentyal/manage-logs cat: /usr/sahre/zentyal/manage-logs: No such file or directory
# dpkg -S manage-logs zentyal-core: /etc/cron.hourly/90zentyal-manage-logs dpkg -L zentyal-core | grep manage-logs /etc/cron.hourly/90zentyal-manage-logs
# cat /etc/cron.hourly/90zentyal-manage-logs #!/bin/bash /usr/share/zentyal/manage-logs
comment:7 Changed 2 years ago by jamor@…
Sorry the correct path is /usr/share/zentyal/manage-logs ; not /usr/sahre/zentyal/manage-logs. Could you check if this file exists?.
If it not exists, try to reinstall zentyal-core with the following command:
apt-get install --reinstall zentyal-core
comment:8 Changed 2 years ago by lioncub@…
This file not exists in system:
root@ubuntu:/home/lioncub# locate manage-logs /etc/cron.hourly/90zentyal-manage-logs
This file not exists in package zentyal-core (2.1.2):
root@ubuntu:/home/lioncub# dpkg -L zentyal-core | grep manage-logs /etc/cron.hourly/90zentyal-manage-logs
No effect:
root@ubuntu:/home/lioncub# apt-get install --reinstall zentyal-core Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0B/490kB of archives. After this operation, 0B of additional disk space will be used. Do you want to continue [Y/n]? Y Preconfiguring packages ... (Reading database ... 72071 files and directories currently installed.) Preparing to replace zentyal-core 2.1.2 (using .../zentyal-core_2.1.2_all.deb) ... Unpacking replacement zentyal-core ... Processing triggers for ureadahead ... Processing triggers for man-db ... Setting up zentyal-core (2.1.2) ... Processing triggers for zentyal-core ... * Restarting Zentyal module: apache [ OK ] * Restarting Zentyal module: logs [ OK ] * Restarting Zentyal module: events [ OK ] root@ubuntu:/home/lioncub# cat /usr/sahre/zentyal/manage-logs cat: /usr/sahre/zentyal/manage-logs: No such file or directory
comment:9 Changed 2 years ago by jamor@…
- Status changed from reopened to closed
- Resolution set to fixed
I have checked the published package and this file is missing. In the next released version this will be fixed.
In the meantime you could get it from this url .
Just copy it to /usr/share/zentyal/manage-logs . Then cron should call it at the adequate time to consolidate the logs.
Thanks to point this, Lioncub and sorry for any inconvenience.
comment:10 Changed 2 years ago by jamor@…
Sorry I forgot the URL in the previous message. The URL is https://trac.zentyal.org/export/21179/trunk/main/core/src/scripts/manage-logs
comment:11 Changed 2 years ago by jamor@…
Better use the version without HTTPS: -> http://trac.zentyal.org/export/21179/trunk/main/core/src/scripts/manage-logs
Hello Lioncub,
You should already have two weeks worth of data, if you continue having this problem please reopen this ticket.