[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trouble with responsetime keyword
From: |
M/Monit Support |
Subject: |
Re: trouble with responsetime keyword |
Date: |
Tue, 3 May 2022 12:55:26 +0200 |
Fixed (will be part of next release)
Best regards,
The M/Monit team
> On 29. 4. 2022, at 22:33, Lutz Mader <lutz.mader@freenet.de> wrote:
>
> Hello Noel,
> you are right.
>
> The syntax of your first sample should be right, see
> https://mmonit.com/monit/documentation/monit.html#NETWORK-PING-TEST,
> but does not fit to the p.y definitions (I think).
>
> Your second sample confuse me, with a look to _checkConnection (in
> validate.c) the "Event_post(s, Event_Speed, State_Failed" set the status
> always to failed.
>
>> Any guidance would be appreciated
>
> The responsetime does not work, you can not use this at the time.
>
> With regards,
> Lutz
>
>
> Am 29.04.22 um 19:06 schrieb Noel:
>> FreeBSD 13.0-RELEASE-p11
>> monit-5.32.0 installed from ports
>>
>> I'm having trouble using the reponsetime keyword in a check host statement.
>>
>> If I use:
>> check host example with address example
>> if failed ping4 with responsetime > 250 ms then alert
>>
>> running "monit reload" results in "syntax error 'responsetime'"
>>
>> If I use the port/protocol test, it doesn't give a syntax error, but
>> always fails the test.
>>
>> check host example with address example
>> if failed port 80 protocol http and responsetime > 250 ms
>> timeout 20 s
>> then alert
>>
>> # monit status
>> ...
>> Remote Host 'example'
>> status Speed failed
>> monitoring status Monitored
>> monitoring mode active
>> on reboot start
>> port response time 8.533 ms to example:80 type TCP/IP
>> protocol HTTP
>> data collected Fri, 29 Apr 2022 11:54:02
>>
>>
>> Any guidance would be appreciated
>>
>>
>> -- Noel Jones
>>
>>
>>
>
>
- Re: trouble with responsetime keyword,
M/Monit Support <=