can't view graphs on cacti, please help !!!

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

Moderators: Developers, Moderators

Post Reply
mayge
Posts: 1
Joined: Mon Sep 19, 2005 7:32 am

can't view graphs on cacti, please help !!!

Post by mayge »

hello!

I have a big problem with graph on my cacti installation. I can't see graphs on the screen.

I have a linux redhat AS V3 installed on my PC.

I downloaded and sucessfully install:

1-) apache2 (httpd-2.0.54.tar)
2-) mysql (mysql-5.0.12-beta.tar)
3-) php (php-5.0.5.tar)

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-zlib --with-zlib-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-snmp --enable-sockets --enable-soap'

4-) rrdtool (rrdtool-1.2.11.tar)
5-) cacti (cacti-0.8.6g.tar)
6-) netsnmp (net-snmp-5.2.1.2.tar)

After this, i began to check each package:

a) apache is OK (ps -efd| grep httpd)
b) mysql is OK (mysql -u cactiuser -p; show databases; use cacti; show tables; select * from host;)
c) php is OK (phpinfo in http://localhost/test.php)
d) rrdtool (i don't know how to check if all are OK)
e) net-snmp is OK (snmpget -v 1 -c public 192.168.0.248 .1.3.6.1.2.1.1.5.0)
e) cacti is OK


But the problem is in cacti:
I successfully create a device and the associate graphs. Under the graph option, i see all the graphs created. When i click on one item (graph), nothing appear on the screen. When i click on "Turn on graph debug mode", i have the message "rrdtool says: graph acces denied".

This is very strange because i ran "chown -R cactiuser:cacti /usr/local/pache2/htdocs/cacti". After this, i notice than the rra/*rrd files are created by the cron.

Also in the "graph management option", i do not see the graph i created before.

this is the poller cache:
-------------------------

Data Source: random2ds
RRD: /usr/local/apache2/htdocs/cacti/rra/random_number_23.rrd
Action: 1, Script: /home/cactiuser/random.pl
Data Source: linux_georges - 5 Minute CPU
RRD: /usr/local/apache2/htdocs/cacti/rra/linux_georges_5min_cpu_24.rrd
Action: 0, OID: .1.3.6.1.4.1.9.2.1.58.0 (Host: 192.168.101.29, Community: public)
Data Source: linux_georges - Memory - Free
RRD: /usr/local/apache2/htdocs/cacti/rra/linux_georges_mem_buffers_25.rrd
Action: 1, Script: perl /usr/local/apache2/htdocs/cacti/scripts/linux_memory.pl MemFree:
Data Source: linux_georges - Memory - Free Swap
RRD: /usr/local/apache2/htdocs/cacti/rra/linux_georges_mem_swap_26.rrd
Action: 1, Script: perl /usr/local/apache2/htdocs/cacti/scripts/linux_memory.pl SwapFree:
Data Source: linux_georges - Processes
RRD: /usr/local/apache2/htdocs/cacti/rra/linux_georges_proc_29.rrd
Action: 1, Script: perl /usr/local/apache2/htdocs/cacti/scripts/unix_processes.pl
Data Source: linux_georges - Logged in Users
RRD: /usr/local/apache2/htdocs/cacti/rra/linux_georges_users_28.rrd
Action: 1, Script: perl /usr/local/apache2/htdocs/cacti/scripts/unix_users.pl
Data Source: linux_georges - Load Average
RRD: /usr/local/apache2/htdocs/cacti/rra/linux_georges_load_1min_27.rrd
Action: 1, Script: perl /usr/local/apache2/htdocs/cacti/scripts/loadavg_multi.pl

this the cacti.log file
-----------------------



09/19/2005 11:55:01 AM - SYSTEM STATS: Time:1.0522 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
09/19/2005 11:55:01 AM - CMDPHP: Poller[0] Host[4] DS[24] WARNING: Result from SNMP not valid. Partial Result:
09/19/2005 11:55:01 AM - CMDPHP: Poller[0] Host[0] DS[23] WARNING: Result from CMD not valid. Partial Result:
09/19/2005 11:50:01 AM - SYSTEM STATS: Time:1.0549 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
09/19/2005 11:50:01 AM - CMDPHP: Poller[0] Host[4] DS[24] WARNING: Result from SNMP not valid. Partial Result:
09/19/2005 11:50:01 AM - CMDPHP: Poller[0] Host[0] DS[23] WARNING: Result from CMD not valid. Partial Result:
09/19/2005 11:45:01 AM - SYSTEM STATS: Time:1.0638 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
09/19/2005 11:45:01 AM - CMDPHP: Poller[0] Host[4] DS[24] WARNING: Result from SNMP not valid. Partial Result:
09/19/2005 11:45:01 AM - CMDPHP: Poller[0] Host[0] DS[23] WARNING: Result from CMD not valid. Partial Result:
09/19/2005 11:40:01 AM - SYSTEM STATS: Time:1.0557 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
09/19/2005 11:40:01 AM - CMDPHP: Poller[0] Host[4] DS[24] WARNING: Result from SNMP not valid. Partial Result:
09/19/2005 11:40:01 AM - CMDPHP: Poller[0] Host[0] DS[23] WARNING: Result from CMD not valid. Partial Result:
09/19/2005 11:35:02 AM - SYSTEM STATS: Time:1.0536 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
09/19/2005 11:35:02 AM - CMDPHP: Poller[0] Host[4] DS[24] WARNING: Result from SNMP not valid. Partial Result:
09/19/2005 11:35:02 AM - CMDPHP: Poller[0] Host[0] DS[23] WARNING: Result from CMD not valid. Partial Result:
09/19/2005 11:30:02 AM - SYSTEM STATS: Time:1.2460 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
09/19/2005 11:30:02 AM - CMDPHP: Poller[0] Host[4] DS[24] WARNING: Result from SNMP not valid. Partial Result:
09/19/2005 11:30:02 AM - CMDPHP: Poller[0] Host[0] DS[23] WARNING: Result from CMD not valid. Partial Result:

these are the rrd files:
------------------------

[root@LinuxGeorges rra]# ls -l
total 432
-rw-r--r-- 1 cactiuser cacti 47840 sep 19 12:00 linux_georges_5min_cpu_24.rrd
-rw-r--r-- 1 cactiuser cacti 141488 sep 19 12:00 linux_georges_load_1min_27.rrd
-rw-r--r-- 1 cactiuser cacti 47840 sep 19 12:00 linux_georges_mem_buffers_25.rrd
-rw-r--r-- 1 cactiuser cacti 47840 sep 19 12:00 linux_georges_mem_swap_26.rrd
-rw-r--r-- 1 cactiuser cacti 47840 sep 19 12:00 linux_georges_proc_29.rrd
-rw-r--r-- 1 cactiuser cacti 47840 sep 19 12:00 linux_georges_users_28.rrd
-rw-r--r-- 1 cactiuser cacti 47840 sep 19 12:00 random_number_23.rrd
[root@LinuxGeorges rra]#


[root@LinuxGeorges cacti]# ls -l
total 796
-rw-r--r-- 1 cactiuser cacti 5892 sep 15 15:22 about.php
-rw-r--r-- 1 cactiuser cacti 4773 sep 15 15:22 auth_changepassword.php
-rw-r--r-- 1 cactiuser cacti 6171 sep 15 15:22 auth_login.php
-rw------- 1 cactiuser cacti 170636 sep 15 15:22 cacti.sql
-rw-r--r-- 1 cactiuser cacti 13108 sep 15 15:22 cdef.php
-rw-r--r-- 1 cactiuser cacti 16145 sep 15 15:22 cmd.php
-rw-r--r-- 1 cactiuser cacti 5917 sep 15 15:22 color.php
-rw-r--r-- 1 cactiuser cacti 17536 sep 15 15:22 data_input.php
-rw-r--r-- 1 cactiuser cacti 28158 sep 15 15:22 data_queries.php
-rw-r--r-- 1 cactiuser cacti 43780 sep 15 15:22 data_sources.php
-rw-r--r-- 1 cactiuser cacti 27183 sep 15 15:22 data_templates.php
drwxr-xr-x 5 cactiuser cacti 4096 sep 15 15:22 docs
-rw-r--r-- 1 cactiuser cacti 6110 sep 15 15:22 gprint_presets.php
-rw-r--r-- 1 cactiuser cacti 3423 sep 15 15:22 graph_image.php
-rw-r--r-- 1 cactiuser cacti 10657 sep 15 15:22 graph.php
-rw-r--r-- 1 cactiuser cacti 6319 sep 15 15:22 graph_settings.php
-rw-r--r-- 1 cactiuser cacti 11757 sep 15 15:22 graphs_items.php
-rw-r--r-- 1 cactiuser cacti 30676 sep 15 15:22 graphs_new.php
-rw-r--r-- 1 cactiuser cacti 46496 sep 15 15:22 graphs.php
-rw-r--r-- 1 cactiuser cacti 10091 sep 15 15:22 graph_templates_inputs.php
-rw-r--r-- 1 cactiuser cacti 17359 sep 15 15:22 graph_templates_items.php
-rw-r--r-- 1 cactiuser cacti 19411 sep 15 15:22 graph_templates.php
-rw-r--r-- 1 cactiuser cacti 23120 sep 16 11:12 graph_view.php
-rw-r--r-- 1 cactiuser cacti 30855 sep 15 15:22 host.php
-rw-r--r-- 1 cactiuser cacti 14232 sep 15 15:22 host_templates.php
drwxr-xr-x 2 cactiuser cacti 4096 sep 15 15:22 images
drwxr-xr-x 5 cactiuser cacti 4096 sep 16 11:20 include
-rw-r--r-- 1 cactiuser cacti 2271 sep 15 15:22 index.php
drwxr-xr-x 2 cactiuser cacti 4096 sep 15 15:22 install
drwxr-xr-x 3 cactiuser cacti 4096 sep 15 15:22 lib
-rw-r--r-- 1 cactiuser cacti 15141 sep 15 15:22 LICENSE
drwxr-xr-x 2 cactiuser cacti 4096 sep 15 15:22 log
-rw-r--r-- 1 cactiuser cacti 1796 sep 15 15:22 logout.php
-rw-r--r-- 1 cactiuser cacti 4277 sep 15 15:22 poller_commands.php
-rw-r--r-- 1 cactiuser cacti 2325 sep 15 15:22 poller_export.php
-rw-r--r-- 1 cactiuser cacti 8561 sep 15 15:22 poller.php
-rw-r--r-- 1 cactiuser cacti 71 sep 15 15:22 README
drwxr-xr-x 5 cactiuser cacti 4096 sep 15 15:22 resource
drwxr-xr-x 2 cactiuser cacti 4096 sep 19 10:15 rra
-rw-r--r-- 1 cactiuser cacti 6622 sep 15 15:22 rra.php
drwxr-xr-x 2 cactiuser cacti 4096 sep 15 15:22 scripts
-rw-r--r-- 1 cactiuser cacti 6760 sep 15 15:22 script_server.php
-rw-r--r-- 1 cactiuser cacti 353 sep 15 15:22 script_server.pl
-rw-r--r-- 1 cactiuser cacti 4833 sep 15 15:22 settings.php
-rw-r--r-- 1 cactiuser cacti 6813 sep 15 15:22 templates_export.php
-rw-r--r-- 1 cactiuser cacti 5843 sep 15 15:22 templates_import.php
-rw-r--r-- 1 cactiuser cacti 17461 sep 15 15:22 tree.php
-rw-r--r-- 1 cactiuser cacti 28117 sep 15 15:22 user_admin.php
-rw-r--r-- 1 cactiuser cacti 10913 sep 15 15:22 utilities.php
[root@LinuxGeorges cacti]#
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Code: Select all

09/19/2005 11:55:01 AM - CMDPHP: Poller[0] Host[4] DS[24] WARNING: Result from SNMP not valid. Partial Result:
09/19/2005 11:55:01 AM - CMDPHP: Poller[0] Host[0] DS[23] WARNING: Result from CMD not valid. Partial Result: 
This shows, that data is not gathered. Please switch to DEBUG mode (under "Settings") and run and least for one polling cycle. Please post that cacti.log
Reinhard
stigmata
Posts: 49
Joined: Tue Nov 23, 2004 10:26 am

Post by stigmata »

Hi lvm, same problem here :-(

http://forums.cacti.net/viewtopic.php?t=9691 <-- dup
Attachments
cacti_log.txt
(145.72 KiB) Downloaded 312 times
cacti_problem.png
cacti_problem.png (62.39 KiB) Viewed 10115 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Sounds like (Cacti's) permissions problem...

What do you have for the admin account in Console -> User Management -> "admin" -> Graph Permissions :
- Graph Permissions (By Graph)
- Graph Permissions (By Host)
- Graph Permissions (By Graph Template)

?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Or, incorrect version of rrdtool selected in cacti settings?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cacti not supported in MySQL 5.0.XX beta yet.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
stigmata
Posts: 49
Joined: Tue Nov 23, 2004 10:26 am

Post by stigmata »

Ok, I downgraded mysql to version 4.1 and now I get this message if I click on a Host in the "Graphs" section:

Warning: array_push(): First argument should be an array in /home/data/www/cacti/lib/html_tree.php on line 565

line 561 - 565:

/* for graphs without a template */
array_push($graph_templates, array(
"id" => "0",
"name" => "(No Graph Template)"
));


bug in cacti?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Pease do not use MySQL 5.x. We have not certified in that release and already know that it does not work.

You should rebuild your database.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
stigmata
Posts: 49
Joined: Tue Nov 23, 2004 10:26 am

Post by stigmata »

thx TheWitness, after downgrade mysql and rebuild the database in mysql 4.1. cacti works fine *yeah* :-)

is there a notice that cacti _don't_ work with mysql5? if not, please do it :)

Regards
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

As soon as mySQL 5.x is released, cacti will support it. Until it's done with beta, we have no plans on supporting it while it's in flux.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest