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
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
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