problem with proc/meminfo - directory does not exist

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
feeza_cute19
Posts: 5
Joined: Sun Apr 08, 2007 9:28 pm
Location: Malaysia
Contact:

problem with proc/meminfo - directory does not exist

Post by feeza_cute19 »

Im using freebsd
no graph for memory usage.
others graph is ok.
y?
anyone plz help me.
:cry:
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What data template are you using to graph memory?
Reinhard
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: problem with proc/meminfo - directory does not exist

Post by Howie »

feeza_cute19 wrote:Im using freebsd
no graph for memory usage.
others graph is ok.
y?
anyone plz help me.
:cry:
If you are using the default 'localhost' graphs, then the script assumes linux /proc structure - in fact, it's called Linux Memory :-)

FreeBSD has an emulation for linux /proc though, so you can make an emulated linux proc:

Code: Select all

mkdir -p /compat/linux/proc
then add the following line to your fstab

Code: Select all

linproc         /compat/linux/proc      linprocfs       rw 0 0
and then either reboot, or

Code: Select all

mount /compat/linux/proc
You should now be able to cat /compat/linux/proc/meminfo and see something useful-looking.

Finally, you need to change the script that uses the /proc. This is <cacti-root>/scripts/linux_memory.pl

Change the path in the top line from /proc/meminfo to /compat/linux/proc/meminfo
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
feeza_cute19
Posts: 5
Joined: Sun Apr 08, 2007 9:28 pm
Location: Malaysia
Contact:

problem with proc/meminfo - directory does not exist

Post by feeza_cute19 »

Im a new user of UNIX so may I asking u 1 question
for code 1: which directory im suppose to make directory? and also for code 2.
Sorry for that simple question.
feeza_cute19
Posts: 5
Joined: Sun Apr 08, 2007 9:28 pm
Location: Malaysia
Contact:

problem with proc/meminfo - directory does not exist

Post by feeza_cute19 »

to howie...
I've already done on wat u ask me to do...
but it still not showing anythig on graph..
but i've can cat /compat/linux/proc/meminfo
so tq on tat thing.
hihihihi
n now my problem is i cant show the graph, only for memory usage
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: problem with proc/meminfo - directory does not exist

Post by Howie »

feeza_cute19 wrote:to howie...
I've already done on wat u ask me to do...
but it still not showing anythig on graph..
but i've can cat /compat/linux/proc/meminfo
so tq on tat thing.
hihihihi
n now my problem is i cant show the graph, only for memory usage
You mean it's a blank grid (NaN)? Or it doesn't appear at all?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
feeza_cute19
Posts: 5
Joined: Sun Apr 08, 2007 9:28 pm
Location: Malaysia
Contact:

problem with proc/meminfo - directory does not exist

Post by feeza_cute19 »

the graph is there but the data is not there...yes u correct, its blank
feeza_cute19
Posts: 5
Joined: Sun Apr 08, 2007 9:28 pm
Location: Malaysia
Contact:

problem with proc/meminfo - directory does not exist

Post by feeza_cute19 »

Tq so much howie...
that problem have been solved. :lol:
tq so much
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests