graphs stopped working after switching to cactid

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

Moderators: Developers, Moderators

Post Reply
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

graphs stopped working after switching to cactid

Post by zkenton »

cacti was working beautifully....graphing everything nicely...however, due to some recommendation on poller speeds I decided to switch to cactid instead of cmd.php...now cactid is grabbing all the snmp data properly, (according to the cacti log) but the graphs has stopped showing data...are there any graph modifications I need to make upon switching to cactid...at this point i dont care about speed if cmc.php graphs properly
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

help gandalf help...i switched back to cmd.php and there still not coming back
danathane
Cacti User
Posts: 127
Joined: Thu May 03, 2007 9:03 am

Post by danathane »

Hello, I am not Gandalf but I had the same problem.
The only thing that i have done is to re-install caacti with a new database.
I think that is not the solution you wanted but it is mine, and now my cacti works perfectly with cactid
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

did you do a mysql dump and keep all your exsiting data or did you completely start over?...i'm looking for alsightly easier solution, but if i do have to rebuild i want to keep my data
danathane
Cacti User
Posts: 127
Joined: Thu May 03, 2007 9:03 am

Post by danathane »

Yeas I have done that but i dind't use it because 9000 graph is to long to use :d.
Don't forget to keep you rrd files to keep your datas.

You could also try to reboot you PC
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

did you have "nan" on your graphs or numbers?..it looks like i'm getting the correct numbers on the bottom of the graphs, but the graphs just arent populating with colors
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

so i've figured out that the last time the .rrd files were modified was when i changed over to cactid, and nothing since....so i'm assuming this is an rrdtool problem
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please do any or all of the following
- make sure, cactid uses a correctly configured cactid.conf
- have a look at second link of my signature to find hints on debugging
- visit Graph Management for a failing one, switch to DEBUG and post a screenshot
Reinhard
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

where should cactid be located on the system...i changed the crontab to call the paht of cactid, but I read in your debug page that the crontab should always be poller.php, and now I get an invalid path error in the cacti.log...however, when i switched back to cmd.php it still didnt update the graphs
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

zkenton wrote:where should cactid be located on the system...i changed the crontab to call the paht of cactid, but I read in your debug page that the crontab should always be poller.php, and now I get an invalid path error in the cacti.log...however, when i switched back to cmd.php it still didnt update the graphs
cactid is not part of the standard cacti installation. Either you have installed it explicitely, or it is not there. You may install it wherever you like. Please provide the path at Settings->Paths to make sure the poller will find it.
Reinhard
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="exdb0 - Load Average" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="processes in the run queue" \
DEF:a="/var/www/html/cacti/rra/exdb0_load_1min_267.rrd":load_1min:MAX \
DEF:b="/var/www/html/cacti/rra/exdb0_load_1min_267.rrd":load_1min:AVERAGE \
DEF:c="/var/www/html/cacti/rra/exdb0_load_5min_269.rrd":load_5min:MAX \
DEF:d="/var/www/html/cacti/rra/exdb0_load_5min_269.rrd":load_5min:AVERAGE \
DEF:e="/var/www/html/cacti/rra/exdb0_load_15min_268.rrd":load_15min:MAX \
DEF:f="/var/www/html/cacti/rra/exdb0_load_15min_268.rrd":load_15min:AVERAGE \
AREA:a#000000:"1 Minute Max" \
GPRINT:b:LAST:" Current\:%8.2lf %s\n" \
AREA:c#FF0000:"5 Minute Max" \
GPRINT:d:LAST:" Current\:%8.2lf %s\n" \
AREA:e#EA8F00:"15 Minute Max" \
GPRINT:f:LAST:"Current\:%8.2lf %s\n"
RRDTool Says:

OK

I believe it says this because it's reading the .rrd from yesterday at 1:45, which is when i attempted the cutover to cactid...it is not updating with any of the new data however, even though poller is gathering data
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

alright....crontab is still poller.php, and cactid is running nicely with the properly specified path...however, the .rrds are still not updating..they still have yesterday's time stamp...thanks for the help by the way...i'm not doing so hot losing all these graphs
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

So i've been reading of some problems with swithching poller tools (cmd.php and/or cactid) causing corrupt rrd directories and not being able to update them. The problem has been narrowed down to poller.php not updating my rrd directory. I am running CACTID 0.8.6i and whatever the newest version of cacti is at this point...how would i get these to start updating again
zkenton
Posts: 47
Joined: Fri Jun 29, 2007 2:22 pm

Post by zkenton »

So i've upgraded my rrdtool to 1.2.x, so everything should be the newest right now...no rrdtool updates
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

zkenton wrote:alright....crontab is still poller.php, and cactid is running nicely with the properly specified path...however, the .rrds are still not updating..they still have yesterday's time stamp...thanks for the help by the way...i'm not doing so hot losing all these graphs
Best try would be to login as cactiuser and run

Code: Select all

php -q poller.php
then. All rrdtool update errors (if any) should show up now. As they are going to STDERR, they usually do not show up in cacti.log.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests