no graphs

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

Moderators: Developers, Moderators

Post Reply
daniel444
Posts: 10
Joined: Thu Nov 03, 2005 5:49 am

no graphs

Post by daniel444 »

Hello,

I dont see my graphs.


Image




What make I wrong??

Please Help!


Big Thx!


daniel444
User avatar
mahuani
Cacti User
Posts: 72
Joined: Tue Nov 01, 2005 2:10 pm
Location: Lafayette, LA
Contact:

Post by mahuani »

I'm by no means an expert on debugging problems, but could you provide a little more info?? Like the DEBUG output from the poller? Can you run a snmpwalk from the command line? Versions of everything, which poller are you running?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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?
[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]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Next approach: perhaps the rrdtool graph statement fails. Click on one of the graphs and select a wrench to see the statement. Copy this to cli and run. Post any errors.
Reinhard
vermicknid
Posts: 4
Joined: Fri Jan 13, 2006 2:50 pm

RE: Same graphing problem

Post by vermicknid »

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" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30:"Used" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"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!
vermicknid
Posts: 4
Joined: Fri Jan 13, 2006 2:50 pm

no graphs

Post by vermicknid »

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!
Think for yourself and question authority!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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 read

Code: Select all

*/5 * * * *     cactiuser       /usr/bin/php /var/www/html/cacti/poller.php > /var/www/html/cacti/log/poller.log 2>&1
So you'll always have to last log from the poller to look for any rrdtool errors or the like :wink:
Reinhard
vermicknid
Posts: 4
Joined: Fri Jan 13, 2006 2:50 pm

RE: graphing issues

Post by vermicknid »

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!
Think for yourself and question authority!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: RE: graphing issues

Post by gandalf »

vermicknid 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!
That depends on your likings. Please post at least a snipped of the crontab for help
Reinhard
espinojo
Posts: 4
Joined: Tue Jan 17, 2006 12:24 am

Post by espinojo »

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?
espinojo
Posts: 4
Joined: Tue Jan 17, 2006 12:24 am

Some more info

Post by espinojo »

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]
espinojo
Posts: 4
Joined: Tue Jan 17, 2006 12:24 am

Solution

Post by espinojo »

I have found that the manual posted in documentation has an error. On the crontab file you just have to use this:

*/5 * * * * /www/php/bin/php /www/htdocs/cacti/poller.php >/dev/null 2>&1

without the root.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest