BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} &red /var/adm/messages is empty
On Tue, Mar 29, 2005 at 04:10:01PM, Ruork, Robert wrote:
> Yes, Shujaat, it is possible -- but not recommended.
>
> If you must, set CHKMSGLEN="FALSE" in bbdef.sh.
>
> The beter option is to create a root crontask that "rolls over" your /var/adm/messages file into messages.0, messages.1 -- etc, for each day of the week and pushes a date in the current day's message file.
>
> host#> date >> /var/adm/messages
This command does not make much difference than using CHKMSGLEN="FALSE".
The benefit of _not_ setting CHKMSGLEN="FALSE" is you will know if
syslogd is not working. Now redirecting date output to messages file
also hide that fact, should the syslogd not working.
The way, I prefer, to avoid /var/adm/messages file would be, using logger.
Here is an example.
Lets say kern.info logs are suppose to post in /var/adm/messages file
based on syslog.conf. (Your case may differ)
Then you can have the following command preceded by the "rolls over" crontask
logger -p kern.info `date`
This way if syslogd is working you will not going to get
/var/adm/messages longer than the Tth min
where, 'crontask starts 1st min' < Tth min < 'next time when bigbrother
checks msgs file'
Now you can setup your crontask like this, if you roll your cron at 11:58pm
58 23 * * * Roll_over_Script && logger -p kern.info `date`
Thanks
>
> Up to you, mate...
>
> Robert Ruork
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
to be in the first group;...less competition there." - Indira Gandhi
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index