Skip to the page
DataMosaic

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.

StatusColourMeans
UpGreenAnswered with a status code that counts as up, holding the text asked for, in time
SlowAmberAll of that, but slower than Slow after
DownRedAnything else. Why says what
No addressGreyA 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.

FieldNotes
Web addressesFor a list, one a line, starting https:// or http://. A name before a | is shown in the table
Each store's pageFor the stores: https://{host}/ to start with. {host} is each store's server address: https://{host}:8443/backoffice/
Counts as upThe 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 saysText 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 certificateOff 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 GET is sent, with nothing secret in it.

For when the certificates themselves run out, use a Certificates monitor.

#The table

ColumnFieldHolds
Store and Code, or Namename, codeWho
AddressurlThe address asked
StatusstatusAs above
CodestatusCodeThe last page's HTTP status code
Response (ms)responseMsThe whole of it, redirects included
WhyerrorEmpty while up
CheckedcheckedAtWhen it was asked

finalUrl, where the redirects ended, is there to add under Display.

#What Why says

WhyMeansWhat to do
Answered 503, not 2xx, 3xx.It answered, with a code that does not count as upLook 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 textThe application is showing an error page, or the text changed
Took 4200 ms, past 3000.Slow, amberLook at the server's load, or raise Slow after
No answer within 10 s.Nothing came back in timeThe server is down, or a firewall drops the connection
Refused: nothing is listening there.The machine said no on that portThe 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 onFix the name
Unreachable: no route to the host.The network has no way thereCheck the line, or the address
The server closed the connection.It hung up without an answerOften a proxy or a load balancer with nothing behind it
Its certificate has expired.The page's certificate ran outRenew it. A Certificates monitor warns weeks before
Its certificate is issued for another name.The address is not a name the certificate is good forUse 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 makingSee Certificates of their own
… is not a web address: it should start with https:// or http://.A line without its schemeAdd https://
No address.The store has no server addressFill it in under Business Locations