Erwin: Webserver Überwachung

Beitrag lesen

Hallo.

Kennt jemand ein Tool / Programm das einen Webserver Überwachen kann.

Falls du es mit PERL machen möchtest, da gibts die libwww:
use LWP::Simple;

die Methoden:

get($url)

The get() function will fetch the document identified by the given URL and return it. It returns undef if it fails. The $url argument can be either a simple string or a reference to a URI object.
You will not be able to examine the response code or response headers (like 'Content-Type') when you are accessing the web using this function. If you need that information you should use the full OO interface (see the LWP::UserAgent manpage).

head($url)

Get document headers. Returns the following 5 values if successful: ($content_type, $document_length, $modified_time, $expires, $server)
Returns an empty list if it fails. In scalar context returns TRUE if successful.

Solch ein Script als cron laufen lassen und den status/response in ein logfile schreiben.

Falls (Zeitbasis) nicht erreichbar -> mail/sms

Gruss, Erwin

--
SELFforum - Das Tor zur Welt!
Theoretiker: Wie kommt das Kupfer in die Leitung?
Praktiker: Wie kommt der Strom in die Leitung?