[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

********* Assistance Please: logrotate problem ************





Hello I'm not certain if you guys can assist , but here goes. I've downloaded and installed SMClogr version 3.7.1 on my Solaris 2.8 server.
For some reason I'm not able to compress the log files. below I've sent you the doc.
Would please point out how I can correct and get this going.
Thanks in advance for your assistance.

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Error when exec of  :    logrotate /etc/logrotate.conf
///////////////////////////////////////////////////////////

supcon1[root] logrotate /etc/logrotate.conf

error: failed to compress log /tmp/scon.log.1

error: failed to compress log /tmp/scon.error.1

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


///////////////////////////////////////////////////////
 logrotate.conf
///////////////////////////////////////////////////////
supcon1[root] pwd
/etc
supcon1[root] more logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
#weekly
daily
 
# keep 4 weeks worth of backlogs
#rotate 4
rotate 3
 
# create new (empty) log files after rotating old ones
create
 
# uncomment this if you want your log files compressed
compress
 
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
#include /tmp/logrotate.d/scon1
 
# no packages own wtmp -- we'll rotate them here
#/var/log/wtmp {
/tmp/wtmp  {
    daily
    create 0644 root root
    rotate 1
}
 
# system-specific logs may be also be configured here.
supcon1[root]

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
/etc/logrotate.d/scon1
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

supcon1[root] cd /etc
supcon1[root] vi /etc/logrotate.d/scon1
"/etc/logrotate.d/scon1" 18 lines, 360 characters
/tmp/scon.log {
           rotate 2
           daily
           compress
           notifempty
           create 0644 oracle oracle
           size=200k
   }
 
/tmp/scon.error {
           rotate 2
           daily
           compress
           notifempty
           create 0644 oracle oracle
           #errors ray.hill@ny.frb.org
           size=200k
   }
supcon1[root]

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Before execution of logrotate
///////////////////////////////////////////////////////////////
supcon1[root] pwd
/tmp
supcon1[root] ls -l
total 76656
drwxr-xr-x   2 root     other        179 Nov  7 23:18 logrotate.d
-rw-rw-r--   1 root     sys         1024 Nov  7 09:56 ps_data
-rw-r--r--   1 oracle   oracle   9796127 Nov  8 10:38 scon.error
-rw-r--r--   1 oracle   oracle   9796127 Nov  8 10:37 scon.log
-rw-------   1 root     other          0 Nov  8 09:18 sh5354.1
drwxr-xr-x   2 root     other        117 Nov  8 09:47 wtmp
supcon1[root] cd wtmp
supcon1[root] ls -l
total 0
supcon1[root]
///////////////////////////////////////////////////////
After execution of logrotate
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
supcon1[root] cd /tmp
supcon1[root] ls -l
total 57520

drwxr-xr-x   2 root     other        179 Nov  7 23:18 logrotate.d

-rw-r--r--   1 oracle   oracle         0 Nov  8 10:44 scon.error
-rw-r--r--   1 oracle   oracle   9796127 Nov  8 10:38 scon.error.1
-rw-r--r--   1 oracle   oracle         0 Nov  8 10:44 scon.error.1.gz
-rw-r--r--   1 oracle   oracle         0 Nov  8 10:44 scon.log
-rw-r--r--   1 oracle   oracle   9796127 Nov  8 10:37 scon.log.1
-rw-r--r--   1 oracle   oracle         0 Nov  8 10:44 scon.log.1.gz
-rw-r--r--   1 root     other    9796127 Nov  8 09:23 scon.log_org

drwxr-xr-x   2 root     other        117 Nov  8 09:47 wtmp
supcon1[root]

///////////////////////////////////////////////////////////////
Installation of pkg
///////////////////////////////////////////////////////////////
supcon1[root] pkginfo -l SMClogr
   PKGINST:  SMClogr
      NAME:  logrotate
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  3.7.1
   BASEDIR:  /usr/local
    VENDOR:  Paul Gear and Danial Howard
    PSTAMP:  Steve Christensen
  INSTDATE:  Nov 07 2005 17:25
     EMAIL:  steve@smc.vnet.net
    STATUS:  completely installed
     FILES:       14 installed pathnames
                   2 shared pathnames
                   6 directories
                   1 executables
                 164 blocks used (approx)
 
supcon1[root] pwd


Ray H.
ext 8527
*****************************************************************
Communication Is the Gateway between Ideas and Results
*****************************************************************

Reply to: