Xymon Mailing List Archive search

Log file monitoring

list Jeremy Laidman
Sat, 15 Mar 2014 09:13:53 +1100
Message-Id: <CAAnki7A__kizMaqah9dysB3efS7t_JJ=user-ccdc2a2cd020@xymon.invalid>

On 4 March 2014 00:17, Neil Simmonds <user-feff97fabd3d@xymon.invalid> wrote:
As far as I can see there is no built in way in Xymon to monitor a log for
the number of times a string has occurred in a specified time period.
Sure there is.  From the client-local.cfg file comments:

#   "linecount:FILENAME"
#       Monitor the text-based logfile FILENAME, but just
#       count the number of times certain expressions appear.
#       This processes the entire file every time. It must
#       be followed by one or more lines with
#   "KEYWORD PATTERN"
#       KEYWORD identifies this count. You can use any string
#       except whitespace. PATTERN is a regular expression
#       that you want to search for in the file.

I use this to monitor the count of "xfer-in" and "xfer-out" messages on my
DNS servers.  There's already a graphs.cfg definition called [lines] that
presents them nicely in a graph.

J