Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301110 - net-analyzer/fprobe init script doesn't start fprobe when FILTER is set
Summary: net-analyzer/fprobe init script doesn't start fprobe when FILTER is set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-15 16:24 UTC by Marcin Mirosław
Modified: 2021-06-25 19:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2010-01-15 16:24:45 UTC
# grep -v \# /etc/conf.d/fprobe
IFACE=eth0
FILTER="host 192.168.138.47"
SNMP_IFACE="${IFACE//eth}"
CHROOT="/var/empty"
USER=nobody
PIDFILE_ID=''
REMOTEIP=127.0.0.1
PORT=2055
TYPE=''
COLLECTORS="${REMOTEIP}:${PORT}/${LOCALIP}/${TYPE}"

# /etc/init.d/fprobe restart
fprobe          | * Caching service dependencies ...                                                                                  [ ok ]
fprobe          | * Starting fprobe ...
fprobe          |Error in collector #1 parameters
fprobe          | * start-stop-daemon: failed to start `/usr/sbin/fprobe'                                                             [ !! ]
fprobe          | * ERROR: fprobe failed to start

When i change in init script line:
- start-stop-daemon --start --exec $BIN \
+ start-stop-daemon --start --exec /bin/echo \
i'm getting:
# /etc/init.d/fprobe restart
fprobe          | * Caching service dependencies ...                                                                                  [ ok ]
fprobe          | * Starting fprobe ...
fprobe          |-p -f 'host 192.168.1.1' -i eth0 -x 0 -c /var/empty -u nobody -l 1: 127.0.0.1:2055//                                 [ ok ]

now, lets try to start fprobe with parameters displayed earlier:
# fprobe -p -f 'host 192.168.1.1' -i eth0 -x 0 -c /var/empty -u nobody -l 1: 127.0.0.1:2055//
# pgrep fprobe
16400

So the parameters are correct, i suppose the problem is in way of building of OPTS variable.



Reproducible: Always

Steps to Reproduce:
1. emerge -1 net-analyzer/fprobe
2. set FILTER="host 192.168.1.1" in conf.d/fprobe
3. /etc/init.d/fprobe start
Comment 1 Marcin Mirosław 2011-04-26 08:40:09 UTC
One year ping.
Comment 2 Larry the Git Cow gentoo-dev 2021-06-25 19:39:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d91c0ed83a72211fdd90b0db9f19d77cca2110e0

commit d91c0ed83a72211fdd90b0db9f19d77cca2110e0
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2021-06-25 19:37:30 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2021-06-25 19:39:00 +0000

    net-analyzer/fprobe: ensure pcap filter is always set
    
    Closes: https://bugs.gentoo.org/301110
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 net-analyzer/fprobe/files/conf.d-fprobe-r1 | 72 ++++++++++++++++++++++++++++++
 net-analyzer/fprobe/files/init.d-fprobe-r1 | 40 +++++++++++++++++
 net-analyzer/fprobe/fprobe-1.1-r4.ebuild   | 43 ++++++++++++++++++
 3 files changed, 155 insertions(+)