bennybasher
Joined: 09 Aug 2008 Posts: 1
|
Posted: Sat Aug 09, 2008 10:31 am Post subject: cacti on xampp problems |
|
|
Hi all,
I have installed xampp which is working great now that I've ironed out a number of initial installation problems on my Kubuntu box.
I managed to installed Cacti ok following the Cacti installation for Kubuntu guide. Check.
I can login as admin and following readme and howto's i can begin to start getting up the devices and create graphs.
However, I cannot seem to generate graphs. If I turn on debugging mode I get this feedback:
| Code: | RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/opt/lampp/htdocs/cacti/rra/localhost_mem_buffers_19.rrd":mem_buffers:AVERAGE \
DEF:b="/opt/lampp/htdocs/cacti/rra/localhost_mem_swap_20.rrd":mem_swap:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
AREA:cdefa#FF4105FF:"Free" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
AREA:cdefe#FFC73BFF:"Swap":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: opening '/opt/lampp/htdocs/cacti/rra/localhost_mem_buffers_19.rrd': No such file or directory |
If I check the poller.php from Konsole using $: php poller.ini... I get the following error:
| Code: | | FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php' |
Where am I going wrong? I'm tearing my hair out here!
Cheers |
|