Forum Discussion
Proper syntax for using quotes in monitors send/recv?
For http monitors, we generally look at our application's status page. This returns the output from various tests, with both the test name and result surrounded by quotes. It's my understanding that quotes need to be prefaced with a backslash in order for them to be properly processed.
I didn't have any problems with this until I tried "load sys config" from TMSH, and realized it's not liking the syntax:
(Active)(/Common)(tmos) create ltm monitor http MyMon send 'GET /MyApp/Status\r\n' recv '\"httpStatus\":\"OK\"'
(Active)(/Common)(tmos) load sys config
Loading configuration...
/config/bigip_base.conf
/config/bigip_user.conf
/config/bigip.conf
01070642:3: Monitor /Common/MyMon parameter contains unescaped " escape with backslash.
Unexpected Error: Loading configuration process failed.
- natheCirrocumulus
John, does his askf5 solution help?
https://support.f5.com/kb/en-us/solutions/public/15000/900/sol15977.html
SOL15977: Health monitor that contains certain characters in receive or send strings may cause configuration load failures
N
- HadrienNimbostratus
Use hex code \x22 for double quote.
- John_Heyer_1508Cirrostratus
Seems to work:
\x22httpStatus\x22:\x22OK\x22
I'll have to do an upgrade though to see if there's problems loading the config after hotfix
- John_Heyer_1508Cirrostratus
That worked. Just went from 11.6.1 to 11.6.1 HF1 without issue
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com