BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} empty /var/adm/messages
- To: <bb@bb4.com>
- Subject: Re: {bb} empty /var/adm/messages
- From: "Leif Neland" <leifn@neland.dk>
- Date: Thu, 29 Sep 2005 11:22:06 +0200
- Cc: "Joshua Au" <joshuaau@cherrypicks.com>
- Content-transfer-encoding: 7bit
- Content-type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
- Domainkey-signature: a=rsa-sha1; s=arnold; d=neland.dk; c=nofws; q=dns; h=message-id:from:to:cc:references:subject:date: mime-version:content-type:content-transfer-encoding:x-priority: x-msmail-priority:x-mailer:x-mimeole; b=lzLwUPHCQ1Rq7odJaB+UlmF08EuoKGKd07nL48Uk78iYSefMlYjFjXkX2cyhsfcY1 PzfKQjlGzjBXnOIE87boQ==
- References: <000801c5c4d0$2b408ee0$0201a8c0@IBM539B3E9DC00>
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
Joshua Au wrote:
Hi,
Let me eat back my words. I meant what should I do to amend my
bb-msgs.sh.
I was thinking of changing this line
-> elif test "$CHKMSGLEN" ="TRUE" && test ! -s "$file"
and replace -s with -r. Would that stop bb from taking an empty
messages file as a red critical event?
The "$CHKMSGLEN" = "TRUE"
should hint to you that this configurable.
If you grep for CHKMSGLEN where bb configurations are stored, you get this:
bbdef.sh:# CHKMSGLEN IS SET TO TRUE BY DEFAULT. IT WILL SCREAM IF IT FINDS
bbdef.sh:CHKMSGLEN="TRUE" # MAKE SURE MSG FILE IS
NON-ZERO LEN
So try changing CHKMSGLEN to FALSE...
On the other hand, it would be better if you modified your logfile rotation
script, so it added a line (often the time/date) when rotating, so it is
never empty.
Leif
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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