no graph is shown
Moderators: Developers, Moderators
-
- Posts: 19
- Joined: Thu Jan 20, 2005 12:25 pm
no graph is shown
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
PS: if you need more infos about my configuration, please let me know.
thanks
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
-
- Posts: 19
- Joined: Thu Jan 20, 2005 12:25 pm
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
-
- Posts: 19
- Joined: Thu Jan 20, 2005 12:25 pm
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Always search the forums first..
Then ask questions..
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]
[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]
-
- Posts: 19
- Joined: Thu Jan 20, 2005 12:25 pm
-
- Posts: 19
- Joined: Thu Jan 20, 2005 12:25 pm
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
-
- Posts: 19
- Joined: Thu Jan 20, 2005 12:25 pm
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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?
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]
[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]
-
- Posts: 19
- Joined: Thu Jan 20, 2005 12:25 pm
yup...crond is running...the other tasks are doing just fine
[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....
[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....
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
-
- Posts: 19
- Joined: Thu Jan 20, 2005 12:25 pm
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Have you tried executing the script as cactiuser?
Let me know what happens.
Code: Select all
su - cactiuser -c "php /var/www/html/cacti/poller.php"
[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]
[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]
Who is online
Users browsing this forum: No registered users and 3 guests