Device, graphs don't show up in default tree
Moderators: Developers, Moderators
Device, graphs don't show up in default tree
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.
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/
sysTame
Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales
http://www.systame.com/
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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?
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
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).
*/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/
sysTame
Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales
http://www.systame.com/
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" GPRINTLAST:" Current\:%8.2lf\n" STACK:b#EA8F00:"5 Minute Average" GPRINTLAST:" 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" GPRINTLAST:"Current\:%8.0lf" GPRINTAVERAGE:"Average\:%8.0lf" GPRINTMAX:"Maximum\:%8.0lf"
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" GPRINTLAST:" Current\:%8.2lf\n" STACK:b#EA8F00:"5 Minute Average" GPRINTLAST:" 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" GPRINTLAST:"Current\:%8.0lf" GPRINTAVERAGE:"Average\:%8.0lf" GPRINTMAX:"Maximum\:%8.0lf"
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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?
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]
[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]
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
Thank y'all for Cacti -- great app.
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
Thank y'all for Cacti -- great app.
Randall Perry
sysTame
Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales
http://www.systame.com/
sysTame
Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales
http://www.systame.com/
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.radknee wrote:Got my graphs working as I said above, but my switch still doesn't show in default tree.
Randall Perry
sysTame
Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales
http://www.systame.com/
sysTame
Xserve Web Hosting/Co-location
WebObjects Hosting
Mac Consulting/Sales
http://www.systame.com/
Who is online
Users browsing this forum: No registered users and 2 guests