From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,d018d20d425ee993,start X-Google-Attributes: gid10d4db,public From: grimaldo@IAEhv.nl (Gandalf D'Grey) Subject: ChkLogs v1.8 System Log maintenance Date: 1997/01/05 Message-ID: X-Deja-AN: 207790253 x-original-date: 22 Dec 1996 19:32:59 GMT followup-to: comp.os.linux.misc organization: Internet Access Eindhoven, the Netherlands x-auth: PGPMoose V1.1 PGP comp.os.linux.announce newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- Hi *, This is to announce that a year has gone past since last release of Chklogs (1.7), FINALLY here is v1.8 available. In this announcement you will find the Software Map entry as well as a description of what's new (exciting!) Although I have just uploaded to Sunsite.Unc.Edu and Ftp.Funet.Fi it may take a while for them to put Chklogs in the right place (indicated by the LSM), so if you want to make sure get it from the primary site: ftp.iaehv.nl:/pub/users/grimaldo/ Begin3 Title: chklogs: Check System Logs Version: 1.8 Entered-date: 22 Dec 1996 Description: A Perl script (can be cron'ed) for maintenance of system logs. It checks your list of system logs against maximum allowed sizes specified by you. If a log has grown past its limit it can truncate them to zero size , archive them or alternatively execute a program of your choice (plug-out). Either of these actions can be specified per log. When archiving shuffling is performed (remove oldest archive) when the maximum nr. of archives has been reached. This maximum nr. is also specified on a per log basis. Report can be produced on stdout or sent by mail to admin user. It can also just check without taking any further action besides reporting. Additionally it supports age-based thresholds instead of size. Supports global and local repositories, syslog control, logical groups and other features. Graphical User Interface (alpha). Keywords: System logs, monitor, archive, maintain, shuffle, truncate, exec Author: grimaldo@panama.iaehv.nl (Didimo Emilio Grimaldo Tunon) Maintained-by: grimaldo@panama.iaehv.nl (Didimo Emilio Grimaldo Tunon) Primary-site: ftp.iaehv.nl:/pub/users/grimaldo/ 46.9K chklogs-1.8.tar.gz 1613 chklogs.lsm Alternate-site: sunsite.unc.edu: /pub/Linux/system/Admin/ 46.9K chklogs-1.8.tar.gz 1613 chklogs.lsm ftp.funet.fi: /pub/Linux/tools/ 46.9K chklogs-1.8.tar.gz 1613 chklogs.lsm Original-site: panama.IAEhv.nl Copying-policy: Freely distributable, CharityWare End ============= WHAT's NEW, WHAT's SOLVED C H K L O G S Version 1.8 1.1 What you will find here - --------------------------- chklogs The Perl script (v1.8) chklogs.lsm Linux Software Map entry (v1.8) chklogs.txt This document (v1.6) chklogs.8 Manual page, chklogs (v1.4) chklogs.5 Manual page, chklogs config file format (v1.1) chklogs.8 Manual page, chklogsadm (v1.1) chklogs.conf A sample configuration file GuideMe Installation Guidance script (v1.1) makefile For intalling the software xchklogs.tk Graphical User interface (alpha) (v0.8) xchklogs.txt documentation of GUI xchklogsrc Resource file for GUI ck_uutraf Plug-out for UUCP (v1.1) ck_xferlog Plug-out for FTP (v1.1) logsummary Plug-out for Majordomo (v1.1) uusummary part of ck_uutraf (v1.1) 1.2 What's new in this version - ------------------------------ + The 'execute' interface has been enhanced, now you can pass parameters to the program to execute. If %L is one of the parameters it is replaced by the absolute pathname of the log. + A shell script to guide user during installation to minimize configuration problems, it probes your system and advises you what has to be configured. + TIME oriented log expiration. Up to now it was only possible to specify maximum sizes (in bytes). As of this version you can *also* specify (mixing allowed) an age (in days or months) instead of a size. For exampe 8d (8 days) or 3m (3 months). + It is also possible to use the `k' or 'K' modifier for log sizes meaning Kilobytes. + Syslogd control is now done intelligently. Previously syslogd was stopped before processing all the logs and restarted afterwards, now it is done only if the current log is a syslogd log thus minimizing the syslogd 'down' time. Group them together (the syslog logs) and it is even better. [ You must configure $syslogConf for the probe to work! ] + Enhanced configuration file (chklogs.conf) syntax + Logical Groups of logs are now supported. You can create log groups, give it a name, specify which program (+params) to execute *before* checking the group (Pre) and *after* (Post) these need not to be the same. Useful if you need to control other things/daemons. + Directory processing. Some sites have a large amounts of logs of the same category such as UUCP logs for their leaf sites. Now it is possible to specify a directory and every non-archive normal file under that directory is considered a log, no need to specify each of them. + Global and Local repositories. Before chklogs would let the created archives in the same directory where the log resided, thus cluttering the directory. With global options you can set whether you want your archives to reside in an OldLogs subdirectory just below the current one (local option) or in a global, grouped hierarchy somewhere else (global option + global spec). + Chklogs Administrative Program introduced. In order to support the new features and to facilitate interaction with chklogs the chklogsadm program was created, it has several commands to control the configuration and operation of chklogs. It also relieves the cron'ed part (chklogs) from these tasks, less interpreting to do at work time. You must use this program or chklogs will not work as you want/expect. This is also needed in view of the future developments of chklogs. + Chklogs Library. Contains common code and configuration variables needed by chklogs and chklogsadm. Also useful for 'execute' scripts. + Section 5 manual page (configuration file format), and manual page for chklogsadm (administrative program). I plan to stop making man pages with groff and use HTML instead, it's the 90's :-) + Rewrote this file completely (chklogs.txt). + Some Plug-outs for 'execute' logs + Graphical User Interface (work in progress) + Makefile to install software + Calling out for Plug-out and Pre/Post contributors. 1.3 Problems Solved - ------------------- - - Empty lines in the configuration file no longer cause unnecessary lines (no name and zero values) in the reports. This was noticeable with -t and -w options. - - When user didn't configure chklogs as specified in documentation (!), in particular $syslogF chklogs would attempt to stop a process with ID 0 (!!!) causing chklogs to go zombie, or crashing with stack fault, or going into background and other weird things. Of course all of that was because of wrong configuration. Anyway, now proper checking is done and this will not happen even if wrongly configured :-) - - Changed some regular expressions, changed the header of the report, new trailer, renaming of some variables. Enjoy! Emilio - -- D. Emilio Grimaldo T. URL: http://www.iaehv.nl/users/grimaldo/ http://www.iaehv.nl/users/grimaldo/panama.html -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQCVAwUBMs78f4QRll5MupLRAQFO2AQAqC6QkgyrV2V/c8rHuvXdYm+yiBa46I4L KUnhoU5E55uGtiiyTei8CONGN333KCjfVeMWYsuGaA+eL68idAJOWnjqP/SNkxOP HvhEJe1esySYBufT2LGVbc5w7yowOerAP+1MTLfxblJDi10SexEDYsFnTleVTulb ZzkI6kj4iDo= =lwuT -----END PGP SIGNATURE----- -- This article has been digitally signed by the moderator, using PGP. http://www.iki.fi/liw/lars-public-key.asc has PGP key for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION. This group is archived at http://www.iki.fi/liw/linux/cola.html