[asterisk-users] Stuck logger rotation

Richard Kenner kenner at gnat.com
Mon Feb 1 06:52:39 CST 2010


Any idea what can cause this?

asterisk*CLI> core show channels
Channel              Location             State   Application(Data)             
Logger/rotate        s at default:1          Down    (None)                        
1 active channel
0 active calls
20229 calls processed
asterisk*CLI> core show chan
channel       channels      channeltypes  channeltype   
asterisk*CLI> core show channel Logger/rotate 
 -- General --
           Name: Logger/rotate
           Type: NULL
       UniqueID: 1265014922.40051
      Caller ID: (N/A)
 Caller ID Name: (N/A)
    DNID Digits: (N/A)
       Language: en
          State: Down (0)
          Rings: 0
  NativeFormats: 0x0 (nothing)
    WriteFormat: 0x0 (nothing)
     ReadFormat: 0x0 (nothing)
 WriteTranscode: No
  ReadTranscode: No
1st File Descriptor: -1
      Frames in: 0
     Frames out: 0
 Time to Hangup: 0
   Elapsed Time: 3h47m49s
  Direct Bridge: <none>
Indirect Bridge: <none>
 --   PBX   --
        Context: default
      Extension: s
       Priority: 1
     Call Group: 0
   Pickup Group: 0
    Application: (N/A)
           Data: (None)
    Blocking in: (Not Blocking)
      Variables:
filename=/var/log/asterisk/messages

  CDR Variables:
level 1: dst=s
level 1: dcontext=default
level 1: channel=Logger/rotate
level 1: start=2010-02-01 04:02:02
level 1: duration=13668
level 1: billsec=0
level 1: disposition=NO ANSWER
level 1: amaflags=DOCUMENTATION
level 1: uniqueid=1265014922.40051

I have a process:

 7630 ?        S      0:00 gzip -9 /var/log/asterisk/messages.2

The directory looks wierd:

[root at asterisk asterisk]# ls -l messages*
-rw-rw-rw- 1 root root       0 Feb  1 04:02 messages.0
-rw-rw-rw- 1 root root       0 Feb  1 04:02 messages.1
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.1.1
-rw-rw-rw- 1 root root       0 Feb  1 04:02 messages.1.1.1
-rw-rw-rw- 1 root root       0 Feb  1 04:02 messages.1.1.1.1
-rw-rw-rw- 1 root root 3101914 Jan 31 23:14 messages.1.1.1.1.1
-rw-rw-rw- 1 root root 5407775 Jan  1 00:08 messages.1.1.1.2
-rw-rw-rw- 1 root root       0 Feb  1 04:02 messages.1.1.2
-rw-rw-rw- 1 root root       0 Jan  1 04:02 messages.1.1.2.1
-rw-rw-rw- 1 root root  914542 Dec  1 01:38 messages.1.1.3
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.1.2
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.1.2.1
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.1.2.1.1
-rw-r--r-- 1 root root       0 Dec  1 04:02 messages.1.2.2
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.1.3
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.1.3.1
-rw-r--r-- 1 root root  774669 Nov  1 01:10 messages.1.4
-rw-rw-rw- 1 root root       0 Feb  1 04:02 messages.2
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.2.1
-rw-rw-rw- 1 root root       0 Jan  1 04:02 messages.2.1.1
-rw-r--r-- 1 root root       0 Dec  1 04:02 messages.2.2
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.2.gz
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.2.gz.1
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.2.gz.1.1
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.2.gz.1.1.1
-rw-r--r-- 1 root root       0 Dec  1 04:02 messages.2.gz.1.2
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.2.gz.2
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.2.gz.2.1
-rw-r--r-- 1 root root      31 Nov  1 04:02 messages.2.gz.3
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.3
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.3.1
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.3.1.1
-rw-r--r-- 1 root root       0 Dec  1 04:02 messages.3.2
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.4
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.4.1
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.4.1.1
-rw-r--r-- 1 root root       0 Nov  1 04:02 messages.4.2
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.5
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.5.1
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.5.1.1
-rw-r--r-- 1 root root       0 Dec  1 04:02 messages.5.2
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.6
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.6.1
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.7
-rw-r--r-- 1 root root       0 Jan  1 04:02 messages.7.1
-rw-r--r-- 1 root root       0 Feb  1 04:02 messages.8
-rw-r--r-- 1 root root  169055 Oct  1 00:10 messages.9



More information about the asterisk-users mailing list