<?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[What is the output from the ifstats.php script?]]></title><description><![CDATA[<p dir="auto">I hope this is the right place to ask this, I thought the pfSense developers might be more likely to know the answer rather than the end users.</p>
<p dir="auto">What is the output from the ifstats.php?if=vr1 page?  It looks like this:</p>
<p dir="auto">1241027646.2629|2647893277|3194759664</p>
<p dir="auto">I assume they are some kind of counter?  Is an an incrementing value, like how much traffic has passed since last boot?  What are the 3 separate values?</p>
<p dir="auto">I'm thinking about writing a script on our monitoring server that pulls in this data ever second or two and logs it for charting.  I run pfsense embeded so I can't install any plugins to do long term graphing there.</p>
<p dir="auto">Is there a lot of overhead when calling this script?  If it just pulls some counters off the nic then I would assume not, but maybe its calculating these values somehow.</p>
<p dir="auto">Also if I call the script with ifstats.php?if=vr2, ifstats.php?if=vr3, etc. I keep getting values, at least in the first column.  But my hardware device only has 3 network ports.  What are these additional interfaces, are they virtual IPs?</p>
<p dir="auto">Thanks for any info.</p>
]]></description><link>https://forum.netgate.com/topic/14992/what-is-the-output-from-the-ifstats-php-script</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 09:48:13 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/14992.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Apr 2009 18:02:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What is the output from the ifstats.php script? on Sun, 19 Jul 2009 03:41:39 GMT]]></title><description><![CDATA[<p dir="auto">from the php code:</p>
<p dir="auto">echo "$timing|" . $ifinfo['inbytes'] . "|" . $ifinfo['outbytes'] . "\n";</p>
<p dir="auto">meaning 'time|inbytes|outbytes'</p>
<p dir="auto">if you pick an interface that doesnt exist, it gives you only the time.  try using 'wan' or 'lan' instead.</p>
<p dir="auto">you could use this every easily to write a monitoring program, or you could use snmp as well.</p>
]]></description><link>https://forum.netgate.com/post/203128</link><guid isPermaLink="true">https://forum.netgate.com/post/203128</guid><dc:creator><![CDATA[Zorac]]></dc:creator><pubDate>Sun, 19 Jul 2009 03:41:39 GMT</pubDate></item></channel></rss>