Ad Widget

Collapse

Zabbix MACRO {HOST.IP} select specific interface ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gregs
    Junior Member
    • Nov 2024
    • 2

    #1

    Zabbix MACRO {HOST.IP} select specific interface ?

    Hello,

    for a template apache, i have a :
    MACRO VALUE
    {STATUS_URL} http://127.0.0.1:80/server-status


    it's ok untill the apache port.conf listen on *:80


    but i have changed this configuration to IP-PROD:80
    IP-PROD = the ip address of ENS192 network interface name.


    How can i set the value on this specific ENS192 ? (i have lot of vm) ?

    i tried :
    MACRO VALUE
    {STATUS_URL} http://{HOST.IP}:80/server-status

    But it still continue to connect via the ens192 interface instead of ens229.

    THANKS YOU IN ADVANCE !
  • gregs
    Junior Member
    • Nov 2024
    • 2

    #2
    indeed, this is just what i want

    Comment

    Working...