No Graphs!

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
General1
Posts: 11
Joined: Mon Apr 30, 2007 8:43 am

No Graphs!

Post by General1 »

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!!
General1
Posts: 11
Joined: Mon Apr 30, 2007 8:43 am

Post by General1 »

Yeah ... I solved it ... don't ask me what I did ... I did so much ... 2h ... anyway....

When I want to call poller.php it didn't generate new graphs - I have to call cmd.php - and then poller.php! Then it works.

BUG ?
General1
Posts: 11
Joined: Mon Apr 30, 2007 8:43 am

Post by General1 »

So, when I call poller.php:

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
But if I call cmd.php first ...

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
cacti.log:

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
General1
Posts: 11
Joined: Mon Apr 30, 2007 8:43 am

Post by General1 »

any ideas??
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
jcormney
Posts: 1
Joined: Mon Jan 07, 2013 9:20 pm

Re: No Graphs!

Post by jcormney »

Try this

sudo dpkg-reconfigure php5-mysql
faraway89
Posts: 12
Joined: Sun Oct 18, 2015 11:17 am

Re: No Graphs!

Post by faraway89 »

Hi,

How can I call poller.php on Windows OS

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests