BB Unix Network Monitor - Message

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

Re: {bb} How to stop error messages due to empty /var/adm/messages file ..





Simply  a suggestion, but this seems to plague  alot of people.

Maybe  a flag in Big Brither set to on or off, then modify the log file check to
first test for the existance of the files in the first place.

IF the flag is set to true, then if the file does not exist or is empty, it
simply ignores it and says nothing, assumably, once data is written to the log
it sees it exists and runs the test.  thus, we willingly say, that no log file
is not an issue.

IF the flag is set to false. then if the file does not exist or is empty, we
assume this is an issue like normal and the alerts go off.  In this case, we
assume you have dont something on your own to accomidate for the empty/missing
logs.

just an idea.

Frank





Sean MacGuire <sean@www.bb4.com> on 05/07/2000 05:45:35 PM

Please respond to bb@bb4.com

To:   bb@bb4.com
cc:    (bcc: Franklin Petersen/Support/IS/CrownNotes)

Subject:  Re: {bb} How to stop error messages due to empty /var/adm/messages
      file  ..




> We recently installed Big Brother, and are very pleased with it's
> functionality. However, once our sun boxes have been running for at least a
> week, they are configured to automatically rotate the old log files.
>
> As a result, after the machine has run for a week, we start getting pages
> for each machine that now has an 'empty' /var/adm/messages file.  How do we
> adjust this so that this particular condition can be ignored, provided the
> file actually exists?
>
> I apologize for my ignorance, but this is beginning to become an annoyance
> to several people in our computer department :)

There are a couple of solutions to this problem:

1.   Disable this test by setting CHKMSGLEN="FALSE" in etc/bbdef.sh
     on all boxes.
2.   Modify sun's /usr/lib/newsyslog as so:

     # SMM NO EMPTY LOG FILES...
        # cp /dev/null $LOG
        echo `date "+%b %e %T"` `uname -n` newsyslog: syslog has been rotated >
$LOG

3.   Have a log message written by another means immediately upon
     logfile rotation.
--
Sean MacGuire, Reality Engineering            the BB Ministry of Truth
sean@bb4.com                       http://www.bb4.com
+1 514 996 INET

          "Looking down the barrel of another day"
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.






--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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