Ad Widget

Collapse

Log monitoring - extract

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fito
    Junior Member
    • Sep 2010
    • 6

    #1

    Log monitoring - extract

    Hi,
    I got stuck in one task, I need to monitor simple log file, and raise trigger, if numeric value in the log file is below specific value (<30)

    In the trigger description must be name of monitored file, for example in this case :
    Certificate 058E.pem will expire in "20" days

    Item configuration :
    Code:
    log[/home/zabbix/cisca_cert_list.txt,]
    Latest data :
    Code:
    0591.pem 641
    0590.pem 641
    058F.pem 635
    058E.pem 20
    058C.pem 629
    058B.pem 627
    058A.pem 627
    I have tried to extract fields using "([0-9]+)",,,,\1]", but I dont succeed ...

    server Zabbix 3.0.4 ,agent 3.0.14


    many thanks for help,
    Fito
Working...