/proc/net/tcp
is used to count the connectiont to port 21.
Provide an mrtg-graphable user count for ftpd
pure-mrtginfo [server
port]
Pure-Mrtginfo counts the number of clients currently connected to ftpd(8) and output the format in a format graphable by MRTG.
server port: defaults to 21.
/proc/net/tcp
is used to count the connectiont to port 21.
/proc/sys/kernel/hostname
is used to get the fully qualified hostname.
/proc/uptime
is used to get the uptime.
MRTG is a really nice package for graphing router traffic. Mrtg can also graph other information is available via SNMP or by running a program such as pure-mrtginfo. The author of this program uses it to graph CPU load, /var usage etc., and naturally the number of users connected to his FTP servers. See
http://oss.oetiker.ch/mrtg/
for more information about MRTG.
http://www.pureftpd.org/
Written by Arnt Gulbrandsen <[email protected]> and copyright 1995-2002 Troll Tech AS, Waldemar Thranes gate 98B, N-0175 Oslo, Norway, fax +47 22806380.
Pure-FTPd (C)opyleft 2001-2021 by Frank DENIS <j at pureftpd dot org>.
Use, modification and distribution is allowed without limitation, warranty, or liability of any kind.
11 releases since Debian 3.1 (Sarge); the text changed 7 times.