Docs · Monitors
Websites
Whether each web address answers with the page it should, and how fast — the web shop, the ERP portal, each store's back office — and what each reason in the Why column means.
A Websites monitor asks each web address for its page, as a browser would, and says whether it came back with the page it should, in time. It is for the pages people open all day: the web shop, the ERP portal, the payment gateway's health page, each store's back office.
| Status | Colour | Means |
|---|---|---|
| Up | Green | Answered with a status code that counts as up, holding the text asked for, in time |
| Slow | Amber | All of that, but slower than Slow after |
| Down | Red | Anything else. Why says what |
| No address | Grey | A store with no server address |
In the answer, status is up, slow, down or nohost.
#Before you start
Nothing is set up on the servers. Each address is asked with a plain GET, with no cookie and no password, so the page a monitor can judge is one anybody can open: a sign-in page, a home page, a health page. A page behind a sign-in answers with its sign-in page or a redirect to it, which is still a fair answer to is it up?
On Mosaic Cloud only public addresses can be asked. Internal portals and store back offices need a Mosaic inside the network.
#Setting it up
Press + beside Monitors and choose Websites. Under Look at, choose a list or the stores.
| Field | Notes |
|---|---|
| Web addresses | For a list, one a line, starting https:// or http://. A name before a | is shown in the table |
| Each store's page | For the stores: https://{host}/ to start with. {host} is each store's server address: https://{host}:8443/backoffice/ |
| Counts as up | The status codes: 2xx, 3xx to start with. 200, 2xx, 200-299, with commas between them |
| Slow after (ms) | 3000 to start with. 0 is never slow |
| The page says | Text the page must hold to be up, such as a word on its sign-in page. Case does not matter. Empty asks nothing of the page |
| Accept any certificate | Off to start with. See Certificates of their own |
| Wait (seconds) | 10 to start with |
| Check every (minutes) | 5 to start with |
An example list:
Web shop | https://shop.example.com
Shop API health | https://api.shop.example.com/health
Payment gateway | https://pay.example.com/status
ERP portal | https://erp.example.local/portal/login#Redirects, and the page itself
Redirects are followed, five at most, each one held to the same rule about where Mosaic may call. The status code judged is the last page's, and Response (ms) is the whole of it, every redirect and the page itself, because that is what somebody opening it waits.
The page says catches the page that answers 200 with an error on it, which a status code alone calls up: a maintenance page, a Service unavailable rendered by the application, an empty shell. Choose words that are on the page only when it works: Sign in, the shop's name in its footer. Up to the first 2 MB of the page is read for them.
#Certificates of their own
An https:// page whose certificate Mosaic does not trust is Down, as a browser would refuse it. A store's back office often has a certificate of its own making; for those, either:
- trust its signer under Tenancy → Network, which is right where your company signs them, or
- turn Accept any certificate on, and the page counts whatever its certificate. Only a
GETis sent, with nothing secret in it.
For when the certificates themselves run out, use a Certificates monitor.
#The table
| Column | Field | Holds |
|---|---|---|
| Store and Code, or Name | name, code | Who |
| Address | url | The address asked |
| Status | status | As above |
| Code | statusCode | The last page's HTTP status code |
| Response (ms) | responseMs | The whole of it, redirects included |
| Why | error | Empty while up |
| Checked | checkedAt | When it was asked |
finalUrl, where the redirects ended, is there to add under Display.
#What Why says
| Why | Means | What to do |
|---|---|---|
| Answered 503, not 2xx, 3xx. | It answered, with a code that does not count as up | Look at the application. A 401 or 403 on a page that needs a sign-in can be counted as up: add it to Counts as up |
| The page does not say “Sign in”. | The page came back without the text | The application is showing an error page, or the text changed |
| Took 4200 ms, past 3000. | Slow, amber | Look at the server's load, or raise Slow after |
| No answer within 10 s. | Nothing came back in time | The server is down, or a firewall drops the connection |
| Refused: nothing is listening there. | The machine said no on that port | The web server is stopped, or the port is wrong |
| Unknown host: the name does not resolve. | The name cannot be looked up from the machine Mosaic runs on | Fix the name |
| Unreachable: no route to the host. | The network has no way there | Check the line, or the address |
| The server closed the connection. | It hung up without an answer | Often a proxy or a load balancer with nothing behind it |
| Its certificate has expired. | The page's certificate ran out | Renew it. A Certificates monitor warns weeks before |
| Its certificate is issued for another name. | The address is not a name the certificate is good for | Use the name it is issued for |
| Its certificate is signed by somebody this server does not trust. … | A certificate of your company's or of its own making | See Certificates of their own |
| … is not a web address: it should start with https:// or http://. | A line without its scheme | Add https:// |
| No address. | The store has no server address | Fill it in under Business Locations |