Bug 1757485
| Summary: | Vnstat fails to log traffic. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Erik Hedl <erik.hedl> |
| Component: | vnstat | Assignee: | Adrian Reber <adrian> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | adrian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-10-01 21:12:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Erik Hedl
2019-10-01 16:41:04 UTC
Hmm, this is strange. My vnstat.service files contains the following: [Service] User=vnstat ExecStart=/usr/sbin/vnstatd -n ExecReload=/bin/kill -HUP $MAINPID It starts vnstatd (with a trailing d) and not daemonizing a service is the preferred way when using systemd. As far as I see it, everything is set up correctly with the vnstat service file. A new installed vnstat creates a /var/lib/vnstat directory which is owned by the user vnstat. If I start vnstat with 'systemctl start vnstat' and wait 5 minutes the vnstatd daemon collects data and stores it in /var/lib/vnstat which can then be queried using vnstat (without d). The only thing necessary is to wait 5 minutes or change the configuration file. Does it work differently for you. |