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

Re: [hobbit] Messages file not reporting



On Thursday 02 February 2006 21:15, Edward Croft wrote:
> I was able to have log file reporting under Big Brother and the
> df-msgstab would tell what to alert on. Is that functionality gone in
> Hobbit?
>
> System logs at Thu Feb 2 14:11:38 EST 2006 : No log data available
>
> The client did not report any logfile data

You can find the perl script I am using as an extension (run from 
clientlaunch.cfg on clients, hobbitlaunch.cfg on the hobbit server) attached. 
It retreives the bb-msgstab file from the hobbit server on each run, and 
drops the result in $BBTMP/hobbit_msgs. You'd need to add something like this 
to the client script:

if [ -r $BBTMP/hobbit_msgs ]; then echo "[msgs]";cat $BBTMP/hobbit_msgs;fi


Lines in the bb-msgs tab follow (more or less) the convention from the 
extension script at deadcat.net, but I'm not doing well-quoted parsing of 
regex's, so don't put spaces in the regex's to match on, eg:

somehost: /var/log/messages : : Security.Warning : error :

It scans the whole log file on every run, so rotate your logs!

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)