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

R: Monit e protocollo DNS



sempre con monic devo monitorar un server https con autenticazione
con la prima regola mi restituisce un errore http 401
allora ho pensato di usare un send/expect (vedi secondo esempio) ma
mi da un errore che proprio non capisto. dove sbaglio ??

grazie 1000
Alberto Spelta

check host server1 with address 10.0.0.1
    # funziona ma il sito chiede l'autenticazione e mi restituisce l'errore
http 401
    if failed port 443 type tcpssl protocol http then alert

    # 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




Reply to: