new user problem generating graphs

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

Moderators: Developers, Moderators

kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

new user problem generating graphs

Post by kvnflynn »

I'm new to both Cacti and rrdtool so please go easy on me...

I'm trying to make sure I understand the overall processes involved here. Basically Cacti uses snmpwalk, snmpget and such to grab snmp data from my router. It then creates a file in the 'usr/local/raa' folder. Then rrd is run on this file to generate a graph. Is this correct?

I have verified that snmp is working by running snmpwalk from the command line.
However, I do not see any files being generated in the raa folder. Am I even on the right path???

thanks,

kevin
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

See last two links of my signature as a start
Reinhard
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

checking them now. thanks.
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

I read the howto for "Data input method" and it helped me quite a bit. However, everything seemed to work just fine until I got to the last step of displaying the ping information. when I click on the graph I literally get no data. Not even the x and y axis grid.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post a screenshot of this. You may select the "weird" graph and find a wrench next to the next graphs. Click it and post the rrdtool graph statement found
Reinhard
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

here is a cut & paste of the rrdtool graph statement
**********************************************************************
**********************************************************************
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="VDR Router - Test ping" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="ms" \
--slope-mode \
DEF:a="/usr/local/downloads/cacti-0.8.6h/rra/vdr_router_time_20.rrd":time:AVERAGE \
AREA:a:"RTT" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
**********************************************************************
**********************************************************************
Attachments
mydump.jpg
mydump.jpg (77.24 KiB) Viewed 2229 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Do you have rrdtool 1.2.x installed? Check this by running

Code: Select all

rrdtool --version
Goto Graph Management, select this graph and turn on DEBUG mode (at the top of the page). Is there any error displayed?
Reinhard
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

version is RRDtool 1.2.13

when I run debug i get the following:

RRDTool Says:

ERROR: Legend set but no color: RTT


Thanks again for help.

Kevin
Attachments
mydump.jpg
mydump.jpg (146.3 KiB) Viewed 2220 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

kvnflynn wrote: RRDTool Says:

ERROR: Legend set but no color: RTT
Shame on me, should have seen that from the above. To cure this: Goto the Graph Template, select the Graph Item that shows the AREA and select a color for this. Then, please retry
Reinhard
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

Well of course ;)

Now it appears that there is no .rrd file being created iin the directory for the tool to select. In other words, there are no files in the /rra/ directory.


RRDTool Says:

ERROR: opening '/usr/local/downloads/cacti-0.8.6h/rra/vdr_router_time_20.rrd': No such file or directory
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

This is the last item in my Poller Cache if that helps.


Data Source: VDR Router - ping
RRD: /usr/local/downloads/cacti-0.8.6h/rra/vdr_router_time_20.rrd
Action: 1, Script: perl /usr/local/downloads/cacti-0.8.6h/scripts/ping.pl 10.6.200.1
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You've followed the install instructions at http://www.cacti.net/downloads/docs/htm ... _unix.html? When running the latest cactid poller, you must replace all perl calls by /full/path/to/perl.
If nothing helps, please login as cactiuser, cd to cacti's directory and run

Code: Select all

php poller.php
and watch out for errors
Reinhard
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

Reinhard,
thanks for the persistant help. It appears that it was just a permissions problem. I could run the poller.php as root, but did not have permissions for cactiuser. once I changed that I can get the graph to display, no problem.

Thanks much.

Kevin
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

Well... i lied.

I thought it was working, but really it only displayed the information from when I ran poller.php from the command line. It appears that poller.php and ping.pl are not being periodocally ran to update my rdd files. Where can I check this? Under Collection Methods?

thanks
Attachments
mydump.jpg
mydump.jpg (164.2 KiB) Viewed 2141 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

PLease post the pollers entry you've made in cronatb as stated by the installation instructions I've linked above
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests