Forum Discussion

Mike_Rausch_628's avatar
Mike_Rausch_628
Icon for Nimbostratus rankNimbostratus
Aug 30, 2006

Monitor Logs do not show which pool it is referring to

I currently have my bigip sending me emails from the ltm log file when a pool member status changes. Unfortunately, when the log entry is made there is no way of knowing which pool the member belongs to. Is there an Irule that I can use to log which pool a member belongs to when the log entry is made?
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Monitors and iRules don't interact (yet), so you can't really use an iRule to report monitor activity.

     

     

    I believe there are existing CRs to have monitor status messages include both the pool name and the name of the monitor that changed the status. You can add weight to that request by calling F5 Support to open a new case referencing your request for the relevant CR(s).

     

     

    HTH

     

    /deb

     

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Another thought, although not an iRules solution:

    You can create a custom monitor (based on the shell script on the LTM filesystem @ /usr/bin/monitors/sample_monitor) which takes the pool name as an input variable and outputs a more descriptive log message upon node failure.

    If you are careful that your log message still matches the expression in /etc/alertd/alert.conf
    ("Pool member (.*?) : (.*?) monitor status down.")
    (except without the spaces around the colon)
    you will still receive traps when a pool member goes down.

    HTH

    /deb
  • I looked in the sample_monitor file and did not see a place that could be edited to suit my needs. Is there a script somewhere that I can alter to pull the pool name?
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    ...we're way off topic for this forum...

     

    I heard a rumor we were going to add a monitoring forum soon, for which this would be a perfect topic.

     

     

    What you need to do is modify the sample script to use an input variable POOL which you would configure when you create the monitor in the LTM configuration, then add an "else" to the status check "if" clause that would log a more explicit message including the value $POOL. Some documentation on external monitors: Click here (although you will be specifying a variable, rather than an argument to the script. In the GUI, if you go to Local Traffic / Monitors and create a new monitor of type External, you'll see where to specify the name / value pair.)

     

     

    F5 Networks Consulting (consulting@f5.com) can be engaged on a billable basis to assist with development of custom scripted external monitors.

     

     

    HTH

     

    /deb

     

     

  • Sorry, old thread I know, but I was looking at something similar & noticed the monitor status not being available (Yet).

     

     

    Assuming that's still the case (And I haven't seen anything to say it's changed), what about creating an external monitor, that altered an external(file) 'data Group List'?

     

     

    The monitor updates the datagroup list (Of type string or integer or whatever). And the iRule can read that.

     

     

    H