Add devices that can be SNMP to, but do not appear image, just a red X, and then run
/usr/local/php4/bin/php/usr/local/apache2/htdocs/cacti/poller.php
The image came out, but no data show!! is poller.php not automatically executed??
Online search is said to be cacti directory read and write permissions to Cactiuser
To view permissions for the cacti directory
DRWXR-XR-X11 1000 users4096 June 302005 cacti
So change chown-r cacti
drwxr-xr-x11 cactiuser users4096 June 302005 cacti
View these directories, especially RRA must be cactiuser can read and write to
This time is manually executed every 5 minutes.
[Root@test etc]#/usr/local/php4/bin/php/usr/local/apache2/htdocs/cacti/poller.php
To see if the generated RRA file is fetching data
[Root@test etc]#/usr/local/rrdtool/bin/rrdtool FETCH/USR/LOCAL/APACHE2/HTDOCS/CACTI/RRA/OFF_TRAFFIC_IN_11.RRD AVERAGE
Timestamptraffic_outtraffic_in
1175645100:nannan
.
.
.
1175694000:nannan
1175694300:nannan
1175694600:nannan
1175720100:nannan
1175720400:4.5239193878e+049.5334806122e+04
1175720700:4.4871998223e+049.6902754466e+04
1175721000:nannan
.
.
1175729700:nannan
1175730000:nannan
1175730300:7.8620931034e+041.6441344335e+05
1175730600:7.7566945636e+041.4432470044e+05
1175730900:6.9826201565e+041.3622941426e+05
1175731200:6.9826201565e+041.3622941426e+05
1175731500:7.5456780826e+041.4221566716e+05
1175731800:nannan
The above is visible, once the manual execution poller.php can go by the data, it seems that the problem is still out of the automatic implementation of the crontab problem.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/tools/
---------------------------------------------View permissions for directories, files-----------------------------------------------------
[Root@test ~]# cd/usr/local/apache2/htdocs/
[Root@test htdocs]# Ls-l
drwxr-xr-x11 cactiuser users4096 June 302005 cacti
[Root@test htdocs]# CD cacti
[Root@test cacti]# Ls-l
Total 776
-rw-r--r--1 cactiuser users5892 June 302005 about.php
-rw-r--r--1 cactiuser users4773 June 302005 auth_changepassword.php
-rw-r--r--1 cactiuser users6171 June 302005 auth_login.php
-RW-------1 cactiuser users 170639 Jun302005 cacti.sql
-rw-r--r--1 cactiuser users13108 June 302005 cdef.php
-rw-r--r--1 cactiuser users15843 June 302005 cmd.php
-rw-r--r--1 cactiuser users5917 June 302005 color.php
-rw-r--r--1 cactiuser users17516 June 302005 data_input.php
-rw-r--r--1 cactiuser users28158 June 302005 data_queries.php
-rw-r--r--1 cactiuser users43730 June 302005 data_sources.php
-rw-r--r--1 cactiuser users26823 June 302005 data_templates.php
drwxr-xr-x5 cactiuser users4096 June 302005 Docs
-rw-r--r--1 cactiuser users6110 June 302005 gprint_presets.php
-rw-r--r--1 cactiuser users3423 June 302005 graph_image.php
-rw-r--r--1 cactiuser users10438 June 302005 graph.php
-rw-r--r--1 cactiuser users6318 June 302005 graph_settings.php
-rw-r--r--1 cactiuser users11757 June 302005 graphs_items.php
-rw-r--r--1 cactiuser users30676 June 302005 graphs_new.php
-rw-r--r--1 cactiuser users46433 June 302005 graphs.php
-rw-r--r--1 cactiuser users10091 June 302005 graph_templates_inputs.php
-rw-r--r--1 cactiuser users17359 June 302005 graph_templates_items.php
-rw-r--r--1 cactiuser users19176 June 302005 graph_templates.php
-rw-r--r--1 cactiuser users13531 June 302005 graph_view.php
-rw-r--r--1 cactiuser users30855 June 302005 host.php
-rw-r--r--1 cactiuser users14232 June 302005 host_templates.php
DRWXR-XR-X2 cactiuser users4096 June 302005 Images
drwxr-xr-x6 cactiuser users4096 APR4 15:11 include
-rw-r--r--1 cactiuser users2271 June 302005 index.php
DRWXR-XR-X2 cactiuser users4096 June 302005 Install
Drwxr-xr-x3 Cactiuser users4096 June 302005 Lib
-rw-r--r--1 cactiuser users15141 June 302005 LICENSE
drwxr-xr-x2 cactiuser users4096 APR4 16:08 Log
-rw-r--r--1 cactiuser users1796 June 302005 logout.php
-rw-r--r--1 cactiuser users9247 June 302005 poller.php
-rw-r--r--1 cactiuser users72 June 302005 README
drwxr-xr-x5 cactiuser users4096 June 302005 Resource
drwxr-xr-x2 cactiuser users4096 APR5 16:05 RRA
-rw-r--r--1 cactiuser users6619 June 302005 rra.php
DRWXR-XR-X2 cactiuser users4096 June 302005 Scripts
-rw-r--r--1 cactiuser users6758 June 302005 script_server.php
-rw-r--r--1 cactiuser users353 June 302005 script_server.pl
-rw-r--r--1 cactiuser users4832 June 302005 settings.php
-rw-r--r--1 cactiuser users6813 June 302005 templates_export.php
-rw-r--r--1 Cactiuser users 5843 June 302005 templates_import.php
-rw-r--r--1 cactiuser users17443 June 302005 tree.php
-rw-r--r--1 cactiuser users28117 June 302005 user_admin.php
-rw-r--r--1 cactiuser users10912 June 302005 utilities.php
[Root@test cacti]# CD RRA
[Root@test rra]# Ls-l
Total 600
-rw-rw-r--1 cactiuser cactiuser 94660apr6 13:25 by_traffic_in_14.rrd
-rw-rw-r--1 cactiuser cactiuser 94660apr6 13:25 by_traffic_in_15.rrd