Bug 6383 - ntop.service contains wrong path for conf
Summary: ntop.service contains wrong path for conf
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: http://svnweb.mageia.org/packages/cau...
Whiteboard: mga2-32-OK, mga2-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-06-09 12:43 CEST by Pietro Cesana
Modified: 2012-07-10 17:13 CEST (History)
4 users (show)

See Also:
Source RPM: ntop-4.1.0-5.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Pietro Cesana 2012-06-09 12:43:24 CEST
Description of problem:
ntop.service contains wrong path for conf
/etc/ntop.conf
instead of
/etc/ntop/ntop.conf


How reproducible:
Install ntop with urpmi
Manuel Hiebel 2012-06-25 03:35:36 CEST

Keywords: (none) => Junior_job
URL: (none) => http://svnweb.mageia.org/packages/cauldron/ntop/current/SOURCES/ntop.service?revision=173778&view=markup
Assignee: bugsquad => guillomovitch

Comment 1 Guillaume Rousse 2012-06-25 10:15:46 CEST
Fixed in cauldron.
Comment 2 Guillaume Rousse 2012-06-27 16:37:57 CEST
ntop-4.1.0-5.1 submitted in updates_testing for mageia 2.

Suggested advisory:

The ntop-4.1.0-5mga2 package included a buggy systemd service file, with a path to the configuration inconsistent with its actual location. The ntop-4.1.0-5.1mga2 package fixes this issue.

Assignee: guillomovitch => qa-bugs

Comment 3 Dave Hodgins 2012-07-03 04:43:04 CEST
Installed ntop from Core Release
followed /usr/share/doc/ntop/1STRUN.txt,
correcting the command to set the password to
/usr/bin/ntop -P /usr/share/ntop -u ntop -A

I think the 1STRUN.txt should be corrected, but as that is not
a regression, I'll let Guillaume decide whether or not to do so.

root@hodgins ~]# systemctl enable ntop.service

Before installing the update ...

[root@hodgins ~]# systemctl start ntop.service
[root@hodgins ~]# systemctl status ntop.service
ntop.service - A network traffic probe similar to the UNIX top command
          Loaded: loaded (/lib/systemd/system/ntop.service; enabled)
          Active: inactive (dead)
                start condition failed at Mon, 02 Jul 2012 22:25:21 -0400; 18s ago
          CGroup: name=systemd:/system/ntop.service

After installing the update ...
[root@hodgins ~]# systemctl start ntop.service
[root@hodgins ~]# systemctl status ntop.service
ntop.service - A network traffic probe similar to the UNIX top command
          Loaded: loaded (/lib/systemd/system/ntop.service; enabled)
          Active: active (running) since Mon, 02 Jul 2012 22:37:10 -0400; 1s ago
        Main PID: 2820 (ntop)
          CGroup: name=systemd:/system/ntop.service
                  â 2820 /usr/sbin/ntop @/etc/ntop/ntop.conf

Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: THREADMGMT[t3059099632]: ntop RUNSTATE: INITNONROOT(3)
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: Now running as requested user 'ntop' (484:477)
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: Note: Reporting device initally set to 0 [eth0] (merged)
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: THREADMGMT[t3017501552]: SIH: Idle host scan thread running [p2820]
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: THREADMGMT[t3025894256]: SFP: Fingerprint scan thread running [p2820]
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: THREADMGMT[t3059099632]: ntop RUNSTATE: RUN(4)
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: THREADMGMT[t2963266416]: NPS(1): Started thread for network pa...th0]
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: THREADMGMT[t2971659120]: RRD: Data collection thread starting [p2820]
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: THREADMGMT[t2963266416]: NPS(eth0): pcapDispatch thread starti...820]
Jul 02 22:37:10 hodgins.homeip.net ntop[2820]: THREADMGMT[t2963266416]: NPS(eth0): pcapDispatch thread runnin...820]

CC: (none) => davidwhodgins

Dave Hodgins 2012-07-03 04:43:37 CEST

Whiteboard: (none) => mga2-32-OK

Comment 4 Stefano Negro 2012-07-06 16:44:09 CEST
Installed ntop from Core Release on mga2-64.

I confirm Dave's previous post, I got the same result after installing the update.

[root@localhost mornot]# systemctl status ntop.service
ntop.service - A network traffic probe similar to the UNIX top command
          Loaded: loaded (/lib/systemd/system/ntop.service; enabled)
          Active: active (running) since Fri, 06 Jul 2012 16:37:54 +0200; 1s ago
        Main PID: 16683 (ntop)
          CGroup: name=systemd:/system/ntop.service
                  â 16683 /usr/sbin/ntop @/etc/ntop/ntop.conf

Jul 06 16:37:54 localhost ntop[16683]: THREADMGMT[t140235783399584]: ntop RUNSTATE: INITNONROOT(3)
Jul 06 16:37:54 localhost ntop[16683]: Now running as requested user 'ntop' (489:481)
Jul 06 16:37:54 localhost ntop[16683]: Note: Reporting device initally set to 0 [eth0] (merged)
Jul 06 16:37:54 localhost ntop[16683]: THREADMGMT[t140235783399584]: ntop RUNSTATE: RUN(4)
Jul 06 16:37:54 localhost ntop[16683]: THREADMGMT[t140235589830400]: NPS(1): Started thread for network packet sniffing [eth0]
Jul 06 16:37:54 localhost ntop[16683]: THREADMGMT[t140235598223104]: RRD: Data collection thread starting [p16683]
Jul 06 16:37:54 localhost ntop[16683]: THREADMGMT[t140235634243328]: SFP: Fingerprint scan thread running [p16683]
Jul 06 16:37:54 localhost ntop[16683]: THREADMGMT[t140235625850624]: SIH: Idle host scan thread running [p16683]
Jul 06 16:37:54 localhost ntop[16683]: THREADMGMT[t140235589830400]: NPS(eth0): pcapDispatch thread starting [p16683]
Jul 06 16:37:54 localhost ntop[16683]: THREADMGMT[t140235589830400]: NPS(eth0): pcapDispatch thread running [p16683]

CC: (none) => stblack
Whiteboard: mga2-32-OK => mga2-32-OK, mga2-64-OK

Comment 5 claire robinson 2012-07-06 17:55:53 CEST
Thanks Stefano.

Validating

Please see comment 2 for advisory and srpm

Could sysadmin please push from core/updates_testing to core/updates.

Thankyou!

Keywords: Junior_job => validated_update
CC: (none) => sysadmin-bugs

Comment 6 Thomas Backlund 2012-07-10 17:13:52 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0105

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.