Forum Discussion
HTTP Monitor to Check USER-COUNT from Ivanti Node – Regex Issues
- Aug 07, 2025
I think it's because it matches also <br>MAXIMUM-LICENSED-USER-COUNT=0;
could you try
recv "<br>USER-COUNT=([0-9]{1,3}|[1-2][0-9]{3}|3000);"
"-" and "=" are regex special characters which cause error in your "USER-COUNT=..."
change it to use ascii hexadecimal to USER\x02dCOUNT\x03d...
https://www.tcl-lang.org/man/tcl8.4/TclCmd/re_syntax.htm#M41
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions
- pablo_juarezAug 07, 2025
Altostratus
Thanks for the idea, but couldnt make it work.
I have tried with just a digit, but monitor is always up.
This should match from 0 to 9, shouldnt it?
USER\x2DCOUNT\x3D[0-9]\x3B
This is what I get with the curl:
<br>USER-COUNT=3265;It works with exact match, for example USER-COUNT=15; is up with 15 users and is marked down with any other.
- zamroni777Aug 07, 2025
MVP
for number sequence, you can use \d+
so for ....>USER-COUNT=22222...
you can use \x3eUSER\x2dCOUNT\x3d\d+https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions/Character_classes
https://www.tcl-lang.org/man/tcl8.4/TclCmd/re_syntax.htm#M45
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