Hey all,
In our web environment we have an F5 load balancer that sends traffic to active/passive varnish servers. Behind varnish is an array of apache nodes. I would like to detect which varnish node is active, and which apache nodes varnish thinks are alive.
I a check for our varnish host which tells me the total number of configured apache backends, the number of alive ones, and the list of hostnames for those that are alive. The total number of configured hosts, and the current active number give me something to trigger on, but I also want to have an item on the individual apache nodes telling me their status for a zabbix map.
I was thinking I could setup a calculated item on my apache hosts with a function something like:
dynocache2v1:varnish.backendhealth.la.str("{HOST.N AME}")
That is the varnish server and the item item key that holds the text list of hostnames that are active. I was thinking I could search that item for the hostname of an apache node to determine if it is currently active, but this item does not seem to work.
Additionally, as I mentioned earlier, we have two varnish servers. All traffic gets served to the first by default, but there is a second that takes over should the first fail. Thus, in my apache calculated item above, I would need to somehow save which varnish node is currently active from the F5 in a macro or something, then adjust the calculated item key to be something like:
$ACTIVE_VARNISH_NODE:varnish.backend.la.str("{HOST .NAME}")
Is that even possible? Does anyone have any suggestions on how to correct my function syntax or how I could do this better?
Thanks!
In our web environment we have an F5 load balancer that sends traffic to active/passive varnish servers. Behind varnish is an array of apache nodes. I would like to detect which varnish node is active, and which apache nodes varnish thinks are alive.
I a check for our varnish host which tells me the total number of configured apache backends, the number of alive ones, and the list of hostnames for those that are alive. The total number of configured hosts, and the current active number give me something to trigger on, but I also want to have an item on the individual apache nodes telling me their status for a zabbix map.
I was thinking I could setup a calculated item on my apache hosts with a function something like:
dynocache2v1:varnish.backendhealth.la.str("{HOST.N AME}")
That is the varnish server and the item item key that holds the text list of hostnames that are active. I was thinking I could search that item for the hostname of an apache node to determine if it is currently active, but this item does not seem to work.
Additionally, as I mentioned earlier, we have two varnish servers. All traffic gets served to the first by default, but there is a second that takes over should the first fail. Thus, in my apache calculated item above, I would need to somehow save which varnish node is currently active from the F5 in a macro or something, then adjust the calculated item key to be something like:
$ACTIVE_VARNISH_NODE:varnish.backend.la.str("{HOST .NAME}")
Is that even possible? Does anyone have any suggestions on how to correct my function syntax or how I could do this better?
Thanks!
Comment