No Graphs!
Moderators: Developers, Moderators
No Graphs!
Hey ..
I installed cacti via YaST on SuSE10.1.
My PHP Version is 5.1.2
If I run now:
h1270310:/usr/share/cacti # php5 /usr/share/cacti/poller.php
PHP Notice: Undefined variable: polling_items in /usr/share/cacti/cmd.php on line 110
04/30/2007 03:43:13 PM - SYSTEM STATS: Time:1.2294 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
Nice ... so I look in the log file of the apache2
ERROR: opening '/var/lib/cacti/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_users_6.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_mem_buffers_3.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_proc_7.rrd': No such file or directory
yeah ... and now? I thought those files will be generated by the script?
When I use the graph in debug mode the answer of rrdtool is: "" -> There is no answer ...
I used the search here and read some threads but there were a few problems - but no way of solving them.
Thank you for your help!!
I installed cacti via YaST on SuSE10.1.
My PHP Version is 5.1.2
If I run now:
h1270310:/usr/share/cacti # php5 /usr/share/cacti/poller.php
PHP Notice: Undefined variable: polling_items in /usr/share/cacti/cmd.php on line 110
04/30/2007 03:43:13 PM - SYSTEM STATS: Time:1.2294 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
Nice ... so I look in the log file of the apache2
ERROR: opening '/var/lib/cacti/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_users_6.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_mem_buffers_3.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/localhost_proc_7.rrd': No such file or directory
yeah ... and now? I thought those files will be generated by the script?
When I use the graph in debug mode the answer of rrdtool is: "" -> There is no answer ...
I used the search here and read some threads but there were a few problems - but no way of solving them.
Thank you for your help!!
So, when I call poller.php:
But if I call cmd.php first ...
cacti.log:
Code: Select all
h1270310:~ # php5 /usr/share/cacti/poller.php
PHP Notice: Undefined variable: polling_items in /usr/share/cacti/cmd.php on line 110
05/01/2007 11:11:50 AM - SYSTEM STATS: Time:1.2371 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:6 RRDsProcessed:0
Code: Select all
h1270310:~ # php5 /usr/share/cacti/cmd.php
05/01/2007 11:12:22 AM - CMDPHP: Poller[0] Time: 0.1363 s, Theads: N/A, Hosts: 1
h1270310:~ # php5 /usr/share/cacti/poller.php
PHP Notice: Undefined variable: polling_items in /usr/share/cacti/cmd.php on line 110
05/01/2007 11:12:26 AM - SYSTEM STATS: Time:1.3122 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:6 RRDsProcessed:6
OK u:0.00 s:0.01 r:0.00
OK u:0.00 s:0.01 r:0.00
OK u:0.00 s:0.01 r:0.00
OK u:0.00 s:0.01 r:0.00
OK u:0.00 s:0.01 r:0.00
OK u:0.00 s:0.01 r:0.00
Code: Select all
05/01/2007 11:12:22 AM - CMDPHP: Poller[0] Time: 0.1363 s, Theads: N/A, Hosts: 1
05/01/2007 11:12:25 AM - CMDPHP: Poller[0] ERROR: Invalid Number of Arguments. You must specify 0 or 2 arguments.
05/01/2007 11:12:25 AM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
05/01/2007 11:12:26 AM - SYSTEM STATS: Time:1.3122 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:6 RRDsProcessed:6
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
You should not call cmd.php directly, only poller.php. This one calls cmd.php.
"Normally", cacti assumes the rra directory to be a subdirectory of the cacti installation. While this is not necessarily the best idea, you'll have to keep an eye on it when changing this. There is no explicit setting for the rra_path!
Reinhard
"Normally", cacti assumes the rra directory to be a subdirectory of the cacti installation. While this is not necessarily the best idea, you'll have to keep an eye on it when changing this. There is no explicit setting for the rra_path!
Reinhard
Re: No Graphs!
Try this
sudo dpkg-reconfigure php5-mysql
sudo dpkg-reconfigure php5-mysql
Re: No Graphs!
Hi,
How can I call poller.php on Windows OS
Thanks
How can I call poller.php on Windows OS
Thanks
Who is online
Users browsing this forum: No registered users and 1 guest