SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0003350: On the first day of use the proxy graphs are not created - MantisBT Endian Bugtracker
Endian Issue Tracker





Please see now our new Bugtracker system: JIRA








View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003350Endian FirewallGUIpublic2010-12-02 17:102010-12-08 10:15
Reportermax-endian 
Assigned Tomax-endian 
PrioritynormalSeveritytweakReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003350: On the first day of use the proxy graphs are not created
DescriptionOn the first day of proxy traffic the graph are not created.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005282)
max-endian (developer)
2010-12-02 17:12

Replace in the file /usr/local/bin/makegraph.pl the section Squid Graphs by this one:

###
### Squid Graphs
###
if (fileStayInMemory("/var/log/squid/access.log_short")) {
if(-e '/var/log/squid/access.log_short-$(date --date "yesterday" +%Y%m%d)' ){
        system ('cat /var/log/squid/access.log_short-$(date --date "yesterday" +%Y%m%d) /var/log/squid/access.log_short | /usr/bin/squid-graph -o=/home/http$
}else{
        system ('cat /var/log/squid/access.log_short | /usr/bin/squid-graph -o=/home/httpd/html/sgraph --tcp-only >/dev/null 2>&1');
}

}

- Issue History
Date Modified Username Field Change
2010-12-02 17:10 max-endian New Issue
2010-12-02 17:12 max-endian Note Added: 0005282
2010-12-02 17:12 max-endian Status new => resolved
2010-12-02 17:12 max-endian Resolution open => fixed
2010-12-02 17:12 max-endian Assigned To => max-endian
2010-12-08 10:10 max-endian Status resolved => assigned
2010-12-08 10:14 max-endian View Status private => public
2010-12-08 10:15 max-endian Status assigned => resolved

Copyright © 2005-2008 Endian, SRL. All rights reserved.


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker