monit-general
[Top][All Lists]
Advanced

[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: Fri, 29 Apr 2022 22:33:37 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

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
> 
> 
> 




reply via email to

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