ultra n00b questions

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

Moderators: Developers, Moderators

Post Reply
KalistoCA
Posts: 1
Joined: Sat Feb 16, 2013 8:39 pm

ultra n00b questions

Post by KalistoCA »

Hello;

I'm very new to cacti..i used to use MRTG years ago (10+), and my mind is rusty...very rusty. I'm just trying to get cacti up and running to monitor some home network items and I feel like a tool.

I seem to have a few problems and i think they are all linked together, I have some graphs showing and some not, I have no data in any of the graphs that are showing.

ok so here is my setup:
Ubuntu 12.10
cacti installed from apt-get (i'm not 100% sure what version i'm running)
I have verfied that there is a 5 min cron job for poller.php but....

Using the FAQ's from the website i have the following to share...and happy to share anything else I need to when I run php poller.php as a non root user i get the following error

Code: Select all

PHP Warning:  require(/etc/cacti/debian.php): failed to open stream: Permission denied in /usr/share/cacti/site/include/global.php on line 41
PHP Fatal error:  require(): Failed opening required '/etc/cacti/debian.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/include/global.php on line 41
when i run it as root, none of that shows up..

well i don't really know enough to understand what that says but Fatal errors can't be good.

next i wanted to make sure that the .rrd files are being created when I tried to change my directory to /var/lib/rra i got permisison denied...didn't sweat it.

sudo ls -la rra/ produces the following:

Code: Select all

drwxrwx--- 2 root     www-data   4096 Feb 16 19:25 .
drwxr-xr-x 3 root     root       4096 Feb 16 15:59 ..
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:40 hp_server_5min_cpu_20.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:45 hp_server_cpu_21.rrd
-rw-rw-r-- 1 www-data www-data  94664 Feb 16 19:25 hp_server_hdd_used_18.rrd
-rw-rw-r-- 1 www-data www-data  94664 Feb 16 19:30 hp_server_hdd_used_19.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:40 hp_server_mem_buffers_16.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:45 hp_server_mem_swap_17.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:45 hp_server_snmp_oid_10.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:25 hp_server_snmp_oid_11.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:40 hp_server_snmp_oid_9.rrd
-rw-rw-r-- 1 www-data www-data 141488 Feb 16 19:45 localhost_load_1min_5.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:35 localhost_mem_buffers_3.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:40 localhost_mem_swap_4.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:30 localhost_proc_7.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:25 localhost_users_6.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:25 nate_cpu_12.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:30 nate_cpu_13.rrd
-rw-rw-r-- 1 www-data www-data  47840 Feb 16 19:30 nate_snmp_oid_15.rrd
-rw-rw-r-- 1 www-data www-data  94664 Feb 16 19:35 nate_traffic_in_14.rrd

so it looks like the permissions are ok? at least from what I can tell.

anyone have anywhere for me to go on this...like i said, i'm really rusty on these but it looks like permissions are ok, that fatal error concerns me a bit.

Cheers,
Gary
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: ultra n00b questions

Post by gandalf »

The installation should have create the mentioned debian.php file. See some HowTo's related to Ubuntu/debian in our HowTo Section.
R.
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: ultra n00b questions

Post by paulgevers »

KalistoCA wrote:

Code: Select all

PHP Warning:  require(/etc/cacti/debian.php): failed to open stream: Permission denied in /usr/share/cacti/site/include/global.php on line 41
PHP Fatal error:  require(): Failed opening required '/etc/cacti/debian.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/include/global.php on line 41
Can you verify that the file /etc/cacti/debian.php exists?
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: ultra n00b questions

Post by gandalf »

Paul, thx for joining :wink:
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests