Community discussions

MikroTik App
 
epjvdpalen
just joined
Topic Author
Posts: 14
Joined: Thu May 03, 2018 2:01 pm
Location: The netherlands

Monitor a (shared) webserver subfolder (only)

Thu May 03, 2018 2:10 pm

Hi guys, need your help on the following, who can help?
We want to monitor a webserver, not just via the regular http probe in The Dude, since 'our' webserver is hosted with a provider that hosts multiple webservers on one server.
Therefore, the overall webserver URL is http://<dnsname> and 'our' webserver resides in a subdirectory, hence 'our' webserver is reachable via http://<dnsname>/<subdirectory>
I want to monitor only that specific directory, to check whether our webserver is up and running, no point in checking the whole server via the standard http probe.
We tried to create a new http-probe, but do not know what specific string needs to be sent via the 'Send'field.
Can anybody help in explaining how to adjust the HEAD /HTTP/1.0\r\n\r\n string? What needs to be put in place? (we are no http programmers, but network engineers ;-) )
Is it possible anyway?
Thank you in advance!
 
Sob
Forum Guru
Forum Guru
Posts: 9049
Joined: Mon Apr 20, 2009 9:11 pm

Re: Monitor a (shared) webserver subfolder (only)

Fri May 04, 2018 1:55 am

Try:
HEAD /<subdirectory> HTTP/1.0\r\nHost: <dnsname>\r\n\r\n
 
epjvdpalen
just joined
Topic Author
Posts: 14
Joined: Thu May 03, 2018 2:01 pm
Location: The netherlands

Re: Monitor a (shared) webserver subfolder (only)

Fri May 04, 2018 11:42 am

Try:
HEAD /<subdirectory> HTTP/1.0\r\nHost: <dnsname>\r\n\r\n
Thx Sob, no luck yet. Reason for asking was because our provider has our website down (working on it to get it up again).
I tried your suggestion, but Dude notifies us that site is up, while in fact the site is down. The server is up, however no information is retrieved, just an empty page.
Maybe we need to monitor on a specific object on the page? For instance a picture, or paragraph header?
If so, we will do that when the page is up and running againg.
Question: can I change the string into "HEAD /<subdirectory>/<picture.jpg> HTTP/1.0\r\nHost: <dnsname>\r\n\r\n" or something similar then?
Regards, E.
 
Sob
Forum Guru
Forum Guru
Posts: 9049
Joined: Mon Apr 20, 2009 9:11 pm

Re: Monitor a (shared) webserver subfolder (only)

Fri May 04, 2018 3:09 pm

This whole config is a little unusual. Even though your backend server is down, it's likely that the main server returns something. And it depends on what it is. It's hard to give you exact advice when I don't see it. If I was you, I'd use developer console in web browser and inspect requests to your server. You can see all request and response headers and it should make clear what exactly is happening and what you need to be looking for in Dude.
 
epjvdpalen
just joined
Topic Author
Posts: 14
Joined: Thu May 03, 2018 2:01 pm
Location: The netherlands

Re: Monitor a (shared) webserver subfolder (only)

Mon May 07, 2018 10:52 am

This whole config is a little unusual. Even though your backend server is down, it's likely that the main server returns something. And it depends on what it is. It's hard to give you exact advice when I don't see it. If I was you, I'd use developer console in web browser and inspect requests to your server. You can see all request and response headers and it should make clear what exactly is happening and what you need to be looking for in Dude.
Thx Sob, Will look into your suggestion, regards,
 
Ridddick
just joined
Posts: 20
Joined: Mon Jan 23, 2012 2:45 pm

Re: Monitor a (shared) webserver subfolder (only)

Wed May 18, 2022 11:38 am

Any luck with that? The task looks simple - check website availability by URL (contoso.com) but dude operates with ip-addresses not urls. Is there a workaround?
 
epjvdpalen
just joined
Topic Author
Posts: 14
Joined: Thu May 03, 2018 2:01 pm
Location: The netherlands

Re: Monitor a (shared) webserver subfolder (only)

Fri May 20, 2022 11:00 am

Any luck with that? The task looks simple - check website availability by URL (contoso.com) but dude operates with ip-addresses not urls. Is there a workaround?
no , no luck, gave up on this...

Who is online

Users browsing this forum: No registered users and 4 guests