[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: R: Monit e protocollo DNS



Per piacere imposta il tuo client affinche faccia il reply con Re: e
non con R:, grazie.

On Fri, 26 Jan 2007 17:27:51 +0100
Alberto wrote:

> allora ho pensato di usare un send/expect (vedi secondo esempio) ma
> mi da un errore che proprio non capisto.

>     # non funziona, GENERIC: error receiving data -- Resource
>     # temporarily
> unavailable
>     if failed port 443 type tcpssl
>         send "GET / HTTP/1.0\r\n"
>         send "Host: server1 \r\n"
>         send "Connection: close\r\n"
>         expect "HTTP/[0-9\.]{3} 401 .*"
>     then alert

L'errore non è relativo alla connessione, che avviene correttamente, ma
al trasferimento dei dati.
Inoltre la regola è sbagliata perchè IIRC per ogni send devi utilizzare
un expect(send-expect-send-expect ecc...ecc...) mentre tu infili tre
send di fila.
Intendo una cosa di questo tipo (da adattare al tuo caso):

send "GET / HTTP/1.0\r\nHost: server1\r\n\r\n"
expect "HTTP/[0-9\.]{3} 401 .*"

Una volta corretti gli statement send/expect (fai largo uso di "monit -v
validate" per il debug) prova ad aumentare il timeout (with timeout 15 s
ad esempio).

ciao,
a.




Reply to: