[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trouble with responsetime keyword
From: |
Lutz Mader |
Subject: |
Re: trouble with responsetime keyword |
Date: |
Tue, 3 May 2022 22:13:07 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
Hello M/Monit Support,
nice to see, but the messages does not fit well, I think.
For my definition
check host Localhost with address 192.168.1.4
if failed port 8081 protocol http and responsetime > 1 ms then alert
I got the following
[2022-05-03T21:49:03+0200] debug : 'Localhost' succeeded testing
protocol [HTTP] at [192.168.1.4]:8081 [TCP/IP] [response time 0.908 ms]
[2022-05-03T21:49:03+0200] debug : 'Localhost' connection succeeded
to [192.168.1.4]:8081 [TCP/IP]
[2022-05-03T21:49:03+0200] error : 'Localhost' response time 0.908 ms
exceeded the limit [time > 1 ms]
The messages "response time 0.908 ms exceeded the limit" does not fit,
the response time does not exceeded the limit.
For the following
check host Localhost with address 192.168.1.4
if failed port 8081 protocol http and responsetime < 1 ms then alert
The messages fit better
[2022-05-03T21:55:58+0200] debug : 'Localhost' succeeded testing
protocol [HTTP] at [192.168.1.4]:8081 [TCP/IP] [response time 0.877 ms]
[2022-05-03T21:55:58+0200] debug : 'Localhost' connection succeeded
to [192.168.1.4]:8081 [TCP/IP]
[2022-05-03T21:55:58+0200] debug : 'Localhost' response time 0.877 ms
succeeded [time < 1 ms]
:
[2022-05-03T21:56:28+0200] debug : 'Localhost' succeeded testing
protocol [HTTP] at [192.168.1.4]:8081 [TCP/IP] [response time 1.099 ms]
[2022-05-03T21:56:28+0200] debug : 'Localhost' connection succeeded
to [192.168.1.4]:8081 [TCP/IP]
[2022-05-03T21:56:28+0200] error : 'Localhost' response time 1.099 ms
exceeded the limit [time < 1 ms]
This is true, the limit was exceeded.
Nice to see, someone add the responsetime option.
> Fixed (will be part of next release)
>
> Best regards,
> The M/Monit team
With regards,
a comment only,
Lutz