Go to All Forums

How to add localhost URL check that is NOT a root URL ?

We want to add a URL check on ie. http://localhost/healthcheck in the Server Monitor, but it won't let you do this.  (It will throw error "Please enter the URL in a valid format. Accepted formats are given below.")

How can we monitor a local URL like this, without having to revert to writing a custom plugin ? I'd really like to have the administration centrally witinin Site24x7 console for this

Like (1) Reply
Replies (7)

Hi Simon,

 

We are working on removing this restriction now. We will enable adding non-root localhost URLs in URL check monitoring soon. Once the changes for this are live, we'll reply on this forum post thread. Thank you for raising this feedback.

 

Regards

Bhuvaneshwari

Like (0) Reply

I too could really use this feature, but I am hopeful when it is implemented it is not simply a check that the site exists and returns a any content, like a 200.  Rather rather that there is a string or regex content check on the return.  We need to be able to determine the health of a local web site by validating the return page has a certain string in it, like "good".  Currently returning a sting of "error" would also be considered fine since the page responds. 

Like (0) Reply

Excellent, thanks!

Like (0) Reply

Hi, 

 

We have removed the restriction for the URL checks in Resource Check Profile. It is now possible to add non-root URLs for monitoring in resource checks. 

For more detailed monitoring of local URLs, our website monitor can be used with the On-Premise Poller configured to monitor behind the firewall. For more details refer our URL/Website Monitoring Help.

 

Regards 

Bhuvaneshwari

Like (0) Reply

I like the local URL check, but it seems that it is "good" regardless what is returned as long at something is returned.  This ultimately just makes it a port monitor then really, it can get to http = good.  It seems there should be a pattern match entry so that the page returned can be checked for some content like "error", etc. Would that be possible to add in a future release?

Like (0) Reply

Hi Clindsay,

       How about using our on-premise poller. This would give a full fledged monitoring for your local url, I am sure you are aware of it. I would recommend using this instead. It includes a variety of configurations, including content checks like Should contain string(s), Should not contain string(s), Case sensitive, Should match regular expression and a lot more... 

I would recommend to form a monitor group of servers and the on-prem url and use the dependent monitor feature. That way when the url is down it will check for the server and then check for the url.

Hope it makes sense. If this is not the case, let us know the scenario so that we can check how best we can solve it. 

-Jasper

Like (0) Reply

Another option Clindsay, is to write a custom plugin for the local url that you want to monitor. The plugin can contain code to check for content matching and other checks of the desired internal url. I'll try to write a plugin and post it here. If anyone else want to contribute to the community can also do it and post it here.

-Jasper

 

 

 

Like (0) Reply

Was this post helpful?