<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: linprocfs - ain&#8217;t as easy as it sounds</title>
	<atom:link href="http://news.freshports.org/2007/02/14/linprocfs-aint-as-easy-as-it-sounds/feed/" rel="self" type="application/rss+xml" />
	<link>http://news.freshports.org/2007/02/14/linprocfs-aint-as-easy-as-it-sounds/</link>
	<description>News and announcements regarding FreshPorts, The Place For Ports.</description>
	<pubDate>Mon, 08 Sep 2008 13:57:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2007/02/14/linprocfs-aint-as-easy-as-it-sounds/#comment-1410</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Thu, 15 Feb 2007 23:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/2007/02/14/linprocfs-aint-as-easy-as-it-sounds/#comment-1410</guid>
		<description>Pav: I think this patch does the trick:

&lt;pre&gt;
[dan@ngaio:/usr/local/share/cacti/scripts] $ diff -ru linux_memory.pl~ linux_memory.pl
--- linux_memory.pl~    Thu Feb 15 18:35:21 2007
+++ linux_memory.pl     Thu Feb 15 18:35:21 2007
@@ -1,6 +1,6 @@
 #!/usr/bin/perl

-open(PROCESS, "cat /proc/meminfo &#124; grep -w $ARGV[0] &#124;");
+open(PROCESS, "cat /compat/linux/proc/meminfo &#124; grep -w $ARGV[0] &#124;");
 foreach (&lt;PROCESS&gt;) {
        if ($_ =~ /($ARGV[0].*\s)(.*[0-9])( kB)/) {
                print $2;
[dan@ngaio:/usr/local/share/cacti/scripts] $
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Pav: I think this patch does the trick:</p>
<pre>
[dan@ngaio:/usr/local/share/cacti/scripts] $ diff -ru linux_memory.pl~ linux_memory.pl
--- linux_memory.pl~    Thu Feb 15 18:35:21 2007
+++ linux_memory.pl     Thu Feb 15 18:35:21 2007
@@ -1,6 +1,6 @@
 #!/usr/bin/perl

-open(PROCESS, "cat /proc/meminfo | grep -w $ARGV[0] |");
+open(PROCESS, "cat /compat/linux/proc/meminfo | grep -w $ARGV[0] |");
 foreach (
<process>) {
        if ($_ =~ /($ARGV[0].*\s)(.*[0-9])( kB)/) {
                print $2;
[dan@ngaio:/usr/local/share/cacti/scripts] $
</process></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2007/02/14/linprocfs-aint-as-easy-as-it-sounds/#comment-1409</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Thu, 15 Feb 2007 12:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/2007/02/14/linprocfs-aint-as-easy-as-it-sounds/#comment-1409</guid>
		<description>Just so long as I don't use those FreeBSD programs...

I think it would be easier to patch the cacti scripts.</description>
		<content:encoded><![CDATA[<p>Just so long as I don&#8217;t use those FreeBSD programs&#8230;</p>
<p>I think it would be easier to patch the cacti scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pav Lucistnik</title>
		<link>http://news.freshports.org/2007/02/14/linprocfs-aint-as-easy-as-it-sounds/#comment-1408</link>
		<dc:creator>Pav Lucistnik</dc:creator>
		<pubDate>Thu, 15 Feb 2007 10:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/2007/02/14/linprocfs-aint-as-easy-as-it-sounds/#comment-1408</guid>
		<description>[root@supernews:/] # ln -s /usr/compat/linux/proc /proc

Uhh, now this is TOTALLY HARMFULL thing to do. Think about programs that expect FreeBSD style proc in /proc ...

Sounds like Cacti needs to be ported to use FreeBSD specific harvesting methods.</description>
		<content:encoded><![CDATA[<p>[root@supernews:/] # ln -s /usr/compat/linux/proc /proc</p>
<p>Uhh, now this is TOTALLY HARMFULL thing to do. Think about programs that expect FreeBSD style proc in /proc &#8230;</p>
<p>Sounds like Cacti needs to be ported to use FreeBSD specific harvesting methods.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
