Xymon Mailing List Archive search

Xymon Service alert not showing proper status for stopped service - windows

list Jeremy Laidman
Fri, 13 Apr 2012 14:05:38 +1000
Message-Id: <CAAnki7BcFo2+K+w=user-a19474914a1e@xymon.invalid>

On Fri, Apr 13, 2012 at 4:36 AM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid> wrote:
 It was:          PORT STATE=LISTENING LOCAL=1433 MIN=1 Test=SQLServer


         I changed it to:

 PORT STATE=LISTENING LOCAL=%[.:](1433)$ MIN=1 TEXT=SQLServer Listener
  and it seems to be working now for the 1433 port.
Maybe I had the "LOCAL=1433" syntax wrong for the analysis.
Correct.  The man page defines the "LOCAL" parameter as "local address
specification in the format used on the output from netstat."  So you're
trying to match a string in "address:port" format, rather than just a port
number.

You could instead have used "0.0.0.0:1433", but the regular expression form
(starting with "%") has the advantage of matching both IPv4 and IPv6
sockets.  Your status is probably saying "found 2, req. 1 or more" - once
for IPv4 and once for IPv6.

J