BB Unix Network Monitor - Message

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

RE: {bb} Reading a file



May be you can use this:

> more bb-msgstab.DIST
# bb-msgstab: configuration file for log files checking
#
# Format:
#
#    host: log file(s) : misc settings : yellow strings : red strings :
strings to ignore on
#    localhost: log file(s) : misc settings : yellow strings : red
strings : strings to ignore on
#
#    host can be FQDN (fully qualified domain name) or
#       just a plain hostname but it is preferred that you
#       use a FQDN.
#    localhost: using this specifies that the settings
#       specified on the line are to be tested on all clients
#
#    Multiple Yellow/Red/Ignore strings must be ';' seperated
#    host: file : : this is yellow string 1 ; this is yellow string 2 :
:
#
#    You can also specify misc settings to override bbdef.sh defaults
#       NOT YET FUNCTIONAL, LEAVE EMPTY
#
#    The same host can be specified on multiple lines to aid readability
#    Strings to match on will only be applied to logs defined on the
same entry line
#
#    You can also use regular expressions to define your search strings
#
www.bb4.com: /var/log/messages : : WARNING : NOTICE :
www.bb4.com: /var/log/maillog : : refused.*from ; failed connection :
error ERROR : from localhost ; 192.168.1.1

 

-----Mensaje original-----
De: owner-bb@bb4.com [mailto:owner-bb@bb4.com] En nombre de a m crowe
Enviado el: martes, 26 de abril de 2005 12:12
Para: bb@bb4.com
Asunto: {bb} Reading a file

Hello,

I have a problem which may seem simple but I'm having trouble getting it
to work. I have been asked to set up a test on BB to connect to a
server, read a file, check whether there is the word OK (or
warning/critical) in the file and then report accordingly to BB.

Any advice or help would be great even if it just something similar
already out there in the BB world that I can change.

Thanks
--
Andrew Crowe



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