> Have you waited at least five minutes before looking
> in this directory?
LOL yes, of course. Much more.
The cronjob was installed, and I also tried to run poller.php manually
(which produced no output at all nor error messages). But after more
than half an hour still no file was generated in the rra directory.
Have you changed ANY of the default settings?
No, except the ones I was prompted for.
What are the file
permissions of the /var/lib/cacti/rra directory?
The rra directory was owned by user root and group www-data. The user
www-data which belongs to the group www-data is the one Apache runs as.
The permissions were 770. So the permissions look fine.
Anyway, I tried changing them to 777 (and waiting 5 minutes, and
manually running poller.php), but it didn't fix the issue. Also tried
changing the ownership to the user www-data (and waiting, etc). Nothing.
So I reverted ownership and permission to the original.
Can you share the log
file in /var/log/cacti?
Attached. At some point I changed the log level to "debug", then back to
"low".
If there aren't any rrd files,
Yeah, that's the problem, there aren't any rrd files.
By the way, I think the very fact that poller.php doesn't issue any
error message (neither to the output nor to logs) while it's not
generating any rrd file (or whatever it is supposed to generate) is a
bug in itself, regardless of why the rrd files are not being generated.
Do you
care to tell me which html documentation is missing and where it is
linked incorrectly? (seems like your cacti bug 2554)
No html is missing or linked incorrectly. Just CSS. Yes it's 2554, which
you said you could reproduce.
The answer to your reported issue (explanation about the admin/admin
username/password combo) in 2252 is in README.Debian. Do you think this
issue warrants a debconf popup?
Not sure what a debconf popup is. I think at the end of the debian
package installation process a message should be output (be it a popup
or a simple message in the terminal) saying something more or less like
"You can/should now complete cacti setup by logging in at
http://yoursite.com/cacti and logging in with user 'admin' and password
'admin"
Do you have the relevant part (the part where you installed cacti and
its dependencies) of /var/log/apt/term.log, so that I can check for
common errors?
Attached.
One thing that I then noticed is that
ps aux |grep snmpd
didn't output anything.
Isn't a snmpd daemon supposed to be running? May this be the problem?
service snmpd start
didn't issue any error (nor a message saying something like the daemon
already being running), but even after that, ps aux |grep snmpd didn't
output anything.
Indeed, I examined /etc/init.d/snmpd
and I found out it tests for the existence of two binaries under
/usr/sbin and exits if they don't exist. These files didn't exist.
I'm using the past tense because by now I have already uninstalled
everything.
So maybe something is wrong with the snmpd package rather than cacti?
04/26/2015 04:15:02 PM - SYSTEM STATS: Time:0.1224 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 04:20:01 PM - SYSTEM STATS: Time:0.1528 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 04:25:02 PM - SYSTEM STATS: Time:0.1155 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 04:30:01 PM - SYSTEM STATS: Time:0.1135 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 04:35:01 PM - SYSTEM STATS: Time:0.2145 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 04:35:30 PM - AUTH LOGIN: User 'admin' Authenticated
04/26/2015 04:40:01 PM - SYSTEM STATS: Time:0.4051 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 04:45:02 PM - SYSTEM STATS: Time:0.3273 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 04:50:02 PM - SYSTEM STATS: Time:0.4106 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 04:55:01 PM - SYSTEM STATS: Time:0.1115 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:00:01 PM - SYSTEM STATS: Time:0.2016 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:05:01 PM - SYSTEM STATS: Time:0.1114 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:10:01 PM - SYSTEM STATS: Time:0.2355 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:15:02 PM - SYSTEM STATS: Time:0.1195 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:20:01 PM - SYSTEM STATS: Time:0.1119 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:25:01 PM - SYSTEM STATS: Time:0.2074 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:29:13 PM - SYSTEM STATS: Time:0.1184 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:35:02 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 349 seconds have passed since the last poll!
04/26/2015 05:35:02 PM - SYSTEM STATS: Time:0.1218 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:40:01 PM - SYSTEM STATS: Time:0.1713 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:45:02 PM - SYSTEM STATS: Time:0.3072 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:50:01 PM - SYSTEM STATS: Time:0.1695 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 05:55:02 PM - SYSTEM STATS: Time:0.2495 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:00:01 PM - SYSTEM STATS: Time:0.2218 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:05:02 PM - SYSTEM STATS: Time:0.1557 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:09:55 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '293', Max Runtime '298', Poller Runs: '1'
04/26/2015 06:09:55 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q --define suhosin.memory_limit=512M "/usr/share/cacti/site/cmd.php" 0 1]
04/26/2015 06:09:55 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
04/26/2015 06:09:55 PM - SYSTEM STATS: Time:0.1155 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:10:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '6', Max Runtime '298', Poller Runs: '1'
04/26/2015 06:10:01 PM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 6 seconds have passed since the poller last ran.
04/26/2015 06:10:22 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1429985421' --end='1430071821' --title='Localhost - Load Average' --rigid --base='1000' --height='120' --width='500' --alt-autoscale-max --lower-limit='0' --units-exponent='0' COMMENT:"From 2015/04/25 18\:10\:21 To 2015/04/26 18\:10\:21\c" COMMENT:" \n" --vertical-label='processes in the run queue' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/var/lib/cacti/rra/localhost_load_1min_5.rrd':'load_1min':AVERAGE DEF:b='/var/lib/cacti/rra/localhost_load_1min_5.rrd':'load_5min':AVERAGE DEF:c='/var/lib/cacti/rra/localhost_load_1min_5.rrd':'load_15min':AVERAGE CDEF:cdefg='TIME,1430071522,GT,a,a,UN,0,a,IF,IF,TIME,1430071522,GT,b,b,UN,0,b,IF,IF,TIME,1430071522,GT,c,c,UN,0,c,IF,IF,+,+' AREA:a#EACC00FF:'1 Minute Average' GPRINT:a:LAST:' Current\:%8.2lf\n' AREA:b#EA8F00FF:'5 Minute Average':STACK GPRINT:b:LAST:' Current\:%8.2lf\n' AREA:c#FF0000FF:'15 Minute Average':STACK GPRINT:c:LAST:'Current\:%8.2lf\n' LINE1:cdefg#000000FF:''
04/26/2015 06:10:22 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1429985421' --end='1430071821' --title='Localhost - Memory Usage' --rigid --base='1000' --height='120' --width='500' --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/04/25 18\:10\:21 To 2015/04/26 18\:10\:21\c" COMMENT:" \n" --vertical-label='kilobytes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/var/lib/cacti/rra/localhost_mem_buffers_3.rrd':'mem_buffers':AVERAGE DEF:b='/var/lib/cacti/rra/localhost_mem_swap_4.rrd':'mem_swap':AVERAGE AREA:a#FF4105FF:'Free' GPRINT:a:LAST:'Current\:%8.2lf %s' GPRINT:a:AVERAGE:'Average\:%8.2lf %s' GPRINT:a:MAX:'Maximum\:%8.2lf %s\n' AREA:b#FFC73BFF:'Swap':STACK GPRINT:b:LAST:'Current\:%8.2lf %s' GPRINT:b:AVERAGE:'Average\:%8.2lf %s' GPRINT:b:MAX:'Maximum\:%8.2lf %s\n'
04/26/2015 06:10:22 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1429985421' --end='1430071821' --title='Localhost - Processes' --base='1000' --height='120' --width='500' --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/04/25 18\:10\:21 To 2015/04/26 18\:10\:21\c" COMMENT:" \n" --vertical-label='processes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/var/lib/cacti/rra/localhost_proc_7.rrd':'proc':AVERAGE AREA:a#F51D30FF:'Running Processes' GPRINT:a:LAST:'Current\:%8.0lf' GPRINT:a:AVERAGE:'Average\:%8.0lf' GPRINT:a:MAX:'Maximum\:%8.0lf\n'
04/26/2015 06:10:22 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1429985421' --end='1430071821' --title='Localhost - Logged in Users' --rigid --base='1000' --height='120' --width='500' --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/04/25 18\:10\:21 To 2015/04/26 18\:10\:21\c" COMMENT:" \n" --vertical-label='users' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/var/lib/cacti/rra/localhost_users_6.rrd':'users':AVERAGE AREA:a#4668E4FF:'Users' GPRINT:a:LAST:'Current\:%8.0lf' GPRINT:a:AVERAGE:'Average\:%8.0lf' GPRINT:a:MAX:'Maximum\:%8.0lf\n'
04/26/2015 06:15:01 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 306 seconds have passed since the last poll!
04/26/2015 06:15:01 PM - SYSTEM STATS: Time:0.2230 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:16:36 PM - AUTH LOGIN: User 'admin' Authenticated
04/26/2015 06:20:02 PM - SYSTEM STATS: Time:0.1099 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:25:01 PM - SYSTEM STATS: Time:0.1768 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:30:01 PM - SYSTEM STATS: Time:0.1146 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:35:02 PM - SYSTEM STATS: Time:0.1120 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:40:01 PM - SYSTEM STATS: Time:0.1875 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:45:02 PM - SYSTEM STATS: Time:0.2394 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:50:01 PM - SYSTEM STATS: Time:0.1098 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 06:55:01 PM - SYSTEM STATS: Time:0.1111 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 07:00:02 PM - SYSTEM STATS: Time:0.1252 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 07:05:01 PM - SYSTEM STATS: Time:0.1345 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 07:10:02 PM - SYSTEM STATS: Time:0.2358 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 07:15:01 PM - SYSTEM STATS: Time:0.2214 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
04/26/2015 07:20:02 PM - SYSTEM STATS: Time:0.1282 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Log started: 2015-04-26 16:12:09
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 39443 files and directories currently installed.)
Preparing to replace php5-cli 5.4.35-0+deb7u2 (using .../php5-cli_5.4.39-0+deb7u2_amd64.deb) ...
Unpacking replacement php5-cli ...
Preparing to replace libapache2-mod-php5 5.4.35-0+deb7u2 (using .../libapache2-mod-php5_5.4.39-0+deb7u2_amd64.deb) ...
Unpacking replacement libapache2-mod-php5 ...
Preparing to replace php5-mysql 5.4.35-0+deb7u2 (using .../php5-mysql_5.4.39-0+deb7u2_amd64.deb) ...
Unpacking replacement php5-mysql ...
Preparing to replace php5-mcrypt 5.4.35-0+deb7u2 (using .../php5-mcrypt_5.4.39-0+deb7u2_amd64.deb) ...
Unpacking replacement php5-mcrypt ...
Preparing to replace php5-curl 5.4.35-0+deb7u2 (using .../php5-curl_5.4.39-0+deb7u2_amd64.deb) ...
Unpacking replacement php5-curl ...
Preparing to replace php5-gd 5.4.35-0+deb7u2 (using .../php5-gd_5.4.39-0+deb7u2_amd64.deb) ...
Unpacking replacement php5-gd ...
Preparing to replace php5-common 5.4.35-0+deb7u2 (using .../php5-common_5.4.39-0+deb7u2_amd64.deb) ...
Unpacking replacement php5-common ...
Selecting previously unselected package php5-snmp.
Unpacking php5-snmp (from .../php5-snmp_5.4.39-0+deb7u2_amd64.deb) ...
Selecting previously unselected package ttf-dejavu-extra.
Unpacking ttf-dejavu-extra (from .../ttf-dejavu-extra_2.33-3_all.deb) ...
Selecting previously unselected package ttf-dejavu.
Unpacking ttf-dejavu (from .../ttf-dejavu_2.33-3_all.deb) ...
Selecting previously unselected package wwwconfig-common.
Unpacking wwwconfig-common (from .../wwwconfig-common_0.2.2_all.deb) ...
Selecting previously unselected package javascript-common.
Unpacking javascript-common (from .../javascript-common_7_all.deb) ...
Selecting previously unselected package libdbi1.
Unpacking libdbi1 (from .../libdbi1_0.8.4-6_amd64.deb) ...
Selecting previously unselected package libjs-jquery.
Unpacking libjs-jquery (from .../libjs-jquery_1.7.2+dfsg-1_all.deb) ...
Selecting previously unselected package libjs-jquery-cookie.
Unpacking libjs-jquery-cookie (from .../libjs-jquery-cookie_6-1_all.deb) ...
Selecting previously unselected package libphp-adodb.
Unpacking libphp-adodb (from .../libphp-adodb_5.15-1_all.deb) ...
Selecting previously unselected package librrd4.
Unpacking librrd4 (from .../librrd4_1.4.7-2_amd64.deb) ...
Selecting previously unselected package rrdtool.
Unpacking rrdtool (from .../rrdtool_1.4.7-2_amd64.deb) ...
Selecting previously unselected package snmp.
Unpacking snmp (from .../snmp_5.4.3~dfsg-2.8+deb7u1_amd64.deb) ...
Selecting previously unselected package cacti.
Unpacking cacti (from .../cacti_0.8.8a+dfsg-5+deb7u4_all.deb) ...
Processing triggers for man-db ...
Processing triggers for fontconfig ...
Setting up php5-common (5.4.39-0+deb7u2) ...
Setting up php5-cli (5.4.39-0+deb7u2) ...
Replacing config file /etc/php5/cli/php.ini with new version
Setting up libapache2-mod-php5 (5.4.39-0+deb7u2) ...
Replacing config file /etc/php5/apache2/php.ini with new version
[....] Reloading web server config: apache2[?25l7[1G[[32m ok [39;49m8[?12l[?25h.
Setting up php5-mysql (5.4.39-0+deb7u2) ...
Setting up php5-mcrypt (5.4.39-0+deb7u2) ...
Setting up php5-curl (5.4.39-0+deb7u2) ...
Setting up php5-gd (5.4.39-0+deb7u2) ...
Setting up php5-snmp (5.4.39-0+deb7u2) ...
Creating config file /etc/php5/mods-available/snmp.ini with new version
Setting up ttf-dejavu-extra (2.33-3) ...
Setting up ttf-dejavu (2.33-3) ...
Setting up wwwconfig-common (0.2.2) ...
Setting up javascript-common (7) ...
Setting up libdbi1 (0.8.4-6) ...
Setting up libjs-jquery (1.7.2+dfsg-1) ...
Setting up libjs-jquery-cookie (6-1) ...
Setting up libphp-adodb (5.15-1) ...
Setting up librrd4 (1.4.7-2) ...
Setting up rrdtool (1.4.7-2) ...
Setting up snmp (5.4.3~dfsg-2.8+deb7u1) ...
Setting up cacti (0.8.8a+dfsg-5+deb7u4) ...
dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf
Creating config file /etc/dbconfig-common/cacti.conf with new version
Creating config file /etc/cacti/debian.php with new version
granting access to database cacti for cacti@localhost: success.
verifying access for cacti@localhost: success.
creating database cacti: success.
verifying database cacti exists: success.
populating database via sql... done.
dbconfig-common: flushing administrative password
Creating config file /etc/cacti/apache.conf with new version
Creating config file /etc/cacti/lighttpd.conf with new version
[....] Reloading web server config: apache2[?25l7[1G[[32m ok [39;49m8[?12l[?25h.
Processing triggers for libapache2-mod-php5 ...
[....] Reloading web server config: apache2[?25l7[1G[[32m ok [39;49m8[?12l[?25h.
Log ended: 2015-04-26 16:12:31