Your message dated Tue, 14 Feb 2012 07:18:06 +0000
with message-id <[email protected]>
and subject line Bug#659710: fixed in pmacct 0.12.5-3
has caused the Debian Bug report #659710,
regarding sfacctd, nfacctd, uacctd daemons missing initscripts, default-files
and sample configs
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
659710: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659710
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pmacct
Version: 0.12.5-1
Even though the pmacct packages provides the sfacctd, nfacctd daemons in
addition
to the pmacctd daemon, they are missing corresponding initscripts, default-files
and sample configs.
I've attached proposed files for inclusion - the sfacct ones, I've tested, the
nfacct, pmacct ones, I've not. That said, the changes compared the currently
provided files for pmacct, is pretty much a matter of search/replace. The only
other changes I've made are:
- stop function of the initscripts now uses SIGTERM instead of SIGINT, as SIGINT
does not seem to be adequate anymore.
- the sample config files have had <daemon-name>_ prepended to the recovery_log
filenames.
I've tested the proposed changes on the sfacct side of things, on Ubuntu Lucid.
Please let me know if you'd rather have a diff or something.
/Thomas
# Defaults for nfacct initscript
# sourced by /etc/init.d/nfacct
# installed at /etc/default/sfacct by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Location of the configuration file
NFACCTD_CONF=/etc/pmacct/nfacctd.conf
# List of interfaces to start accounting on.
# See /usr/share/doc/pmacct/README.Debian for details.
INTERFACES=""
# Additional options that are passed to nfacctd
DAEMON_OPTS=""
#!/bin/sh
### BEGIN INIT INFO
# Provides: nfacct
# Required-start: $network $syslog
# Required-stop: $network $syslog
# Default-start: 2 3 4 5
# Default-stop: 0 1 6
# Short-Description: netflow accounting daemon
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/nfacctd
NAME=nfacctd
DESC="netflow accounting daemon"
CONFDIR=/etc/pmacct
test -x $DAEMON || exit 0
# Include nfacct defaults if available
if [ -f /etc/default/nfacct ] ; then
. /etc/default/nfacct
fi
stop () {
#start-stop-daemon --stop --oknodo --quiet \
# --pidfile /var/run/$NAME.pid \
# --exec $DAEMON
killall -TERM nfacctd
}
start () {
#start-stop-daemon --start --oknodo --quiet \
# --pidfile /var/run/$NAME.pid \
# --exec $DAEMON -- -f $PMACCTD_CONF $DAEMON_OPTS
if [ -n "$INTERFACES" ]; then
for i in $INTERFACES; do
ip link set $i up
$DAEMON -f $CONFDIR/nfacctd.$i.conf $DAEMON_OPTS
done
else
$DAEMON -f $CONFDIR/nfacctd.conf $DAEMON_OPTS
fi
}
case "$1" in
start)
echo -n "Starting $DESC: "
start
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
stop
echo "$NAME."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
stop
sleep 1
start
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
! nfacctd configuration
!
!
!
daemonize: true
pidfile: /var/run/nfacctd.pid
syslog: daemon
!
! interested in in and outbound traffic
aggregate: src_host,dst_host
! on this network
pcap_filter: net 127.0.0.0/8
! on this interface
interface: lo
!
! storage methods
!plugins: pgsql
!sql_host: localhost
!sql_passwd:
! refresh the db every minute
!sql_refresh_time: 60
! reduce the size of the insert/update clause
!sql_optimize_clauses: true
! accumulate values in each row for up to an hour
!sql_history: 1h
! create new rows on the minute, hour, day boundaries
!sql_history_roundoff: mhd
! in case of emergency, log to this file
!sql_recovery_logfile: /var/lib/pmacct/nfacctd_recovery_log
#!/bin/sh
### BEGIN INIT INFO
# Provides: pmacct
# Required-start: $network $syslog
# Required-stop: $network $syslog
# Default-start: 2 3 4 5
# Default-stop: 0 1 6
# Short-Description: promiscuous mode accounting daemon
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/pmacctd
NAME=pmacctd
DESC="promiscuous mode accounting daemon"
CONFDIR=/etc/pmacct
test -x $DAEMON || exit 0
# Include pmacct defaults if available
if [ -f /etc/default/pmacct ] ; then
. /etc/default/pmacct
fi
stop () {
#start-stop-daemon --stop --oknodo --quiet \
# --pidfile /var/run/$NAME.pid \
# --exec $DAEMON
killall -TERM pmacctd
}
start () {
#start-stop-daemon --start --oknodo --quiet \
# --pidfile /var/run/$NAME.pid \
# --exec $DAEMON -- -f $PMACCTD_CONF $DAEMON_OPTS
if [ -n "$INTERFACES" ]; then
for i in $INTERFACES; do
ifconfig $i up
$DAEMON -f $CONFDIR/pmacctd.$i.conf $DAEMON_OPTS
done
else
$DAEMON -f $CONFDIR/pmacctd.conf $DAEMON_OPTS
fi
}
case "$1" in
start)
echo -n "Starting $DESC: "
start
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
stop
echo "$NAME."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
stop
sleep 1
start
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
! pmacctd configuration
!
!
!
daemonize: true
pidfile: /var/run/pmacctd.pid
syslog: daemon
!
! interested in in and outbound traffic
aggregate: src_host,dst_host
! on this network
pcap_filter: net 127.0.0.0/8
! on this interface
interface: lo
!
! storage methods
!plugins: pgsql
!sql_host: localhost
!sql_passwd:
! refresh the db every minute
!sql_refresh_time: 60
! reduce the size of the insert/update clause
!sql_optimize_clauses: true
! accumulate values in each row for up to an hour
!sql_history: 1h
! create new rows on the minute, hour, day boundaries
!sql_history_roundoff: mhd
! in case of emergency, log to this file
!sql_recovery_logfile: /var/lib/pmacct/pmacctd_recovery_log
# Defaults for sfacct initscript
# sourced by /etc/init.d/sfacct
# installed at /etc/default/sfacct by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Location of the configuration file
SFACCTD_CONF=/etc/pmacct/sfacctd.conf
# List of interfaces to start accounting on.
# See /usr/share/doc/pmacct/README.Debian for details.
INTERFACES=""
# Additional options that are passed to sfacctd
DAEMON_OPTS=""
#!/bin/sh
### BEGIN INIT INFO
# Provides: sfacct
# Required-start: $network $syslog
# Required-stop: $network $syslog
# Default-start: 2 3 4 5
# Default-stop: 0 1 6
# Short-Description: sflow accounting daemon
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/sfacctd
NAME=sfacctd
DESC="sflow accounting daemon"
CONFDIR=/etc/pmacct
test -x $DAEMON || exit 0
# Include sfacct defaults if available
if [ -f /etc/default/sfacct ] ; then
. /etc/default/sfacct
fi
stop () {
#start-stop-daemon --stop --oknodo --quiet \
# --pidfile /var/run/$NAME.pid \
# --exec $DAEMON
killall -TERM sfacctd
}
start () {
#start-stop-daemon --start --oknodo --quiet \
# --pidfile /var/run/$NAME.pid \
# --exec $DAEMON -- -f $PMACCTD_CONF $DAEMON_OPTS
if [ -n "$INTERFACES" ]; then
for i in $INTERFACES; do
ip link set $i up
$DAEMON -f $CONFDIR/sfacctd.$i.conf $DAEMON_OPTS
done
else
$DAEMON -f $CONFDIR/sfacctd.conf $DAEMON_OPTS
fi
}
case "$1" in
start)
echo -n "Starting $DESC: "
start
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
stop
echo "$NAME."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
stop
sleep 1
start
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
! sfacctd configuration
!
!
!
daemonize: true
pidfile: /var/run/sfacctd.pid
syslog: daemon
!
! interested in in and outbound traffic
aggregate: src_host,dst_host
! on this network
pcap_filter: net 127.0.0.0/8
! on this interface
interface: lo
!
! storage methods
!plugins: pgsql
!sql_host: localhost
!sql_passwd:
! refresh the db every minute
!sql_refresh_time: 60
! reduce the size of the insert/update clause
!sql_optimize_clauses: true
! accumulate values in each row for up to an hour
!sql_history: 1h
! create new rows on the minute, hour, day boundaries
!sql_history_roundoff: mhd
! in case of emergency, log to this file
!sql_recovery_logfile: /var/lib/pmacct/sfacctd_recovery_log
--- End Message ---
--- Begin Message ---
Source: pmacct
Source-Version: 0.12.5-3
We believe that the bug you reported is fixed in the latest version of
pmacct, which is due to be installed in the Debian FTP archive:
pmacct_0.12.5-3.debian.tar.gz
to main/p/pmacct/pmacct_0.12.5-3.debian.tar.gz
pmacct_0.12.5-3.dsc
to main/p/pmacct/pmacct_0.12.5-3.dsc
pmacct_0.12.5-3_amd64.deb
to main/p/pmacct/pmacct_0.12.5-3_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jamie Wilkinson <[email protected]> (supplier of updated pmacct package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 14 Feb 2012 07:01:36 +0000
Source: pmacct
Binary: pmacct
Architecture: source amd64
Version: 0.12.5-3
Distribution: unstable
Urgency: low
Maintainer: Jamie Wilkinson <[email protected]>
Changed-By: Jamie Wilkinson <[email protected]>
Description:
pmacct - promiscuous mode traffic accountant
Closes: 503285 579535 659710
Changes:
pmacct (0.12.5-3) unstable; urgency=low
.
* Add initscripts for nfacctd, sfacctd and uacctd. (Closes: #503285, #659710)
* Rename the pmacct initscript and default to "pmacctd".
* Fix permissions on config files to not be world readable. (Closes:
#579535)
Checksums-Sha1:
9378160a6b47e262ebd8eb911c04e0d7e202bbd6 1081 pmacct_0.12.5-3.dsc
fd15bf2507a763a3e4077aee2ee9bfec3ca0ea61 10197 pmacct_0.12.5-3.debian.tar.gz
1eb42861bcc493cd6be42f22d5fa52f304314c85 1100060 pmacct_0.12.5-3_amd64.deb
Checksums-Sha256:
2ccd0dbed4c0ea58930c6916fc609c27194e35498a0ebd4e40ae156fd08dbedf 1081
pmacct_0.12.5-3.dsc
19385efa177a466c90f9bec6b0de4e1482dbb0259591297d097c5892e26ba66f 10197
pmacct_0.12.5-3.debian.tar.gz
4b94a7971adf68278a6c66be8cb39d986b0a3fb6a289c93eecd7f55302df3616 1100060
pmacct_0.12.5-3_amd64.deb
Files:
12489d51022ecc0cf86e9b3bedd00958 1081 net optional pmacct_0.12.5-3.dsc
9cc5b4022773ab0b7287d4df7ed6738f 10197 net optional
pmacct_0.12.5-3.debian.tar.gz
ce08d1b895fe01410484360a042f70ad 1100060 net optional pmacct_0.12.5-3_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk86CTMACgkQ5u9oNyz9HDiC2wCgtQ/w9vUqWZrhUP5aCRQQysoe
V2IAn0UiEjmSsYjf3HJqr2LhBM+6t5BM
=8adK
-----END PGP SIGNATURE-----
--- End Message ---