Ad Widget

Collapse

zabbix execute script if there a new record in log file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • glardz95
    Junior Member
    • Oct 2019
    • 14

    #1

    zabbix execute script if there a new record in log file

    hello,

    i have this item bcp_log with item key log[/mnt/test.log], and i want execut a scrip if new line is added, the script is in the server zabbix and test.log is in an other server,

    do you have an idea ?

    thanks
  • gert.derouck
    Member
    • Jan 2020
    • 69

    #2
    Hi,

    you should also create a trigger that evaluates your log item, by e.g. matching some specific string in the logfile.

    With an additional trigger action, that reacts on your newly created trigger, a script can be triggered on the zabbix server (or client).

    Regards
    Last edited by gert.derouck; 15-01-2020, 14:38.

    Comment

    Working...