[hobbit] Messages file not reporting
Buchan Milne
bgmilne at staff.telkomsa.net
Fri Feb 3 17:53:39 CET 2006
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb-msgs.pl
Type: application/x-perl
Size: 2573 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060203/a2248d12/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060203/a2248d12/attachment.sig>
More information about the Xymon
mailing list