<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[vnstat in pfSense 2.4.5]]></title><description><![CDATA[<p dir="auto">Because of the snort package and dependencies, I had to upgrade vom pfSense 2.4.4p3 to 2.4.5. Things are generally working fine, except for vnstat, which is producing the below error:</p>
<pre><code>Error: Failed to open database "/var/db/vnstat/vnstat.db" in read-only mode.
The vnStat daemon should have created the database when started.
Check that it is configured and running. See also "man vnstatd".
</code></pre>
<p dir="auto">/var/db/vnstat/vnstat.db does not exist at all, there are individual files per interface.</p>
<p dir="auto">I have seen that vnstat is not currently maintained. And I have googled around, and found (besides a related <a href="https://redmine.pfsense.org/issues/9759" target="_blank" rel="noopener noreferrer nofollow ugc">bug report</a>) that the manual of vnstat suggests that -u is a very common parameter. So it would seem to me that I cannot get vnstat to work with config changes, but that a newly compiled version would be required...?</p>
<p dir="auto">Any hint on what I could do? A daily mail with vnstat produced traffic graphs was a great help for me to determine if something is grossly out of bounds...</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netgate.com/topic/152983/vnstat-in-pfsense-2-4-5</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 19:17:31 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/152983.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Apr 2020 06:33:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to vnstat in pfSense 2.4.5 on Thu, 30 Apr 2020 05:54:30 GMT]]></title><description><![CDATA[<p dir="auto">Ok, so resetting the data has helped a bit. I've waited before coming back, because I'd hoped that the daily data would recover, but there is still no data there under "Data Summary". However, the rest appears to be working meanwhile.</p>
<p dir="auto">I'll say "thanks!" at this point, because with this, I can get the e-mails to me working again, which is the part I need.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netgate.com/post/908992</link><guid isPermaLink="true">https://forum.netgate.com/post/908992</guid><dc:creator><![CDATA[highc]]></dc:creator><pubDate>Thu, 30 Apr 2020 05:54:30 GMT</pubDate></item><item><title><![CDATA[Reply to vnstat in pfSense 2.4.5 on Tue, 28 Apr 2020 17:07:27 GMT]]></title><description><![CDATA[<p dir="auto">It's really not broken on 2.4.5 in general. Maybe a couple edge cases (like hourly always being cumulative no matter which option you choose). In general it's fine.</p>
]]></description><link>https://forum.netgate.com/post/908639</link><guid isPermaLink="true">https://forum.netgate.com/post/908639</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Tue, 28 Apr 2020 17:07:27 GMT</pubDate></item><item><title><![CDATA[Reply to vnstat in pfSense 2.4.5 on Tue, 28 Apr 2020 17:31:37 GMT]]></title><description><![CDATA[<p dir="auto">but traffic total is broken afaik under 2.4.5<br />
https://redmine.pfsense.org/issues/10429<br />
https://forum.netgate.com/topic/151914/traffic-totals-hourly-report-problem/</p>
<p dir="auto">command line should work tho</p>
<pre><code>[2.4.5-RELEASE][root@pfSense.trmultiservice.lab]/root: rm /var/db/vnstat/vnstat.db
</code></pre>
<pre><code>[2.4.5-RELEASE][root@pfSense.trmultiservice.lab]/root: /usr/local/sbin/vnstatd -d
No interfaces found in database, adding available interfaces...
Interface "em0" added with 1000 Mbit bandwidth limit.
Interface "em1" added with 1000 Mbit bandwidth limit.
Interface "em2" added with 1000 Mbit bandwidth limit.
Interface "enc0" added with 1000 Mbit bandwidth limit.
Interface "pflog0" added with 1000 Mbit bandwidth limit.
Interface "pfsync0" added with 1000 Mbit bandwidth limit.
Interface "gif0" added with 1000 Mbit bandwidth limit.
Interface "ovpnc1" added with 1000 Mbit bandwidth limit.
-&gt; 8 new interfaces found.
Limits can be modified using the configuration file. See "man vnstat.conf".
Unwanted interfaces can be removed from monitoring with "vnstat --remove".
</code></pre>
<pre><code>[2.4.5-RELEASE][root@pfSense.trmultiservice.lab]/root: vnstat -h -i em0
 em0: Not enough data available yet.
</code></pre>
<p dir="auto">after 1 hour more or less</p>
<pre><code>[2.4.5-RELEASE][root@pfSense.trmultiservice.lab]/root: vnstat -h -i em0

 em0  /  hourly

         hour        rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     2020-04-28
         18:00    458.07 MiB |   38.83 MiB |  496.90 MiB |    1.16 Mbit/s
         19:00    784.38 MiB |   54.92 MiB |  839.30 MiB |    3.91 Mbit/s
     ------------------------+-------------+-------------+---------------
</code></pre>
]]></description><link>https://forum.netgate.com/post/908633</link><guid isPermaLink="true">https://forum.netgate.com/post/908633</guid><dc:creator><![CDATA[kiokoman]]></dc:creator><pubDate>Tue, 28 Apr 2020 17:31:37 GMT</pubDate></item><item><title><![CDATA[Reply to vnstat in pfSense 2.4.5 on Tue, 28 Apr 2020 15:05:07 GMT]]></title><description><![CDATA[<p dir="auto">There should be, yes. Click the button to reset graphing data and see what happens after that.</p>
]]></description><link>https://forum.netgate.com/post/908615</link><guid isPermaLink="true">https://forum.netgate.com/post/908615</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Tue, 28 Apr 2020 15:05:07 GMT</pubDate></item><item><title><![CDATA[Reply to vnstat in pfSense 2.4.5 on Tue, 28 Apr 2020 06:42:39 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I did install it via the Status_Traffic_Totals package. Output data from that package in the GUI stops as of the update date, April 26. I've just created new graphs, showing nothing since April 26:</p>
<p dir="auto"><img src="/assets/uploads/files/1588055975485-7e0de807-0ef8-4a70-bdf9-4ef041cc3dc2-grafik.png" alt="7e0de807-0ef8-4a70-bdf9-4ef041cc3dc2-grafik.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">And shouldn't there be some data in the "Data Summary"?</p>
]]></description><link>https://forum.netgate.com/post/908560</link><guid isPermaLink="true">https://forum.netgate.com/post/908560</guid><dc:creator><![CDATA[highc]]></dc:creator><pubDate>Tue, 28 Apr 2020 06:42:39 GMT</pubDate></item><item><title><![CDATA[Reply to vnstat in pfSense 2.4.5 on Mon, 27 Apr 2020 14:13:34 GMT]]></title><description><![CDATA[<p dir="auto">Did you install it manually? vnstat 2.0 has a bunch of changes from the older version.</p>
<p dir="auto">The Status_Traffic_Totals package uses vnstat as a backend and it handles all the setup. You would need to at least go in and enable it there.</p>
]]></description><link>https://forum.netgate.com/post/908393</link><guid isPermaLink="true">https://forum.netgate.com/post/908393</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Mon, 27 Apr 2020 14:13:34 GMT</pubDate></item></channel></rss>