new cacti install - no graphs are created

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

Moderators: Developers, Moderators

lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

new cacti install - no graphs are created

Post by lorell »

Cacti seems to be running normally, but no graphs are being created.

RRDtool 1.0.50
cacti-0.8.6g
Attachments
cacti-no-graphs.JPG
cacti-no-graphs.JPG (88.74 KiB) Viewed 2993 times
cacti-seems-normal.JPG
cacti-seems-normal.JPG (103.29 KiB) Viewed 2993 times
Last edited by lorell on Wed Nov 23, 2005 3:56 pm, edited 1 time in total.
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

More Information

Post by lorell »

I turned on Graphing Debug Mode.

Here is more information:

RRDTool Says:

ERROR: opening '/var/www/html/cacti/rra/pix_snmp_oid_46.rrd': No such file or directory

There is a /var/www/html/cacti/rra directory but it has nothing in it. I have chmod'ed that directory to 775 and have insured that cactiuser is the owner and apache is the group.

There are no files in the rra directory.
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

I went through these procedures to test my installation and I get a graph out of it.

http://www.cacti.net/downloads/docs/htm ... graph.html

That seems to work. No data in the graph yet, but the graph is there.

It did not create anything in the /var/www/html/cacti/rra directory, but I don't know that it was supposed to.
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

Also, I get this error:

[root@mpc cacti]# /var/www/html/cacti/cmd.php
11/23/2005 02:37:54 PM - CMDPHP: Poller[0] Host[4] DS[45] WARNING: Result from SNMP not valid. Partial Result:
11/23/2005 02:37:54 PM - CMDPHP: Poller[0] Host[4] DS[46] WARNING: Result from SNMP not valid. Partial Result:
11/23/2005 02:37:54 PM - CMDPHP: Poller[0] Host[4] DS[47] WARNING: Result from SNMP not valid. Partial Result:
11/23/2005 02:37:56 PM - CMDPHP: Poller[0] Time: 1.6323 s, Theads: N/A, Hosts: 7
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

More screenshots.
Attachments
Is Being Graphed
Is Being Graphed
cacti-is-being-graphed.JPG (89.91 KiB) Viewed 2979 times
I click the edit button in the other graph and i get this debug error.
I click the edit button in the other graph and i get this debug error.
cacti-debug-error.JPG (91.5 KiB) Viewed 2979 times
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

I understand that Cacti is a GUI front-end for RRDTool. But what is the source of these missing *.rrd files?

I think that these are supposed to be generated by Cacti when I add the device and choose what my data sources are supposed to be. Did I skip a step?
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

Debug for one of the data sources:

Data Source Debug

/usr/bin/rrdtool create \
/var/www/html/cacti/rra/pix_traffic_in_36.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

When I ran the following as root, rrdtool created the file as such:
/usr/bin/rrdtool create \
/var/www/html/cacti/rra/pix_traffic_in_36.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

[root@mpc rra]# pwd
/var/www/html/cacti/rra
[root@mpc rra]# ls -l
total 100
-rw-r--r-- 1 root root 94660 Nov 23 15:09 pix_traffic_in_36.rrd
When I run it as cactiuser, I get a permission denied error as such:

[root@mpc rra]# su cactiuser
[cactiuser@mpc rra]$ /usr/bin/rrdtool create \
> /var/www/html/cacti/rra/pix_traffic_in_36.rrd \
> --step 300 \
> DS:traffic_in:COUNTER:600:0:100000000 \
> DS:traffic_out:COUNTER:600:0:100000000 \
> RRA:AVERAGE:0.5:1:600 \
> RRA:AVERAGE:0.5:6:700 \
> RRA:AVERAGE:0.5:24:775 \
> RRA:AVERAGE:0.5:288:797 \
> RRA:MAX:0.5:1:600 \
> RRA:MAX:0.5:6:700 \
> RRA:MAX:0.5:24:775 \
> RRA:MAX:0.5:288:797 \
>
ERROR: creating '/var/www/html/cacti/rra/pix_traffic_in_36.rrd': Permission denied
[cactiuser@mpc rra]$ /usr/bin/rrdtool
RRDtool 1.0.50 Copyright 1997-2004 by Tobias Oetiker <tobi@oetiker.ch>

Usage: rrdtool [options] command command_options

Valid commands: create, update, graph, dump, restore,
last, first, info, fetch, tune, resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

[cactiuser@mpc rra]$

This is pointing me towards a permissions issue.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please run poller.php from the command line and post your output.

Thanks,

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?
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

I executed this:
chmod +s /usr/bin/rrdtool
But that has not helped the other graphs show up. THey still get the permissions in the debug graph menu.

What is going on here?

Thanks!
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please open a shell window, change to the cacti directory and run "php poller.php" and post your results.

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?
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

Here's the output from poller.php:
[root@mpc bin]# /var/www/html/cacti/poller.php
OK u:0.00 s:0.00 r:0.16
OK u:0.00 s:0.01 r:0.16
ERROR: illegal attempt to update using time 1132782593 when last update time is 1132782593 (minimum one second step)
No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
Cannot find module (NONE): At line 0 in (none)
11/23/2005 03:49:55 PM - SYSTEM STATS: Time:2.6795 Method:cmd.php Processes:1 Threads:N/A Hosts:8 HostsPerProcess:8 DataSources:29 RRDsProcessed:110
[root@mpc bin]# No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
Looks like there are problems.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) Please apply patches from the following location: http://www.cacti.net/downloads/patches/ ... re-patched

2) Please select the correct version of RRDtool from Settings->General.

3) Rerun the "php poller.php" when you other poller (cron) is not.

4) Post results.

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?
lorell
Posts: 20
Joined: Wed Nov 23, 2005 1:40 pm

Post by lorell »

1. Done.
2. Done. (Did not change.)
3. Done.
4. Results:
[root@mpc cacti]# php poller.php
OK u:0.00 s:0.01 r:1.03
OK u:0.00 s:0.01 r:1.04
OK u:0.00 s:0.01 r:1.04
OK u:0.00 s:0.01 r:1.04
OK u:0.00 s:0.01 r:1.04
OK u:0.00 s:0.01 r:1.06
OK u:0.00 s:0.01 r:1.06
OK u:0.00 s:0.01 r:1.07
OK u:0.00 s:0.01 r:1.07
OK u:0.00 s:0.01 r:1.08
OK u:0.00 s:0.01 r:1.08
OK u:0.00 s:0.01 r:1.09
OK u:0.00 s:0.01 r:1.09
OK u:0.00 s:0.01 r:1.09
OK u:0.00 s:0.01 r:1.10
OK u:0.00 s:0.01 r:1.10
OK u:0.00 s:0.01 r:1.11
OK u:0.00 s:0.01 r:1.11
OK u:0.00 s:0.01 r:1.12
OK u:0.00 s:0.01 r:1.12
OK u:0.00 s:0.02 r:1.13
OK u:0.00 s:0.02 r:1.13
OK u:0.01 s:0.02 r:1.14
OK u:0.01 s:0.02 r:1.14
OK u:0.01 s:0.02 r:2.17
OK u:0.01 s:0.02 r:2.19
OK u:0.01 s:0.02 r:2.19
OK u:0.01 s:0.02 r:2.19
OK u:0.01 s:0.02 r:2.19
OK u:0.01 s:0.02 r:2.20
OK u:0.01 s:0.02 r:2.21
OK u:0.01 s:0.02 r:2.21
OK u:0.01 s:0.02 r:2.22
OK u:0.01 s:0.02 r:2.22
OK u:0.01 s:0.02 r:2.23
OK u:0.01 s:0.02 r:2.23
Content-type: text/html
X-Powered-By: PHP/4.3.9

11/23/2005 04:18:33 PM - SYSTEM STATS: Time:2.2808 Method:cmd.php Processes:1 Threads:N/A Hosts:8 HostsPerProcess:8 DataSources:29 RRDsProcessed:19
Thanks.

The graphs are all generated now. There is now data in them, so one of the following is at play:

1. Data sources are not properly configured.
2. More time needs to elapse and the data collection process will occur naturally.
3. Some thing else that I do not yet know.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Could be your cron is failing. Redirect output to a file and review it's contents. It could also be a permissions issue.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests