Ad Widget

Collapse

Variable port numbers for web checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AllenG
    Junior Member
    • Jan 2020
    • 3

    #1

    Variable port numbers for web checks

    Hi there,

    I'm new to Zabbix and have a bit of a what I consider to be a challenge.

    We want to do web checks on 150+ hosts, the tricky part is that all of them use different port numbers at the end of their URLs, I'd like to make a macro that turns that port number into a variable for example:

    I want to make a macro that says if hostname is x use portnumber y (then have a list somewhere, somehow that it can get the correct port number from)

    so I can make the URL something to the effect of http://example.com:{$HOST.PORT} instead of creating a new web scenario for each host
  • AllenG
    Junior Member
    • Jan 2020
    • 3

    #2
    Just bumping this post, I'm really stuck here

    Comment

    • AllenG
      Junior Member
      • Jan 2020
      • 3

      #3
      What a helpful community this is, not even so much as an "It can't be done"

      Comment

      Working...