Translations of this page:

check_remote_by_http

(Unvollständig, mehr Infos auf der englischen Seite.)

check_remote_by_http ist ein Nagios-Plugin zum Abfragen von Parametern von Hosts in einem LAN. Es nutzt HTTP als Kommunikationsprotokoll und ist als eine kleine und schnelle Alternative zu net-snmp und NRPE entwickelt worden. check_remote_by_http arbeitet mit dem kleinen und mächtigen http-Server „knoerre“ zusammen, um Werte wie Load, Diskusage und mehr abzufragen.

check_remote_by_http sendet abhängig vom angegebenen „key“ einen HTTP-Request und erwartet in der letzten Zeile der Antwort eine Zahl, die mit dem angegebenen „warnlevel“ und „critlevel“ verglichen wird.

key ist eine Zeichenkette, die als HTTP GET-Request verschickt wird und vom HTTP-Server abhängt. Wenn beispielsweise als key „load1“ angegeben wird, dann wird der folgende HTTP-Request verschickt:

  GET /load1 HTTP/1.0 

Wenn auf der anderen Seite knoerre als HTTP-Server läuft, dann erhält man (im LAN nach ca. 1 Millisekunde) den load-per-1-minute-average-Wert.

Noch schneller ist die Abfrage per UDP mit check_remote_by_udp, das auch als Basis für NagiosFS dient.

See Also

Examples

Some examples of check_remote_by_http with knoerre as remote http server:

$ check_remote_by_http -w 10 -c 20 -H 172.16.1.1 -p 8888 load1
REMOTE OK - 0.14 | load1=0.14

$ check_remote_by_http -w 80 -c 90 -H 172.16.1.1 -p 8888 diskusage/home/www
REMOTE OK - 28 | diskusage/home/www=28

$ check_remote_by_http -w 1 -c 1 -H 172.16.1.1 -p 8888 process/blowfishd
REMOTE OK - 1 | process/blowfishd=1

$ check_remote_by_http -w 1 -c 1 -H 172.16.1.1 -p 8888 nfs/var/blowfishd/.I_AM_ALIVE.DO_NOT_DELETE
REMOTE OK - 1 | nfs/var/blowfishd/.I_AM_ALIVE.DO_NOT_DELETE=1
nagios/plugins/check_remote_by_http.txt · Zuletzt geändert: 2011/08/22 15:47 von reichhart
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0