View previous topic :: View next topic |
Author |
Message |
koma Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/208407359441b4bbd170574.jpg)
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Tue Jul 06, 2004 7:00 pm Post subject: [CONF] (LOG) 2 GB di log.. è normale? |
|
|
ragazzi ogni tanto guardo e mi stupisco ma secondo me non è normale...
Code: | # du -h /var/log/
0 /var/log/news
20K /var/log/cups
14M /var/log/samba
8,0K /var/log/mysql
28M /var/log/openvpn
0 /var/log/samba3
112K /var/log/apache2
1,4G /var/log/
| un giga e mezzo di log e li ho cancellati nemmeno una settimana fa... _________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Tue Jul 06, 2004 7:33 pm Post subject: |
|
|
Mm...posti anche un per favore?Cmq hai già guardato al contenuto dei vari log, /var/log/messages in primis? Non è che hai attivato nel kernel qualche opzione del tipo verbose?O che hai qualche demone mal configurato che spara output a manetta? _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
koma Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/208407359441b4bbd170574.jpg)
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Tue Jul 06, 2004 7:34 pm Post subject: |
|
|
Code: | totale 1334052
4 drwxrwxrwx 9 root root 4096 6 lug 19:55 ./
4 drwxr-xr-x 18 root root 4096 2 lug 13:04 ../
0 drwxr-xr-x 2 root root 39 22 giu 03:12 apache2/
388 -rwx------ 1 root root 329901 6 lug 21:29 auth.log*
516 -rwx------ 1 root root 471153 6 lug 21:30 cron.log*
0 drwxr-xr-x 2 root root 39 26 mar 21:22 cups/
77768 -rw-r--r-- 1 root root 79581427 6 lug 21:30 daemon.log
22212 -rwx------ 1 root root 22707252 6 lug 19:55 debug*
1852 -rw-rw---- 1 portage portage 1885667 6 lug 20:13 emerge.log
72 -rwx------ 1 root root 72492 6 lug 20:13 emerge-sync.log*
0 -rw-r--r-- 1 root root 0 30 mag 11:27 festival.log
0 -rwx------ 1 root root 0 22 mar 22:37 imapd.log*
4 -rw-r--r-- 1 root root 1748 27 apr 23:35 kdm.log
28100 -rwx------ 1 root root 28706756 6 lug 21:29 kern.log*
24 -rwx------ 1 root root 295504 6 lug 21:29 lastlog*
72 -rwx------ 1 root root 69908 21 apr 23:54 log.nmbd*
8 -rwx------ 1 root root 7843 17 apr 20:08 log.smbd*
0 -rwx------ 1 root root 0 22 mar 22:37 lpr.log*
44 -rwx------ 1 root root 43194 5 lug 15:34 mail.err*
1288 -rwx------ 1 root root 1312206 6 lug 19:55 mail.info*
1288 -rwx------ 1 root root 1312206 6 lug 19:55 mail.log*
80 -rwx------ 1 root root 74478 6 lug 19:55 mail.warn*
856 -rw-r--r-- 1 root root 870723 6 lug 21:29 messages
0 drwxr-xr-x 2 mysql mysql 55 9 giu 01:00 mysql/
0 drwxr-xr-x 2 root root 67 22 mar 22:37 news/
0 drwx------ 2 root root 62 22 giu 02:07 openvpn/
4 -rwx------ 1 root root 2748 6 lug 03:25 ppp.log*
64 drwxr-xr-x 2 root root 36864 6 lug 21:29 samba/
0 drwxr-xr-x 2 root root 6 19 apr 14:30 samba3/
784 -rw-r--r-- 1 root root 796785 1 lug 19:04 scrollkeeper.log
4 -rw-r--r-- 1 root root 684 31 mag 00:57 speechd
648488 -rw-r--r-- 1 root root 663898155 6 lug 21:30 syslog
0 -rwxrwxrwx 1 root root 0 6 giu 23:12 tinyproxy.log*
546360 -rw-r--r-- 1 root root 559380946 6 lug 19:55 user.log
0 -rwx------ 1 root root 0 22 mar 22:37 uucp.log*
3564 -rw-rw-r-- 1 root utmp 3649536 6 lug 21:29 wtmp
64 -rw-r--r-- 1 root users 28385 6 lug 20:28 XFree86.0.log
28 -rw-r--r-- 1 root users 27909 6 lug 14:03 XFree86.0.log.old
28 -rw-r--r-- 1 root root 25396 27 apr 23:41 XFree86.1.log
28 -rw-r--r-- 1 root root 25769 27 apr 23:40 XFree86.1.log.old
28 -rw-r--r-- 1 root root 25288 26 mag 18:28 Xorg.0.log
28 -rw-r--r-- 1 root root 24718 26 mag 18:28 Xorg.0.log.old |
_________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
koma Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/208407359441b4bbd170574.jpg)
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Tue Jul 06, 2004 7:37 pm Post subject: |
|
|
Code: | Jun 3 13:02:15 HellMachine LCDd: C
Jun 3 13:02:15 HellMachine LCDd: cpu0%
Jun 3 13:02:15 HellMachine LCDd: 12
Jun 3 13:02:15 HellMachine LCDd: 1
Jun 3 13:02:15 HellMachine LCDd: 24.1%
Jun 3 13:02:15 HellMachine LCDd: huh? Invalid widget id (total)
Jun 3 13:02:15 HellMachine LCDd: widget_set
Jun 3 13:02:15 HellMachine LCDd: C
Jun 3 13:02:15 HellMachine LCDd: total
Jun 3 13:02:15 HellMachine LCDd: 6
Jun 3 13:02:15 HellMachine LCDd: 1
Jun 3 13:02:15 HellMachine LCDd: 6
Jun 3 13:02:15 HellMachine LCDd: huh? Invalid widget id (cpu0%)
Jun 3 13:02:15 HellMachine LCDd: widget_set
Jun 3 13:02:15 HellMachine LCDd: C
Jun 3 13:02:15 HellMachine LCDd: cpu0%
Jun 3 13:02:15 HellMachine LCDd: 12
Jun 3 13:02:15 HellMachine LCDd: 1
Jun 3 13:02:15 HellMachine LCDd: 21.4%
Jun 3 13:02:15 HellMachine LCDd: huh? Invalid widget id (total)
| per X ^ Y ^n numero di volte sto sistemando la configurazione chissà che così non vada mejo:
Code: | [lcdexec]
# Address of the LCDd server
Address=127.0.0.1
# Port to attach to LCDd server
Port=13666
#If false, report to stderr. If true, to syslog.
ReportToSyslog=false
# Same as with LCDd.
ReportLevel=0
|
_________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Tue Jul 06, 2004 8:19 pm Post subject: |
|
|
Ma quanta roba in quel /var/log cmq io spulcerei per bene questi files che mi sembrano i più corposi e cercherei di capire a che files di configurazione fanno riferimenti le voci che ci trovi lì dentro Code: | daemon.log,kern.log,syslog,user.log |
_________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
assente Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/167949243540c5ac7d7b247.png)
Joined: 12 Apr 2004 Posts: 570 Location: Torino, italia, New Europe
|
Posted: Tue Jul 06, 2004 8:41 pm Post subject: |
|
|
ho un problema simile, come faccio a separare o non loggare
queste "cose" nel dmesg? (dovrebbero esser di iptable?!)
Code: | IN=ppp0 OUT= MAC= SRC=80.182.x25.224 DST=81.211.x50.96 LEN=44 TOS=0x00 PREC=0x00 TTL=117 ID=61703 DF PROTO=TCP SPT=4662 DPT=33310 WINDOW=17040 RES=0x00 ACK SYN URGP=0 |
_________________ Blog
E8400, 4850, P5q |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
motaboy Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/146642313240262a7185133.png)
Joined: 15 Dec 2003 Posts: 1483
|
Posted: Tue Jul 06, 2004 9:43 pm Post subject: |
|
|
Provate ad usare "logrotate", tra le altre cose permette di impostare una dimensione massima ai log. Non é la soluzione ai problemi che magari avete ma lameno ne limita la dimensione. _________________ ... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Wed Jul 07, 2004 7:40 am Post subject: |
|
|
Per ridurre o eliminare messaggi di log che vi sembrano inutili dovete agire sulla configurazione del vostro logger.
Se non ricordate qual'é il logger che avete scelto nell'installazione:
Code: | cat /var/cache/edb/virtuals | grep logger | cut -d "/" -f 3
|
_________________ Ciao da me! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:deadhead:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/137562117341c040a92de3d.png)
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Wed Jul 07, 2004 7:55 am Post subject: |
|
|
Un'altra cosa che mi è venuta in mente e x cui sono impazzito sul mio server samba: guarda ed anche il file di cron di ogni utente che si trova sotto Code: | /var/spool/cron/crontabs | . Io uso vixie-cron, non so se tu anche il tuo cron daemon usa questa cartella. _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Wed Jul 07, 2004 6:21 pm Post subject: |
|
|
Se uno mette questo in /etc/logrotate.conf ottiene che i file di log "grossi" vengono salvati ogni "1 mega" in /var/log/old (createla se non c'è) e cancellati dopo 5 passaggi
Naturalmente bisogna mettere anche logrotate nel crontab
Code: | notifempty
olddir /var/log/old
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
size=1M
create 0664 root utmp
rotate 5
}
# system-specific logs may be also be configured here.
/var/log/messages {
size=1M
create 0644 root root
rotate 10
# postrotate
# /sbin/killall -HUP syslogd
# endscript
}
/var/log/lastlog {
size=1M
create 0664 root root
rotate 10
}
rotate 5
}
# system-specific logs may be also be configured here.
/var/log/messages {
size=1M
create 0644 root root
rotate 10
# postrotate
# /sbin/killall -HUP syslogd
# endscript
}
/var/log/lastlog {
size=1M
create 0664 root root
rotate 10
}
|
_________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|