====== check_remote_by_http ====== //(Unvollständig, mehr Infos auf der [[en/nagios/plugins/check_remote_by_http|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 [[http://www.tuxad.com/nagios-remote-performance.html|nach ca. 1 Millisekunde]]) den load-per-1-minute-average-Wert. Noch schneller ist die Abfrage per UDP mit [[nagios/plugins/check_remote_by_udp]], das auch als Basis für [[http://www.nagiosfs.de/|NagiosFS]] dient. ===== See Also ===== [[nagios/plugins/check_remote_by_udp|check_remote_by_udp(1)]] , knoerre(1) [[http://downloads.tuxad.de/nagios-fwb|http://downloads.tuxad.de/nagios-fwb]] ===== 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