Ad Widget

Collapse

create macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yngvith
    Member
    • Nov 2015
    • 34

    #1

    create macro

    HI,
    I'm doing a log file monitoring, with log file rotation.
    Thus I'm using
    logrt[/path/to/file/regexp_describing_filename_pattern,<regexp>,<encod ing>,<maxlines>,<mode>,<output>]

    I would like to create a macro for the rotating log file name, i.e. for the:
    regexp_describing_filename_pattern

    With a simple date cmd, I get the log file name:

    date "+%Y_%m_%d.stderrout.log"

    How can I create a macro with this expression in Zabbix 3 ?
    And then use this macro for logrt[] ?

    I did try this:
    {$HNMCONNECTSKRA} = "+%Y_%m_%d.stderrout.log"

    can you please help on this matter?

    best regards
    Yngvi
Working...