Graphics Issues

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
sadzas
Posts: 10
Joined: Mon Sep 29, 2008 9:43 am

Graphics Issues

Post by sadzas »

Somebody knows why this happens?

Thanks!!

Image

I turn on the graph debug mode...

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/var/www/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
AREA:a#FF4105FF:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#FFC73BFF:"Swap":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:

ERROR: opening '/var/www/cacti/rra/localhost_mem_buffers_3.rrd': No such file or directory

Is not a permissions issues.. but /var/www/cacti/rra/ is empty..

This is all what my log say:

09/29/2008 11:36:55 AM - AUTH LOGIN: User 'admin' Authenticated
09/29/2008 11:37:53 AM - AUTH LOGIN: User 'admin' Authenticated
rtorti19
Posts: 48
Joined: Wed May 07, 2008 1:20 pm

Post by rtorti19 »

Have you verified that the poller runs properly from whichever crontab it's being run from? If the rrd files don't exist, I would suspect that the poller is not running.
sadzas
Posts: 10
Joined: Mon Sep 29, 2008 9:43 am

Post by sadzas »

rtorti19 wrote:Have you verified that the poller runs properly from whichever crontab it's being run from?
How I do that?

I have installed the RRDTOOL twice..

Once I did it from:
$ sudo wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.18.tar.gz

After that and seeing the error, I have tried:
$ sudo apt-get install rrdtool

Thanks for the quickly answer..
rtorti19
Posts: 48
Joined: Wed May 07, 2008 1:20 pm

Post by rtorti19 »

Which installation guide did you follow?
Are you using cmd.php or spine for your poller?

During your cacti setup, you should have created a user to run cacti under. That users crontab should contain an entry like the following:

*/5 * * * * /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1

Of course you would need to change the paths to match your setup.
You can look in your cacti.log to see if its being run.
sadzas
Posts: 10
Joined: Mon Sep 29, 2008 9:43 am

Post by sadzas »

I think do I follow the wrong guide...

Which guide do you recomend ?? under debian distro..

thanks
rtorti19
Posts: 48
Joined: Wed May 07, 2008 1:20 pm

Post by rtorti19 »

I'm not sure how up to date this guide is, but it should at least point you in the right direction.

http://www.cacti.net/downloads/docs/html/index.html
ICIT
Posts: 5
Joined: Sun Sep 14, 2008 8:27 pm

Post by ICIT »

I also have the same problem - we want to resolve
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should manually run:

Code: Select all

php -q poller.php --force
You should be looking for OK's. If the file is still not present, you should check for the name of the RRDfile in the poller cache. If it is not there, attempt to Repopulate the Poller cache. If it magically appears thereafter, I will need to know where you obtained your Cacti install from and how it was installed.

TheWitness
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?
sadzas
Posts: 10
Joined: Mon Sep 29, 2008 9:43 am

Post by sadzas »

TheWitness wrote:You should manually run:

Code: Select all

php -q poller.php --force
You should be looking for OK's. If the file is still not present, you should check for the name of the RRDfile in the poller cache. If it is not there, attempt to Repopulate the Poller cache. If it magically appears thereafter, I will need to know where you obtained your Cacti install from and how it was installed.

TheWitness
Thanks! Solved!

The secret (Just like the Asterisk) is on Installation !!

There is no secrets...
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests