A
A
Alexey Pomogaev2011-06-06 10:55:34
linux
Alexey Pomogaev, 2011-06-06 10:55:34

Tracking the state of a web server on Linux?

You need to monitor the web server for 502, 504 and other errors, say once a minute with email notification. Are there any standard Debian packages for this purpose?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
z0rc, 2011-06-06
@z0rc

logwatch.

I
impass, 2011-06-26
@impass

write a shell script with curl and sendmail in an infinite loop
the console curl has an option suitable for getting the HTTP response code
-w/--write-out <format>
Defines what to display on stdout after a completed and successful operation. The format is a string that may contain plain text mixed with any number of variables. The string can be specified as "string", to get read from a particular file you specify it "@filename" and to tell curl to read the format from stdin you write "@-".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question