Localhost - Memory Usage diagram ist empty on freeBSD 5.2.1

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

Moderators: Developers, Moderators

Post Reply
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

Localhost - Memory Usage diagram ist empty on freeBSD 5.2.1

Post by cc »

hi

I've installed cacti on freeBSD 5.2.1
# pkg_info | grep cacti
cacti-0.8.6b Web-driven graphing interface for RRDTool

it seems to work, but only Localhost - Memory Usage diagram ist empty.

Knows someone what's wrong ?

kind regards
cc
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

Post by cc »

I've found out:

1.) install linux emulator and check if is loaded:

# kldstat |grep linux
2 2 0xc09de000 1bd8c linux.ko

if not add to /boot/loader.conf:

Code: Select all

linux_load="YES"
2.) create /compat/linux/proc directory

3.) add the following to /etc/fstab

Code: Select all

linproc                 /compat/linux/proc/  linprocfs  rw      0       0
4.) 3.) change linux_memory.pl script to:

Code: Select all

#!/usr/bin/perl $mem = `cat /compat/linux/proc/meminfo | grep -w "$ARGV[0]"`; $mem =~ s/($ARGV[0].*\s)(.*[0-9])( kB)//; print $2;
now it works perfectly !

greetings
cc
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests