From 80cc3bdc70fbcfa48d99395f9404b1bfad4dc892 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Mon, 31 Oct 2005 20:12:31 +0000 Subject: [PATCH] Added tcp port monitor variable to docs git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@361 7f574dfc-610e-0410-a909-a81674777703 --- doc/variables.xml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/doc/variables.xml b/doc/variables.xml index e42444bd..db343dda 100644 --- a/doc/variables.xml +++ b/doc/variables.xml @@ -976,6 +976,48 @@ + + + + + (ip4 only at present) + + + TCP port monitor for specified ports. Port numbers must be in the range 1 to 65535. Valid items are: + + count total number of connections in the range + (index must be omitted) + rip remote ip address + (index >=0 required) + rhost remote host name + (index >=0 required) + rport remote port number + (index >=0 required) + lip local ip address + (index >=0 required) + lhost local host name + (connection index >=0 required) + lservice local service name from /etc/services + (index >=0 required) + The connection index gives you access to each connection in the monitor, i.e. values can be 0 through n-1 connections. Values higher than n-1 are simply ignored. + + Examples: + ${tcp_portmon 6881 6889 count} + displays the number of connections in the torrent port range + ${tcp_portmon 22 22 rip 0} + displays the remote host ip of the first sshd connection + ${tcp_portmon 22 22 rip 9} + displays the remote host ip of the tenth sshd connection + ${tcp_portmon 1 1024 rhost 0} + displays the remote host name of the first connection on a privileged port + ${tcp_portmon 1 1024 rport 4} + displays the remote host port of the fifth connection on a privileged port + ${tcp_portmon 1 65535 lservice 14} + displays the local service name of the fifteenth connection in the range of all ports + + + +