LINUX.ORG.RU

История изменений

Исправление YAR, (текущая версия) :

Тест со сторонним web-сервером:

С переводом строки:

rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$ ./check_http -I 192.168.1.200 -u /nl.file -s OK
HTTP OK: HTTP/1.1 200 OK - 278 bytes in 0,001 second response time |time=0,001325s;;;0,000000;10,000000 size=278B;;;0
rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$ wget -qO- http://192.168.1.200/nl.file
{"id":"text_sensor-fan_state","value":"OK","state":"OK"}


Без:
rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$ ./check_http -I 192.168.1.200 -u /nnl.file -s OK
HTTP OK: HTTP/1.1 200 OK - 277 bytes in 0,001 second response time |time=0,001353s;;;0,000000;10,000000 size=277B;;;0
rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$ wget -qO- http://192.168.1.200/nnl.file
{"id":"text_sensor-fan_state","value":"OK","state":"OK"}rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$

Исходная версия YAR, :

Тест со сторонним web-сервером:

rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$ ./check_http -I 192.168.1.200 -u /nl.file -s OK
HTTP OK: HTTP/1.1 200 OK - 278 bytes in 0,001 second response time |time=0,001325s;;;0,000000;10,000000 size=278B;;;0
rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$ wget -qO- http://192.168.1.200/nl.file
{"id":"text_sensor-fan_state","value":"OK","state":"OK"}


rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$ ./check_http -I 192.168.1.200 -u /nnl.file -s OK
HTTP OK: HTTP/1.1 200 OK - 277 bytes in 0,001 second response time |time=0,001353s;;;0,000000;10,000000 size=277B;;;0
rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$ wget -qO- http://192.168.1.200/nnl.file
{"id":"text_sensor-fan_state","value":"OK","state":"OK"}rain@walkbook:/tmp/1231231/usr/lib/nagios/plugins$