Forum Discussion
Jeremy_Bridges_
Sep 14, 2009Nimbostratus
I got that part. What I don't follow is how to execute iRules from another iRule. Maybe that is not what was meant.
So, to clear this up, let me walk through each element of the solution:
1. A dummy Services VIP is created that operates on port 80 and has no pool.
2. An iRule is created and linked to the Services VIP that parses the URL to get the stat profile and stat profile field name. This iRule uses these to reset a stat profile's field value.
If this is the entire solution, as I said before, it won't work for my situation. My stat profiles are set up similarly to this:
stats-Server1
----------------------
over-ttl-connection-count-ip1:port1
over-ttl-connection-count-ip2:port2
over-ttl-connection-count-ip3:port3
stats-Server2
----------------------
over-ttl-connection-count-ip21:port21
over-ttl-connection-count-ip22:port22
over-ttl-connection-count-ip23:port23
Using the solution above, I would set up a dummy Services VIP, associate the "stats-Server1" profile to the Services VIP and link my stats management iRule to the Services VIP. Let's call this Services VIP "Server1-Manager". The problem is that any requests to "Server1-Manager" can only manipulate "stats-Server1". It cannot manipulate any other stat profiles. For, as best as I can tell from my testing, an iRule can only modify or view the one stat profile associated with the VIP the iRule is linked to:
Works:
http://server1.manager/stats-Server1/over-ttl-connection-count-ip1:port1/reset
Doesn't Work:
http://server1.manager/stats-Server2/over-ttl-connection-count-ip21:port21/reset
Am I in error? Can requests directed at one VIP, through an iRule, modify other stat profiles than the one stat profile associated with the VIP? If so, how can I configure the VIP, stat profile, and iRule to accomplish this?