Ad Widget

Collapse

Monitor number of hits in a logfile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gryphius
    Member
    • Aug 2007
    • 30

    #1

    Monitor number of hits in a logfile

    I'm trying to monitor our /var/log/maillog to build a nice graph of how many messages have been sent in a period of time.

    So I created a [/var/log/maillog,'sent'] item, but this transfers every matching line to the zabbix server. I'd rather see the number of hits for a given period of time, not the hits itself. Is there anyway to create an item like this? (something like log[/var/log/maillog,'sent'].count(60) maybe? )
Working...