BB Unix Network Monitor - Message

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

Re: {bb} empty /var/adm/messages



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