From 04c88f9bff4930dcef028f83979ae1a4e284a99c Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Mon, 31 Oct 2005 06:01:14 +0000 Subject: [PATCH] Added tcp port monitor support git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@358 7f574dfc-610e-0410-a909-a81674777703 --- doc/conkyrc.sample | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/conkyrc.sample b/doc/conkyrc.sample index 094c2e4c..8318be1c 100644 --- a/doc/conkyrc.sample +++ b/doc/conkyrc.sample @@ -165,3 +165,23 @@ ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem m ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} ${tail /var/log/Xorg.0.log 3 30} +$stippled_hr +${color #ddaa00}TCP Connection Summary: +${color #ff1133}Port(s) #Connections +${color #88aadd}ALL: $color ${tcp_portmon 1 65535 count} +${color #88aadd}sshd (22): $color ${tcp_portmon 22 22 count} +${color #88aadd}http (80): $color ${tcp_portmon 22 22 count} +${color #88aadd}torrent (6881-6889): $color ${tcp_portmon 6881 6889 count} +${color #ddaa00}TCP Connection Detail (${color #88aadd}Ports 1-65535${color #ddaa00}):${color #ff1133} +Remote Address ${alignr} Local Service/Port${color #88aadd} +${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0} +${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1} +${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2} +${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3} +${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4} +${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 lservice 5} +${tcp_portmon 1 65535 rhost 6} ${alignr} ${tcp_portmon 1 65535 lservice 6} +${tcp_portmon 1 65535 rhost 7} ${alignr} ${tcp_portmon 1 65535 lservice 7} +${tcp_portmon 1 65535 rhost 8} ${alignr} ${tcp_portmon 1 65535 lservice 8} +${tcp_portmon 1 65535 rhost 9} ${alignr} ${tcp_portmon 1 65535 lservice 9} +