monit-general
[Top][All Lists]
Advanced

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

If failed port specifying ip


From: Guillaume François
Subject: If failed port specifying ip
Date: Fri, 5 Jun 2015 11:30:26 +0200

Hi all,

I'm trying inside a check process rule to make a check on a port of this process using the following rule:

if failed port 1186 for 3 times within 4 cycles then alert

Unfortunately it seems that monit default behavior it to look for this port on "localhost" as reported by interface but my process only listen on "real" IP.
failed to [localhost]:1186 type TCP/IP protocol DEFAULT

I tried to change the rule according to documentation

TCP/UDP port test syntax:

 IF FAILED
    [host]
    <port>
    [ipversion]
    [type]
    [protocol | {send/expect}+]
    [timeout]
    [retry]
 THEN action
where host seems allowed but monit reject it each time
if failed port 10.2.0.201 1186 for 3 times within 4 cycles then alert           -> syntax error '10.2.0.201'
if failed 10.2.0.201 1186 for 3 times within 4 cycles then alert        -> syntax error '10.2.0.201'

I also tried  "with adress" but it lead to the same rejection
if failed port 1186 with address 10.2.0.201 for 3 times within 4 cycles then alert            -> syntax error 'address'
 

It that possible ? If yes what is the correct syntax ?

Best Regards,
GF

reply via email to

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