no graphs
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
My questions are:
Has the poller ran at least one time?
Does the web server have access to the rra files?
Do you have php safe_mode enabled?
Do you have SELinux enabled and enforced?
Has the poller ran at least one time?
Does the web server have access to the rra files?
Do you have php safe_mode enabled?
Do you have SELinux enabled and enforced?
[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: 4
- Joined: Fri Jan 13, 2006 2:50 pm
RE: Same graphing problem
I am seeing the same thing ... below is the output from the wrench:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-604800 \
--end=-1800 \
--title="Test XP Host - Available Disk Space" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
DEF:a="/var/www/html/cacti/rra/test_xp_host_hdd_total_20.rrd":hdd_total:AVERAGE \
DEF:b="/var/www/html/cacti/rra/test_xp_host_hdd_total_20.rrd":hdd_used:AVERAGE \
AREA:a#002A97:"Total" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30:"Used" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
I ran the poller manually to be sure there were files -- there are, and they are all owned by the cacti user.
Confused!
Thanks!
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-604800 \
--end=-1800 \
--title="Test XP Host - Available Disk Space" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
DEF:a="/var/www/html/cacti/rra/test_xp_host_hdd_total_20.rrd":hdd_total:AVERAGE \
DEF:b="/var/www/html/cacti/rra/test_xp_host_hdd_total_20.rrd":hdd_used:AVERAGE \
AREA:a#002A97:"Total" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30:"Used" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
I ran the poller manually to be sure there were files -- there are, and they are all owned by the cacti user.
Confused!
Thanks!
Think for yourself and question authority!
-
- Posts: 4
- Joined: Fri Jan 13, 2006 2:50 pm
no graphs
Well, I am now seeing the graphs ... apparently it really needed to run from cron, or I was being impatient. However, I do not see any data! For example, I am polling a machine with VERY little disk space, and I should see a graph representing that (I would think.)
Am I just being impatient? Or (more likely) am I doing something wrong?
Thanks!
Am I just being impatient? Or (more likely) am I doing something wrong?
Thanks!
Think for yourself and question authority!
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Are the rrd files updated? Run rrdtool fetch <file> AVERAGE against one to see the last values.
Set Logging Level to DEBUG, search the log file for rrdtool update statements, copy one to cli and run to see any potential problems ....
Change crontab to readSo you'll always have to last log from the poller to look for any rrdtool errors or the like
Reinhard
Set Logging Level to DEBUG, search the log file for rrdtool update statements, copy one to cli and run to see any potential problems ....
Change crontab to read
Code: Select all
*/5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /var/www/html/cacti/log/poller.log 2>&1
Reinhard
-
- Posts: 4
- Joined: Fri Jan 13, 2006 2:50 pm
RE: graphing issues
I think I found the problem, but I'm a bit confused as to what is going on. It appears that cron thinks that 'cactiuser' is a program to run, rather than a user to execute the command. I checked my syntax and white space, and I'm not sure what is wrong. This is in the system-wide crontab ... should I create the cron entry in cactiuser's crontab instead?
Thanks!
Thanks!
Think for yourself and question authority!
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: RE: graphing issues
That depends on your likings. Please post at least a snipped of the crontab for helpvermicknid wrote:I think I found the problem, but I'm a bit confused as to what is going on. It appears that cron thinks that 'cactiuser' is a program to run, rather than a user to execute the command. I checked my syntax and white space, and I'm not sure what is wrong. This is in the system-wide crontab ... should I create the cron entry in cactiuser's crontab instead?
Thanks!
Reinhard
I have the same problem and running the poller.php manually the graphs appeared. The line on the crontab looks like this:
*/5 * * * * cacti /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1
(I changed cactiuser for cacti in all the installation)
The crontab was created for root user, but I don't know now why it's not running automatically.
Any suggestions?
*/5 * * * * cacti /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1
(I changed cactiuser for cacti in all the installation)
The crontab was created for root user, but I don't know now why it's not running automatically.
Any suggestions?
Some more info
Log has these lines:
01/16/2006 11:36:02 PM - SYSTEM STATS: Time:2.0190 Method:cmd.php Processes:10 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:5 RRDsProcessed:5
01/16/2006 11:36:00 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
01/16/2006 11:22:02 PM - SYSTEM STATS: Time:2.1123 Method:cmd.php Processes:10 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:5 RRDsProcessed:5
01/16/2006 11:22:00 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
But if I look under settings -> poller -> general it is enabled.[/img]
01/16/2006 11:36:02 PM - SYSTEM STATS: Time:2.0190 Method:cmd.php Processes:10 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:5 RRDsProcessed:5
01/16/2006 11:36:00 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
01/16/2006 11:22:02 PM - SYSTEM STATS: Time:2.1123 Method:cmd.php Processes:10 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:5 RRDsProcessed:5
01/16/2006 11:22:00 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
But if I look under settings -> poller -> general it is enabled.[/img]
Who is online
Users browsing this forum: No registered users and 4 guests