no graph for cacti 0.8.7.d on lenny 64b

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

Moderators: Developers, Moderators

cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

no graph for cacti 0.8.7.d on lenny 64b

Post by cali »

Hi everybody.

i've just installed cacti (by apt-get) and upgrade from 0.8.7.b to 0.8.7.d in copying the files in /usr/cacti/site/ copying the content of old config file to the new and running installer.

ps: my setting is on rrdtool 1.3 ;) and i have already test with 1.2

unfortunatly all my graphs are not. i've only there descriptions.

one thing to know is thgat i'm running debian lenny web server with DTC control panel and dtc-sbox.
the particularity is my apache user is not www-data but dtc and the group is not www-data but dtcgrp.

then i made to try to correct it:

Code: Select all

chown dtc:dtcgrp /etc/cacti/debian.php
chown -R dtc:dtcgrp /var/log/cacti/
chown -R dtc:dtcgrp /var/lib/cacti/rra
and because of the update i also made a:

Code: Select all

chmod +x /usr/share/site/cacti/poller.php
and change the cron user in /etc/cron.d/cacti
from

Code: Select all

*/5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
to

Code: Select all

*/5 * * * * dtc php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
ps: note that the /var/log/cacti/poller-error.log file is empty

everything else should run corectly. if someone have an idea i'll read it carrefully.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I would suggest you go into graph debug and see what the errors are. Also, there are some recent patches at the Cacti Web site that are important.

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?
cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

Post by cali »

ok it seem that the problem is that the rra folder is empty.
i have errors like:
graph debug mode wrote:ERROR: opening '/usr/share/cacti/site/rra/localhost_load_1min_5.rrd': No such file or directory
i'll search why and how to correct this issue

Edit: i didn't have (i really don't know why) the folder rra in usr/cacti/site/
very strange.
I create it and chmod777 on it. this chmod is quite large/open but ...
now i have the graph. i'll wait to know if they will be filled or not. the debug mode don't show any errors, just RRDTool Says: OK witch is quite good i think :)
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

How long does your poller run for? What does the cacti log say?
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?
cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

Post by cali »

hi, hey what i quick answer :) thanks a lot :D

then my log don't say many thing interesting (i think):
cacti.log wrote:03/05/2009 09:54:14 PM - AUTH LOGIN: User 'admin' Authenticated
03/05/2009 10:21:37 PM - AUTH LOGIN: User 'admin' Authenticated
03/05/2009 10:30:01 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 2400 seconds have passed since the last poll!
03/05/2009 10:30:02 PM - SYSTEM STATS: Time:1.2541 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
03/05/2009 10:35:02 PM - SYSTEM STATS: Time:1.2399 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
03/05/2009 10:40:02 PM - SYSTEM STATS: Time:1.2452 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
03/05/2009 10:45:03 PM - SYSTEM STATS: Time:1.2220 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
03/05/2009 10:45:46 PM - AUTH LOGIN: User 'admin' Authenticated
03/05/2009 10:50:03 PM - SYSTEM STATS: Time:1.2707 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
03/05/2009 10:55:03 PM - SYSTEM STATS: Time:1.2302 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
03/07/2009 01:51:05 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 140164 seconds have passed since the last poll!
03/07/2009 01:51:06 PM - SYSTEM STATS: Time:1.2839 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
and the poller is running since yesterday. The poller error and rrd error log are empty.

and when i'm running poller by hand i have:

shell wrote:root@nux:/usr/share/cacti/site# php poller.php
03/07/2009 02:08:13 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 1028 seconds have passed since the last poll!
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
03/07/2009 02:08:14 PM - SYSTEM STATS: Time:1.2238 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
and it add there lines in the log:
03/07/2009 02:08:13 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 1028 seconds have passed since the last poll!
03/07/2009 02:08:14 PM - SYSTEM STATS: Time:1.2238 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
i notice that (for example) in the memory using graph it's define there files:

Code: Select all

DEF:a="/usr/share/cacti/site/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
but my rra folder is empty. And then my graphs are empty too.
cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

Post by cali »

perhaps my chown is not good on /usr/cacti/site/rra folder.

when i create a new graph, and go to debug mode of this one i have a message that the rrd file does'nt exist in the folder.
witch is wrong, but the chown value of the new files are not the same:
-rw-r--r-- 1 dtc dtcgrp 47992 mar 7 14:50 new_graph_files_created_mem_buffers_10.rrd
-rw-r--r-- 1 dtc dtcgrp 47992 mar 7 14:50 new_graph_files_created_mem_swap_11.rrd
-rw-r--r-- 1 root root 141640 mar 7 14:48 localhost_load_1min_5.rrd
-rw-r--r-- 1 root root 47992 mar 7 14:36 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root root 47992 mar 7 14:36 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root root 47992 mar 7 14:36 localhost_proc_7.rrd
-rw-r--r-- 1 root root 47992 mar 7 14:36 localhost_users_6.rrd
and the debug mod says:
RRDTool Says:
ERROR: opening '/usr/share/cacti/site/rra/new_graph_files_created_mem_buffers_10.rrd': No such file or directory
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your cron is not working. Please seek out the install guide for more assistance.

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?
cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

Post by cali »

ok i have replace by root the user in the cron and all is ok my graphs are coming.

now i'm looking to know why some templates are working and why others don't create the rrd file in /usr/share/cacti/site/rra/ folder.
cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

Post by cali »

then everything is working well except when i would add a new graph.
the .rrd file is not created.

and my cacti log only have lines like:
03/07/2009 10:50:03 PM - SYSTEM STATS: Time:1.2269 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 10:55:02 PM - SYSTEM STATS: Time:1.2392 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:00:02 PM - SYSTEM STATS: Time:1.2516 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:05:03 PM - SYSTEM STATS: Time:1.2176 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:10:02 PM - SYSTEM STATS: Time:1.2645 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:15:02 PM - SYSTEM STATS: Time:1.2331 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:20:02 PM - SYSTEM STATS: Time:1.2549 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:25:02 PM - SYSTEM STATS: Time:1.2236 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:30:03 PM - SYSTEM STATS: Time:1.2453 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:35:03 PM - SYSTEM STATS: Time:1.2306 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:40:02 PM - SYSTEM STATS: Time:1.2465 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:45:02 PM - SYSTEM STATS: Time:1.2510 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:50:02 PM - SYSTEM STATS: Time:1.2795 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/07/2009 11:55:02 PM - SYSTEM STATS: Time:1.2557 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/08/2009 12:00:03 AM - SYSTEM STATS: Time:1.2433 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/08/2009 12:05:04 AM - SYSTEM STATS: Time:1.2686 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/08/2009 12:10:03 AM - SYSTEM STATS: Time:1.2799 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/08/2009 12:15:06 AM - SYSTEM STATS: Time:1.3200 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/08/2009 12:20:02 AM - SYSTEM STATS: Time:1.2331 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/08/2009 12:25:02 AM - SYSTEM STATS: Time:1.2361 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
03/08/2009 12:30:05 AM - SYSTEM STATS: Time:1.5792 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:7 RRDsProcessed:6
03/08/2009 12:35:04 AM - SYSTEM STATS: Time:1.4230 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:7 RRDsProcessed:6
other logs are completly empty.

if someone have an idea i'll read it carrefully ;)

here is what i have when i test with debug option:
root@nux:/usr/share/cacti/site# php -q /usr/share/cacti/site/poller.php --force --debug
OK u:0.00 s:0.00 r:0.01
OK u:0.00 s:0.00 r:0.01
OK u:0.00 s:0.00 r:0.01
OK u:0.00 s:0.00 r:0.01
OK u:0.00 s:0.00 r:0.01
OK u:0.00 s:0.00 r:1.01
03/08/2009 12:52:47 AM - SYSTEM STATS: Time:1.3413 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:7 RRDsProcessed:6
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks good to me.
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?
cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

Post by cali »

Hi Witness yes it look good for the cron and task executed, but when i want to create new graphs cacti do not create the rrd files in the rra folder.

for exemple if i create new graphs with regular template as the one created by default it's work.
but if i would use other template like my one, the ones of tools plugins or any other it do not work.
the rrd file are not created.

to know: it's a rpm based cacti version for lenny upgraded to the last release and patched with the official patch.

if you need any informations don't hesitate to ask.

i have search on the forums, google, and cactiusers forums and don't find any solution :(
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Again, this is all about permissions. If you force the poller manually as root, you may get the RRDfiles created. This is how you will know, when that problem goes away.

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?
cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

Post by cali »

i think so that's a permission isue, but my poller is already running as root in the cron:

Code: Select all

*/5 * * * * root php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
i try to run it as roon in the shell like:

Code: Select all

php -q /usr/share/cacti/site/poller.php --force --debug
and

Code: Select all

cd /usr/share/cacti/site && php poller.php
there is no error, but no rrd file created for all new graphs and templates.

it's very strange and i don't know as well cacti to know where to search/look to found how to resolve this issue.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Goto the poller cache and make sure the entries are there. Then edit the Data Source, turn on debug, and past that inside your shell, post any error messages.

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?
cali
Posts: 9
Joined: Thu Mar 05, 2009 4:36 pm

Post by cali »

i went to the poller cache and the new graphs def are not here.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests