non-timeseries graphing

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

Moderators: Developers, Moderators

Post Reply
edzheng
Posts: 10
Joined: Sat Jul 16, 2005 3:38 pm
Location: Ontario, Canada

non-timeseries graphing

Post by edzheng »

Cacti is a fantastic graphing tool for monitoring I ever see.
But all the sample graphs are time-based (x-axis is time).
Is there a way to create a non-timeseries graph in cacti, e.g.
For last week, what's the overall average CPU utilization by each host (host is the x-axis)?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

No. RRDtool is designed for graphing data by time. :(

We are looking at some features moving forward that might assist, but they are a way off. Volunteer work you know.

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?
edzheng
Posts: 10
Joined: Sat Jul 16, 2005 3:38 pm
Location: Ontario, Canada

Post by edzheng »

Thanks for your response, man, it's really fast, my surprise!
I hope I could contribute to cacti after getting familiar with its arch.
BTW, I'm stocked for a couple of days by the "no rra file under /rra dir after install" issue posted in Linux/Unix Specific section, could somebody help me out? Thanks in advance.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

New install? If so, I would suspect a permissions problem. You should set the Logging Level to DEBUG and then run the following from a command line:

"php <path_cacti>/cmd.php"

and

"php poller.php"

Do this as root. If the files are then created, you know what your prolem is.

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?
edzheng
Posts: 10
Joined: Sat Jul 16, 2005 3:38 pm
Location: Ontario, Canada

Post by edzheng »

Aha, eventually I got the .rrd files when running it as root ! Just like wait for a baby's birth. I think the problem is I set the cron to run as cactiuser and this user may have some issue though I chmod -R cactiuser rra/ log/.

Thanks you so much for the help.

BTW, what do you mean "set the Logging Level to DEBUG"? Is there an option in cacti configuration interface or some conf files?
edzheng
Posts: 10
Joined: Sat Jul 16, 2005 3:38 pm
Location: Ontario, Canada

Post by edzheng »

Sorry for the typos, I mean run chown -R cactiuser rra/ log/
edzheng
Posts: 10
Joined: Sat Jul 16, 2005 3:38 pm
Location: Ontario, Canada

Permission is not the root cause

Post by edzheng »

Changing the cron job to run as root does not solve the problem.
I found only manually run the following commands in sequence could create and update rrd files under rra/
/www/php/bin/php /www/htdocs/cacti/cmd.php
this command generates a line in cacti.log about the poller statistics.
/www/php/bin/php /www/htdocs/cacti/poller.php
this command brings what cmd.php collected into rrd files.

And at the end, poller.php hangs for 5 minutes and give out message like
POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

Seems I need to debug poller.php, I'm a newbie to php as well, any suggestion on how to debug it is welcome.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Check Settings->Poller and make sure your selected poller is cmd.php and not cactid.

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?
edzheng
Posts: 10
Joined: Sat Jul 16, 2005 3:38 pm
Location: Ontario, Canada

Problem resolved

Post by edzheng »

Found the place to set the log level in cacti, run manually again, log says:
07/17/2005 06:03:44 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /www/htdocs/cacti/cmd.php 0 1]

I notice the php I installed is at /www/php/bin/php instead of /usr/bin/php.
Seems cacti found an original installed php and I didn't correct it at the first login.
Correct the php path and try manually again, no hang or timeout, seems the problem resolved.

Cacti has quite a few dependencies, the user has to be very carefully about the path. I'll remember this lesson for a long time.

Thx a lot, TheWitness, you support me at the point I almost lost my confidence to use Cacti. I'll keep on trying.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests