Problem when run " php poller.php " manual

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

Moderators: Developers, Moderators

Post Reply
b:z
Posts: 2
Joined: Thu Feb 08, 2007 12:50 am

Problem when run " php poller.php " manual

Post by b:z »

Here is the result when i manually run poller.php:
# php poller.php
Can't open perl script "/htdocs/cacti/scripts/linux_memory.pl": No such file or directory
Can't open perl script "/htdocs/cacti/scripts/linux_memory.pl": No such file or directory
Can't open perl script "/htdocs/cacti/scripts/loadavg_multi.pl": No such file or directory
Can't open perl script "/htdocs/cacti/scripts/unix_users.pl": No such file or directory
Can't open perl script "/htdocs/cacti/scripts/unix_processes.pl": No such file or directory
ERROR: opening '/htdocs/cacti/rra/localhost_mem_buffers_3.rrd': No such file or directory
OK u:0.01 s:0.00 r:0.01
ERROR: opening '/htdocs/cacti/rra/localhost_mem_swap_4.rrd': No such file or directory
OK u:0.01 s:0.00 r:0.02
ERROR: Not enough arguments
OK u:0.01 s:0.00 r:0.02
ERROR: opening '/htdocs/cacti/rra/localhost_users_6.rrd': No such file or directory
OK u:0.01 s:0.00 r:0.02
ERROR: opening '/htdocs/cacti/rra/localhost_proc_7.rrd': No such file or directory
OK u:0.01 s:0.00 r:0.03
02/08/2007 12:54:31 PM - SYSTEM STATS: Time:1.0749 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:5
#
But when i check the directory "/htdocs/cacti/scripts" and "/htdocs/cacti/rra", the files are exist.

Here is info of cacti directory:

Code: Select all

# pwd
/var/www/htdocs/cacti
# 
# ls -alh
total 1616
drwxr-xr-x  11 www  daemon   1.5K Feb  8 10:09 .
drwxr-xr-x  10 www  daemon   512B Feb  8 10:06 ..
-rw-r--r--   1 www  daemon  14.8K Jan 18 07:23 LICENSE
-rw-r--r--   1 www  daemon    71B Jan 18 07:23 README
-rw-r--r--   1 www  daemon   5.8K Jan 18 07:23 about.php
-rw-r--r--   1 www  daemon   4.7K Jan 18 07:23 auth_changepassword.php
-rw-r--r--   1 www  daemon   6.1K Jan 18 07:23 auth_login.php
-rw-------   1 www  daemon   167K Jan 18 07:23 cacti.sql
-rw-r--r--   1 www  daemon  12.8K Jan 18 07:23 cdef.php
-rw-r--r--   1 www  daemon  16.6K Jan 18 07:23 cmd.php
-rw-r--r--   1 www  daemon   5.8K Jan 18 07:23 color.php
-rw-r--r--   1 www  daemon   2.8K Jan 18 07:23 copy_cacti_user.php
-rw-r--r--   1 www  daemon  18.0K Jan 18 07:23 data_input.php
-rw-r--r--   1 www  daemon  28.1K Jan 18 07:23 data_queries.php
-rw-r--r--   1 www  daemon  44.3K Jan 18 07:23 data_sources.php
-rw-r--r--   1 www  daemon  30.6K Jan 18 07:23 data_templates.php
drwxr-xr-x   5 www  daemon   512B Jan 18 07:23 docs
-rw-r--r--   1 www  daemon     0B Feb  8 10:08 dtcacti
-rw-r--r--   1 www  daemon   6.0K Jan 18 07:23 gprint_presets.php
-rw-r--r--   1 www  daemon  10.3K Jan 18 07:23 graph.php
-rw-r--r--   1 www  daemon   3.3K Jan 18 07:23 graph_image.php
-rw-r--r--   1 www  daemon   6.3K Jan 18 07:23 graph_settings.php
-rw-r--r--   1 www  daemon  22.9K Jan 18 07:23 graph_templates.php
-rw-r--r--   1 www  daemon   9.9K Jan 18 07:23 graph_templates_inputs.php
-rw-r--r--   1 www  daemon  17.0K Jan 18 07:23 graph_templates_items.php
-rw-r--r--   1 www  daemon  22.7K Jan 18 07:23 graph_view.php
-rw-r--r--   1 www  daemon  47.0K Jan 18 07:23 graphs.php
-rw-r--r--   1 www  daemon  12.2K Jan 18 07:23 graphs_items.php
-rw-r--r--   1 www  daemon  30.2K Jan 18 07:23 graphs_new.php
-rw-r--r--   1 www  daemon  34.3K Jan 18 07:23 host.php
-rw-r--r--   1 www  daemon  14.7K Jan 18 07:23 host_templates.php
drwxr-xr-x   2 www  daemon   1.5K Jan 18 07:23 images
drwxr-xr-x   5 www  daemon   512B Jan 18 07:23 include
-rw-r--r--   1 www  daemon   2.2K Jan 18 07:23 index.php
drwxr-xr-x   2 www  daemon   512B Jan 18 07:23 install
drwxr-xr-x   3 www  daemon   1.0K Jan 18 07:23 lib
drwxr-xr-x   2 www  daemon   512B Jan 18 07:23 log
-rw-r--r--   1 www  daemon   1.8K Jan 18 07:23 logout.php
-rw-r--r--   1 www  daemon   9.1K Feb  8 12:29 poller.php
-rw-r--r--   1 www  daemon   4.4K Jan 18 07:23 poller_commands.php
-rw-r--r--   1 www  daemon   2.3K Jan 18 07:23 poller_export.php
-rw-r--r--   1 www  daemon   4.3K Jan 18 07:23 poller_reindex_hosts.php
-rw-r--r--   1 www  daemon   4.1K Jan 18 07:23 rebuild_poller_cache.php
drwxr-xr-x   5 www  daemon   512B Jan 18 07:23 resource
drwxr-xr-x   2 www  daemon   512B Feb  8 10:45 rra
-rw-r--r--   1 www  daemon   7.1K Jan 18 07:23 rra.php
-rw-r--r--   1 www  daemon   7.2K Jan 18 07:23 script_server.php
-rw-r--r--   1 www  daemon   353B Jan 18 07:23 script_server.pl
drwxr-xr-x   2 www  daemon   1.0K Jan 18 07:23 scripts
-rw-r--r--   1 www  daemon   5.0K Jan 18 07:23 settings.php
-rw-r--r--   1 www  daemon   6.7K Jan 18 07:23 templates_export.php
-rw-r--r--   1 www  daemon   5.8K Jan 18 07:23 templates_import.php
-rw-r--r--   1 www  daemon  17.5K Jan 18 07:23 tree.php
-rw-r--r--   1 www  daemon  28.2K Jan 18 07:23 user_admin.php
-rw-r--r--   1 www  daemon  35.0K Jan 18 07:23 utilities.php
# 
I really don't why i run the command: # php poller.php , i got the error. I have followed the instruction at : http://docs.cacti.net/node/5
About my system:
OBSD4.0
RRD version: rrdtool-1.0.49p3-tcl.tgz
net-snmp: net-snmp-5.1.3p3.tgz
apache: 1.3
mysql: 5.0

Could you please tell me why the problem occurs? and please help me to fix it?
Thank you very much.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please check "Settings -> Paths" for correct cacti installation path setting
Reinhard
b:z
Posts: 2
Joined: Thu Feb 08, 2007 12:50 am

Post by b:z »

Yes, all paths is correct. I don't think the problem comes from path setting.
After i run apache without chroot environment, the cacti display graph properly.

I am investigating how possible to run cacti in apache chroot under OBSD. seem like more things to do before complete. Do you have any idea about this?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests