KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

URL test check contents for text with double quotes

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
gorisdean



Joined: 20 Jun 2012
Posts: 22

PostPosted: Fri Jul 02, 2021 4:02 am    Post subject: URL test check contents for text with double quotes Reply with quote

I'm doing a URL test and checking its contents.
I should use an expression as multiple statusses should be accepted as "Host is alive".
The text to search for is:

"topBandText":"All Services Operational"

It looks like Hostmonitor is not able to handle the double quotes in this string.
Surrounding them by single quotes does not solve the issue.

I cannot simply search for 'All Services Operational' as the webpage lists all possible statusses, so I need that "topBandText" in front of it to be sure it is its current state.

The ultimate expression should be something like this:

('"topBandText":"All Services Operational"') or ('"topBandText":"Minor service Outage"') or ('"topBandText":"System Performance Degraded"') or ('"topBandText":"System Under Maintenance"')

Other statusses can be classified as Bad.

Page I'm talking about: https://protimestatus.freshstatus.io/
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12790
Location: USA

PostPosted: Fri Jul 02, 2021 11:19 am    Post subject: Reply with quote

Quote:
It looks like Hostmonitor is not able to handle the double quotes in this string.
Surrounding them by single quotes does not solve the issue.

Should work fine and as I see it works.
HostMonitor version?

Quote:
('"topBandText":"All Services Operational"') or ('"topBandText":"Minor service Outage"') or ('"topBandText":"System Performance Degraded"') or ('"topBandText":"System Under Maintenance"')

Its too long expression for URL test.
We will check and probably increase this limit.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12790
Location: USA

PostPosted: Mon Jul 05, 2021 8:14 am    Post subject: Reply with quote

We have update.
if you are using latest HostMonitor v.12.90, please contact support, we will provide link to new version

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index