Ad Widget

Collapse

About the log file monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • albertxiao
    Junior Member
    • Dec 2008
    • 16

    #1

    About the log file monitoring

    I try to monitor one log file with the following configuration

    Item
    Description 'ZABBIX Serverhp log oracle access monitoring'
    Type ZABBIX agent (active)
    Key log[/tmp/php_errorlog,ORA-]
    Type of information Log
    Update interval (in sec) 3

    Trigger "Trigger for PHP Oracle Access"
    Name Trigger for PHP Oracle Access
    Expression {ZABBIX Server:log[/tmp/php_errorlog,ORA-].nodata(0)}#1

    I can get the triger while the logfile reports an error.
    I wonder how I can monitor the numbers of error reports in the logfile so that I can use some graph to show it out.
  • Kai-Kai
    Senior Member
    • Apr 2009
    • 142

    #2
    Hello, I think you can use the count functionnality.
    It's described page 125 of the pdf documentation.

    Something like :
    {ZABBIX Server:log[/tmp/php_errorlog,ORA-].count(DURATION) should return you the number of values collected by your item during "DURATION" seconds.
    You can also specify a second parameter to specify a regexp to count, it can allow you to count for example the number or ORA-001, ORA-002, ... separatly if needed.

    Hopping it helps.

    Comment

    Working...