big newbee - I dont see graph

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

Moderators: Developers, Moderators

Post Reply
ramax
Posts: 5
Joined: Wed Apr 06, 2005 5:14 am
Location: france auvergne 63

big newbee - I dont see graph

Post by ramax »

hello ! and congratulation for cacti

excuse my bad english , i am french

i have a problem with cacti, i install this on a server with RH9 mysql pre installed ( with a panel administration named "direct admin" ) and i compil RRDtool and SNMP with your install guide : but cacti dont create graph

i take a screen shot for you

thanks to help me
regards
Attachments
ScreenShot001.jpg
ScreenShot001.jpg (46.77 KiB) Viewed 3344 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you at least run the poller one time?

The rrd files that are used to graph are created/updated by the poller. If the poller hasn't run, then no graphs.
[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]
ramax
Posts: 5
Joined: Wed Apr 06, 2005 5:14 am
Location: france auvergne 63

Post by ramax »

thanks for your reply

i run the poller.php manualy ( not on root )

i type in cacti directory : php poller.php ( i see this in manual of cacti )

the graph is not broken now :D :D :D but empty ...

i continous to follow the manualy with my bad english lol :) but i afraid to make an bad error
ramax
Posts: 5
Joined: Wed Apr 06, 2005 5:14 am
Location: france auvergne 63

Post by ramax »

i have file in RRA directory and your manual say to type : ls -al rra/

same probleme , gfx is empty

i run the graph debug mode in graph management , gfx is already empty :(


do you have an idea ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Are you running the poller every 5 minutes from cron/scheduler? This important, as you will not see data in the graphs until at least to polls in a row. That is the way RRDtool works.
[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]
ramax
Posts: 5
Joined: Wed Apr 06, 2005 5:14 am
Location: france auvergne 63

Post by ramax »

rony wrote:Are you running the poller every 5 minutes from cron/scheduler? This important, as you will not see data in the graphs until at least to polls in a row. That is the way RRDtool works.
yes i think, i edit the etc/crontab file

Code: Select all

[cacti@ns1 etc]$ cat crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

*/5 * * * * cacti_db php /home/cacti/domains/cacti.cledunet.com/public_html/cacti/poller.php > /dev/null 2>&1

[cacti@ns1 etc]$
do you see an error ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yep, problem.... Is php in the path defined in the crontab? I would suggest that you put the full path to php in cron.

Also, you can confirm this by checking the cron logs.
[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]
ramax
Posts: 5
Joined: Wed Apr 06, 2005 5:14 am
Location: france auvergne 63

Post by ramax »

i modify /etc/crontab with the complet URL for php

Code: Select all

[root@ns1 etc]# cat crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

*/5 * * * * cacti_db /usr/local/bin/php /home/cacti/domains/cacti.cledunet.com/public_html/cacti/poller.php > /dev/null 2>&1
graph is empty :(

and when i type php poller.php i have some error :
[cacti@ns1 cacti]$ php poller.php
OK u:0.00 s:0.00 r:2.11
OK u:0.00 s:0.01 r:2.11
OK u:0.00 s:0.01 r:2.14
OK u:0.00 s:0.01 r:2.14
OK u:0.00 s:0.01 r:2.14
Timeout: No Response from 127.0.0.1:161.
OK u:0.00 s:0.01 r:8.16
OK u:0.00 s:0.01 r:8.16
Timeout: No Response from 127.0.0.1:161.
OK u:0.00 s:0.01 r:12.17
Timeout: No Response from 127.0.0.1:161.
OK u:0.00 s:0.01 r:17.22
Timeout: No Response from 127.0.0.1:161.
OK u:0.00 s:0.01 r:21.34
OK u:0.00 s:0.01 r:21.34
Timeout: No Response from 127.0.0.1:161.
OK u:0.00 s:0.01 r:25.34
OK u:0.00 s:0.01 r:25.34
Timeout: No Response from 127.0.0.1:161.
OK u:0.00 s:0.01 r:29.39
OK u:0.00 s:0.01 r:29.39
04/08/2005 12:07:46 AM - SYSTEM STATS: Time: 29.4837 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
[cacti@ns1 cacti]$
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Temporarily redirect your stdout/stderr to a file and review it's contents for more information. In addition, please post your DEBUG output from System Utilities->View Cacti Log

TheWitenss
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?
iocombe
Posts: 7
Joined: Thu Apr 07, 2005 1:25 pm

Post by iocombe »

ramax wrote:

Code: Select all

*/5 * * * * cacti_db /usr/local/bin/php /home/cacti/domains/cacti.cledunet.com/public_html/cacti/poller.php > /dev/null 2>&1
Ton utilisateur qui execute le script 'pooler.php' ne devrait il pas être plutot le user de Apache. Je serais etonné que ton user Apache soit 'cacti_db'. En fait l'utilisateur qui execute le script, pour toi cacti_db, doit avoir les droits d'ecriture dans les repertoires 'cacti/log' & 'cacti/rra' sans cela ca ne fonctionnera jamais.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

iocombe wrote:
ramax wrote:

Code: Select all

*/5 * * * * cacti_db /usr/local/bin/php /home/cacti/domains/cacti.cledunet.com/public_html/cacti/poller.php > /dev/null 2>&1
Ton utilisateur qui execute le script 'pooler.php' ne devrait il pas être plutot le user de Apache. Je serais etonné que ton user Apache soit 'cacti_db'. En fait l'utilisateur qui execute le script, pour toi cacti_db, doit avoir les droits d'ecriture dans les repertoires 'cacti/log' & 'cacti/rra' sans cela ca ne fonctionnera jamais.
Translation ala google:
Your user who execute script ' pooler.php' should not it not be rather to use it of Apache. I would be astonished that your to use Apache is ' cacti_db '. In fact the user who execute script, for you cacti_db, must have the rights of writing in the repertoires ' cacti/log' & ' cacti/rra' without that Ca will never function.
Good point.
[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 0 guests