Ad Widget

Collapse

Variable URL - WEB Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bartaadam87
    Junior Member
    • Nov 2019
    • 9

    #1

    Variable URL - WEB Monitoring

    Hello all,

    I need to monitor webpages for customers - URL is changing for each server. URL is identical to customer name: FRA-TEST customer server should have web check for https://test-mypage.something.com
    After some tests, I managed to create templates using macro {HOST.NAME} = https://{HOST.NAME}-mypage.something.com. The only problem with this solution is need to rename all hosts and fill visible name, which leads me to my questions:

    1) Is there any way how to use regex expression as variable in WEB scenario step? This way I would just need to use substring of host name (which is autogenerated during discovery)?

    2) Other option is to automatically fill host visible name, but I'm not sure in which step to do this - again, I would need to use substring of Host / DNS name.


    Can you please advise what would be the best solution - I'm ok with both, either using substring / regex or autogenerating visible names of servers.

    Thanks,
    Adam
  • bartaadam87
    Junior Member
    • Nov 2019
    • 9

    #2
    - SOLVED -
    I managed to solve this by using User Parameter option in zabbix_agent config.
    I defined my own variable as substring of host name: UserParameter=variable,echo %computername:~4%.

    This is used as host visible name during discovery.

    Comment

    Working...