epacke / BigIPReport

Overview of your loadbalancer configuration
https://loadbalancing.se
8 stars 2 forks source link

Add Receive Disable String for monitors #189

Closed jo-xxx closed 4 years ago

jo-xxx commented 4 years ago

It would be a great enhancement to include "Receive disable string" in monitor details:

if (Get-Member -inputobject $Monitor -name "recvDisable") {
    $ObjTempMonitor.receivedisablestring = $Monitor.recvDisable
} else {
    $ObjTempMonitor.receivedisablestring = ""
}
jo-xxx commented 4 years ago

Thank you for the implementation! It works. I see that < and > is escaped for the receivestring only. I guess it's better to do this for sendstring and disablestring too. matchingmonitor.receivestring = matchingmonitor.receivestring.replace('<', '&lt;').replace('>', '&gt;');

timriker commented 4 years ago

I added escaping for the other strings. Good catch!

jo-xxx commented 4 years ago

Great! Thanks a lot