Sunil Enugala
Sunil Enugala

Reputation: 21

Monitor URL to indicate that a service is up

How can I monitor an URL, for example: https://www.example.com/status and look for the number '1' as an indicator that the service is up?

Upvotes: 1

Views: 1489

Answers (2)

MangeshBiradar
MangeshBiradar

Reputation: 3938

check_mk_active-http -H www.example.com -u '/status?depth=0' -s "1"

Upvotes: 2

Keith
Keith

Reputation: 349

This can easily be done with check_http, which is a standard plugin.

Look at the -u and -s options, although there's no reason to limit your status codes to "0" or "1".

So, something like this:

/path/to/check_http --ssl -H www.example.com -u /status -s "1"

Upvotes: 1

Related Questions