Ad Widget

Collapse

Random variable in MACRO for web scenario

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dagan
    Junior Member
    • Aug 2023
    • 2

    #1

    Random variable in MACRO for web scenario

    Hey all

    so i'm doing a webmail check where I already made log into it, send a mail/recieve it and log out.

    My problem is i would like the mail subject to always be random or ZABBIX CHECK - Random and then in next step check if that mail exists.
    I got the random subject part done using variables but i cant search for variables in "Required string".

    I've googled around and found i could make a new user macro which would get a random value thru the API. So i could use those in subject and "Required string"

    But i have no idea where to start with that

    Can somebody guide me in the best way of getting a macro with random value that changes lets say every 5 min? Or give me some info on how to make it work thru the API but im just stuck at start.

    Appreciate it

Working...