monit-general
[Top][All Lists]
Advanced

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

Re: Host test with Server returned status 538226728


From: address@hidden
Subject: Re: Host test with Server returned status 538226728
Date: Fri, 16 Nov 2018 22:40:15 +0100

Hello Lutz,

please can you get a network trace of the communication between monit and 
manager.intern:5001 ?

Best regards,
Martin



> On 14 Nov 2018, at 15:07, address@hidden wrote:
> 
> Hello,
> I use some "if failed host" tests with a "check process" service, based on 
> monit 5.21.0 everything works well, but with monit 5.25.2 I got some problems 
> (monit is running on AIX 7.2).
> 
>  if failed host manager.intern port 5001 protocol http for 1 cycles then alert
> The test failed with "HTTP error: Server returned status 538226728" or "HTTP 
> error: Server returned status 538226808" all the time.
> 
>  if failed host manager.intern port 5001 for 1 cycles then alert
> The test seems to work. And these tests works like expected too.
>  if failed host manager.intern port 8081 protocol http for 10 cycles then
>  if failed host manager.intern port 8081 protocol http for 10 cycles then 
> exec "/usr/local/etc/monit/scripts/zexec.sh"
>     else if succeeded then exec "/usr/local/etc/monit/scripts/zexec.sh"
> #  if failed host manager.intern port 8081 protocol http for 20 cycles then 
> restart
>  if failed host manager.intern port 5000 protocol http for 1 cycles then 
> alert  if failed host manager.intern port 5001 for 1 cycles then alert
>  if failed host manager.intern port 8081 protocol http for 30 cycles then 
> exec "/usr/local/etc/monit/scripts/manager.sh restart"
> 
> Any idea or suggestion, how to analyse where the http response (the returned 
> status "538226728") came from and what is going on with monit.
> 
> With regards,
> Lutz
> 
> p.s.
> The ports 8081 and 5001 are handled by a Jetty Webserver, the port 5000 is 
> not available (used for testing purpose only).
> 
> Appendage:
> monit log file, I start monit with -vv, but get some debug message only:
> The test with protocol http does not work, I got a status like 538226728.
> [MEZ Nov 14 12:55:36] debug    : 'Manager' process is running with pid 
> 37224774
> [MEZ Nov 14 12:55:36] debug    : 'Manager' process is running with pid 
> 37224774
> [MEZ Nov 14 12:55:36] debug    : 'Manager' zombie check succeeded
> [MEZ Nov 14 12:55:36] debug    : 'Manager' succeeded testing protocol [HTTP] 
> at [manager.intern]:8081 [TCP/IP] [response time 8.280 ms]
> [MEZ Nov 14 12:55:36] debug    : 'Manager' connection succeeded to 
> [manager.intern]:8081 [TCP/IP]
> [MEZ Nov 14 12:55:36] debug    : Socket test failed for [4.242.48.100]:5001 
> -- HTTP error: Server returned status 538226728
> [MEZ Nov 14 12:55:36] error    : 'Manager' failed protocol test [HTTP] at 
> [manager.intern]:5001 [TCP/IP] -- HTTP error: Server returned status 538226728
> [MEZ Nov 14 12:55:36] debug    : Socket test failed for [4.242.48.100]:5000 
> -- Connection refused
> [MEZ Nov 14 12:55:36] error    : 'Manager' failed protocol test [HTTP] at 
> [manager.intern]:5000 [TCP/IP] -- Connection refused
> [MEZ Nov 14 12:55:36] debug    : 'Manager' succeeded testing protocol [HTTP] 
> at [manager.intern]:8081 [TCP/IP] [response time 7.430 ms]
> [MEZ Nov 14 12:55:36] debug    : 'Manager' connection succeeded to 
> [manager.intern]:8081 [TCP/IP]
> 
> And all the time I test the socket only, without protocol http, it seems to 
> me the test work well.
> [MEZ Nov 14 14:24:20] debug    : 'Manager' process is running with pid 
> 37224774
> [MEZ Nov 14 14:24:20] debug    : 'Manager' process is running with pid 
> 37224774
> [MEZ Nov 14 14:24:20] debug    : 'Manager' zombie check succeeded
> [MEZ Nov 14 14:24:20] debug    : 'Manager' succeeded testing protocol [HTTP] 
> at [manager.intern]:8081 [TCP/IP] [response time 9.834 ms]
> [MEZ Nov 14 14:24:20] debug    : 'Manager' connection succeeded to 
> [manager.intern]:8081 [TCP/IP]
> [MEZ Nov 14 14:24:20] debug    : 'Manager' succeeded testing protocol 
> [DEFAULT] at [manager.intern]:5001 [TCP/IP] [response time 8.403 ms]
> [MEZ Nov 14 14:24:20] debug    : 'Manager' connection succeeded to 
> [manager.intern]:5001 [TCP/IP]
> [MEZ Nov 14 14:24:20] debug    : Socket test failed for [4.242.48.100]:5000 
> -- Connection refused
> [MEZ Nov 14 14:24:20] error    : 'Manager' failed protocol test [HTTP] at 
> [manager.intern]:5000 [TCP/IP] -- Connection refused
> [MEZ Nov 14 14:24:20] debug    : 'Manager' succeeded testing protocol [HTTP] 
> at [manager.intern]:8081 [TCP/IP] [response time 12.121 ms]
> [MEZ Nov 14 14:24:20] debug    : 'Manager' connection succeeded to 
> [manager.intern]:8081 [TCP/IP]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

[Prev in Thread] Current Thread [Next in Thread]