monit-general
[Top][All Lists]
Advanced

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

trouble with responsetime keyword


From: Noel
Subject: trouble with responsetime keyword
Date: Fri, 29 Apr 2022 12:06:57 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

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]