Xymon Mailing List Archive search

Problem with long ipv6 address

1 message in this thread

list Anders Liljegren · Wed, 20 Jul 2011 16:27:05 +0200 ·
Hello!

The command netstat under Linux truncates long ipv6 adresses. This has the effect that rules like the following does not work as expected:

 PORT LOCAL=2001:6b0:b:231:130:238:31:23:22 STATE=LISTEN MAX=1 "TEXT=SSHD v6"

An ugly workaround is to truncate the string in the rule also:

 PORT LOCAL=2001:6b0:b:231:130:238:3:22 STATE=LISTEN MAX=1 "TEXT=SSHD v6"

A better solution would be for xymon to use the flag "-T" on the netstat command under Linux. Other operative systems may need other flags or need no flag.

Best regards

-- 
Anders Liljegren                     Mail: IT och inköp, Uppsala universitet
Phone: +XX XX XXXXXXX                      Box 887
mailto:user-1eaa65a51960@xymon.invalid         SE-751 08  UPPSALA
http://www.anst.uu.se/andelilj             Sweden