no graph is shown

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

Moderators: Developers, Moderators

DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

no graph is shown

Post by DeathRipple »

I've installed cacti on Fedora Core 2 exactly as in the manual, then I've setup some graphs for my machine. all seems ok, the snmp queries seems to work fine, but when I want to see the graphs, nothing is shown, except some links in the place where the graphs supose to be. please help me here, 'coz I'm stuck

PS: if you need more infos about my configuration, please let me know.

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

Post by rony »

Confirm the path of rrdtool in your configuration settings under paths.
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

yup....it's /usr/local/rrdtool/bin/rrdtool

it seems that I've found the problem..keep in touch....sorry about this....I'm new :)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What was the problem?
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

refresh...:)
anyway, doesn't seem to appear anything else on the graph....that is probably becauze the machine does nothing :) I'll get into details tomorrow....now I'm really tired and need a rest

thanks for your help man....tomorrow then :) with more problems :)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Always search the forums first.. ;)

Then ask questions.. ;)
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

ok, I see the graphs now, but I don't get anything from them. they're empty. some activity should occur in terms of CPU, memory....
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

it seems that crontab isn't working right. if I run the command manually, everything works just fine.... regarding the graphs on the local machine
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Good to hear.

Make sure that you check the permission of the rra and log directory in you cacti installation. The permissions should allow the user that the poller.php is running from cron as to read/write/create on the directory and files within the directory.
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

yeah...should work though....
I've changed the user rights, but still, no activity in crontab...

[root@teste cacti]# ls -al | grep log
-rw-r--r-- 1 root users 6133 Dec 19 22:01 auth_login.php
drwxrwxrwx 2 cactiuser users 4096 Jan 21 14:07 log
-rw-r--r-- 1 root users 1796 Dec 19 22:01 logout.php
[root@teste cacti]# ls -al | grep rra
drwxrwxrwx 2 cactiuser users 4096 Jan 21 14:39 rra
-rw-r--r-- 1 root users 6068 Dec 19 22:01 rra.php

when i run manually the command from crontab the graphs are updated, but only those corresponding to the localhost....here it a part of the log that i'm getting from cacti.log (where the ip address is the address of eth0 of the same machine....soooeven more confusing)

01/21/2005 03:27:56 PM - CMDPHP: Poller[0] Host[8] WARNING: Result from SNMP not valid. Partial Result:
01/21/2005 03:27:56 PM - CMDPHP: Poller[0] Host[8] SNMP: v1: 193.231.79.33, dsname: load_5min, oid: .1.3.6.1.4.1.2021.10.1.3.2, output: U
01/21/2005 03:27:56 PM - CMDPHP: Poller[0] Host[8] WARNING: Result from SNMP not valid. Partial Result:
01/21/2005 03:27:56 PM - CMDPHP: Poller[0] Host[8] SNMP: v1: 193.231.79.33, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, output: U
01/21/2005 03:27:56 PM - CMDPHP: Poller[0] Host[8] WARNING: Result from SNMP not valid. Partial Result:
01/21/2005 03:27:56 PM - CMDPHP: Poller[0] Host[8] SNMP: v1: 193.231.79.33, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, output: U
01/21/2005 03:27:56 PM - CMDPHP: Poller[0] Time: 0.3208 s, Theads: N/A, Hosts: 4
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Stupid question, crond running?

Do you see any crond messages in your system log? Is it even attempting to execute the cron entry? Have you checked the paths in the crontab entry?
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

yup...crond is running...the other tasks are doing just fine :D

[root@teste cacti]# less /etc/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
# cacti
*/1 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1

[root@teste cacti]# /etc/init.d/crond status
crond (pid 2072) is running...

[root@teste cacti]# tail -f /var/log/cron
Jan 21 12:45:45 teste anacron[1535]: Anacron 2.3 started on 2005-01-21
Jan 21 12:45:45 teste anacron[1535]: Normal exit (0 jobs run)
Jan 21 13:01:00 teste CROND[1769]: (root) CMD (run-parts /etc/cron.hourly)
Jan 21 13:41:18 teste crond[1953]: (CRON) STARTUP (fork ok)
Jan 21 13:48:00 teste crond[1954]: (system_u) RELOAD (/etc/crontab)
Jan 21 13:49:00 teste crond[2071]: (CRON) STARTUP (fork ok)
Jan 21 14:01:00 teste CROND[2179]: (root) CMD (run-parts /etc/cron.hourly)
Jan 21 14:07:00 teste crond[2072]: (system_u) RELOAD (/etc/crontab)
Jan 21 14:32:00 teste crond[2072]: (system_u) RELOAD (/etc/crontab)
Jan 21 15:01:00 teste CROND[4069]: (root) CMD (run-parts /etc/cron.hourly)


as you can se....no problem with the service itself....
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Add the full path to php in the crontab, see if that helps.

Also, check that you don't have a user crontab set for cactiuser.

Code: Select all

crontab -l -u cactiuser
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

[root@teste cacti]# crontab -l -u cactiuser
no crontab for cactiuser

I've tried already using the full php path....same result
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 tried executing the script as cactiuser?

Code: Select all

su - cactiuser -c "php /var/www/html/cacti/poller.php"
Let me know what happens.
[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 3 guests