Device, graphs don't show up in default tree

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

Moderators: Developers, Moderators

Post Reply
radknee
Posts: 23
Joined: Tue Jan 25, 2005 10:50 pm

Device, graphs don't show up in default tree

Post by radknee »

Just installed cacti today. My main reason for doing so is to monitor switch port traffic on a Foundry FWS24.

Was able to add the device ok. Followed instructions in the FAQ for 'How do I create traffic graphs?'. Selected interfaces, selected a graph type, and created the graph.

I can see the graph under 'Graph management'. After clicking on the graph link I see a 'missing image' icon on the page, so I assume the graph is missing.

I tried adding the graph to the default tree, but when I go to 'Graphs' all I see is localhost under default tree.

I'm using php 5.0.2 on Mac OSXS 10.3.4.

Not sure where to go from here; any help is appreciated.
Randall Perry
sysTame

Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales

http://www.systame.com/
Jdude
Posts: 24
Joined: Mon Jan 24, 2005 10:49 am
Location: Cork Ireland
Contact:

Post by Jdude »

I have the exact same Problem On a windows 2003 server

Driving Me crazy

If you find a resolution please let me know

Jdude
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Are you running poller.php every 5 minutes from cron/scheduler?

And if so, have you confirmed the permissions of the rra and logs directory, so that the user that runs poller.php has the permissions to read/write those directories?
[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]
Jdude
Posts: 24
Joined: Mon Jan 24, 2005 10:49 am
Location: Cork Ireland
Contact:

Post by Jdude »

php poller seems to run

Nothing appears Is rral and Logs directories

Cacti.log Is 0 mb

The user that is running the php is the local system administrator He has rights to everything

Am i missing something
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Set the Poller to debug logging mode.

Configuration -> Settings -> General -> Poller Logging = Debug

Then run poller.php from the command line and post the output to the forums. If it's to long, you can always email it to me.
[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]
radknee
Posts: 23
Joined: Tue Jan 25, 2005 10:50 pm

Post by radknee »

Got my graphs working by fixing the crontab command. I originally dropped this in from the manual:
*/5 * * * * cactiuser php /Users/systame/www/cacti/poller.php > /dev/null 2>&1

It doesn't work under OSXS (BSD variant). Works ok if I remove the user, running as root cron tab:
*/5 * * * * php /Users/systame/www/cacti/poller.php > /dev/null 2>&1

But, in Graphs -> Tree Mode, the Foundry switch still doesn't show as a device under default tree, though it does show up in Console -> Graph Trees -> (Edit).
Randall Perry
sysTame

Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales

http://www.systame.com/
Jdude
Posts: 24
Joined: Mon Jan 24, 2005 10:49 am
Location: Cork Ireland
Contact:

Post by Jdude »

C:\php>php.exe c:\apache2\apache2\htdocs\cacti\poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.10

<br><strong>This script is only meant to run at the command line.</stron
C:\php>


this is what i get Pller is in debug Mode
Jdude
Posts: 24
Joined: Mon Jan 24, 2005 10:49 am
Location: Cork Ireland
Contact:

Post by Jdude »

Output of cacti log as shown

I have installed cacti on a brand new server and the same thing happens

Nothing in rra directory .After turning on debugging .This is what is in cacti log file

Poller is running ok

Grpahs still displaying Thumnails .This must be something Simpe
I created a local user and has apache mysql and poller run as it but still no luck aHHHHHHHHHHHHHHHH



DEF:b="C\:\Apache2\htdocs\cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE DEF:c="C\:\Apache2\htdocs\cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE CDEF:cdefg=TIME,1106829670,GT,a,a,UN,0,a,IF,IF,TIME,1106829670,GT,b,b,UN,0,b,IF,IF,TIME,1106829670,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#EACC00:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" STACK:b#EA8F00:"5 Minute Average" GPRINT:b:LAST:" Current\:%8.2lf\n" STACK:c#FF0000:"15 Minute Average" GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000:""
01/27/2005 12:46:14 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1106743573 --end=1106829973 --title="Localhost - Logged in Users" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/01/26 12:46:13 To 2005/01/27 12:46:13\c" COMMENT:"\n" --vertical-label="users" DEF:a="C\:\Apache2\htdocs\cacti/rra/localhost_users_6.rrd":users:AVERAGE AREA:a#4668E4:"Users" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

There is more in that log, I need to see it.

I'm concerned why the command line thinks it's being run from the webserver. Have you altered the enviroment variables on that server?
[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]
radknee
Posts: 23
Joined: Tue Jan 25, 2005 10:50 pm

Post by radknee »

Got my graphs working as I said above, but my switch still doesn't show in default tree. Not a huge issue but if anyone has a fix...


BTW, I'm so happy to see my switch traffic in graphs (after having researched many other apps including mrtg, cricket, and some commercial offerings) that I made a small donatian :D

Thank y'all for Cacti -- great app.
Randall Perry
sysTame

Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales

http://www.systame.com/
radknee
Posts: 23
Joined: Tue Jan 25, 2005 10:50 pm

Post by radknee »

radknee wrote:Got my graphs working as I said above, but my switch still doesn't show in default tree.
I figured it out. I was adding the switch to the default tree as a graph. When I added it as a device it showed up.
Randall Perry
sysTame

Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales

http://www.systame.com/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests