[solved] Cacti not generating graphs

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
noshybabs
Posts: 29
Joined: Wed Sep 02, 2009 8:38 am

[solved] Cacti not generating graphs

Post by noshybabs »

Hi everyone,

Let me start by saying im a complete noob with cacti. Ive used it quite a few times to diagnose problems and think its great, but ive never had the plesure of installing it before, so im sorry if my issue is something obvious.

I dont seem to be getting graphs generated in cacti. If you go to the page you just get the little red cross.

I looked at the config of one of the graphs in debug mode and i get this

RRDTool Command:

C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Leeds-Vapp01 - Processes" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="processes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/leeds-vapp01_proc_9.rrd":proc:AVERAGE \
AREA:a#942D0CFF:"Running Processes" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"
RRDTool Says:

ERROR: opening 'C:/Inetpub/wwwroot/cacti/rra/leeds-vapp01_proc_9.rrd': No such file or directory


Does anyone have any ideas as to what i can do?

Thanks

Noshybabs
noshybabs
Posts: 29
Joined: Wed Sep 02, 2009 8:38 am

Post by noshybabs »

Im so confused, it looks like the graphs are being generated, but there is nothing in the RRA folder?

COuld it be that the data isnt present?

09/02/2009 03:22:45 PM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1251814965 --end=1251901365 --title="localhost - Processes" --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend COMMENT:"From 2009/09/01 15\:22\:45 To 2009/09/02 15\:22\:45\c" COMMENT:" \n" --vertical-label="processes" --slope-mode --font TITLE:8.4: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="C\:/Inetpub/wwwroot/cacti/rra/localhost_proc_8.rrd":proc:AVERAGE AREA:a#F51D30FF:""
09/02/2009 03:22:45 PM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1251814965 --end=1251901365 --title="Leeds-Vapp01 - Used Space - Physical Memory" --rigid --base=1024 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend COMMENT:"From 2009/09/01 15\:22\:45 To 2009/09/02 15\:22\:45\c" COMMENT:" \n" --vertical-label="bytes" --slope-mode --font TITLE:8.4: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="C\:/Inetpub/wwwroot/cacti/rra/3/10.rrd":hdd_total:AVERAGE DEF:b="C\:/Inetpub/wwwroot/cacti/rra/3/10.rrd":hdd_used:AVERAGE AREA:a#002A97FF:"" AREA:b#F51D30FF:""
noshybabs
Posts: 29
Joined: Wed Sep 02, 2009 8:38 am

Post by noshybabs »

Ive fixed it.

It was something very easy. the scheduled task didnt have permission to run...D'oh!
3zzi32009
Posts: 16
Joined: Mon Aug 24, 2009 3:21 am

Post by 3zzi32009 »

I am having the same problem, exact same situation. Where did you change the permission from to allow the scheduled task to run???

Kind Regards
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Likely by editing the scheduled task. If you turn log to MEDIUM, you should see log messages rolling into the Cacti log. If not, then your scheduled task is not running. In addition, if it's running and you are not getting your RRDfiles either created/updated, then it's a file permissions problem.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
3zzi32009
Posts: 16
Joined: Mon Aug 24, 2009 3:21 am

Post by 3zzi32009 »

OK, turned it to medium, have checked cacti log files and have noticed the only actions logged are the ones I tried running manually so it is not running the scheduled tasks, however I can't seem to find the place to set the scheduled tasks.

Sorry about this, but where can I start or adjust the scheduled tasks??
:oops:

Thanks
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Use Google. There are millions of examples as to how to do such a thing. True Understand Begins... If you don't conquer your lack of understanding by first learning, you will never be happy with Cacti or anything else in life. Life and/or Cacti is not spoon fed. For Cacti, we give you the spoon, you have to eat.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
3zzi32009
Posts: 16
Joined: Mon Aug 24, 2009 3:21 am

Post by 3zzi32009 »

Thank you. I have adjusted the poller interval timing but it isn't running as scheduled. I thought there might be some where else to adjust the scheduled tasks.

But thank you, sometimes I do get lazy and need to be told to think a bit harder so I will but if I get no where I shall be back.

Top man :wink: :D
3zzi32009
Posts: 16
Joined: Mon Aug 24, 2009 3:21 am

Post by 3zzi32009 »

Found the problem, it was that the slashes were the wrong way round under the paths tab in the settings.

They were forward slashes instead of backslashes. This was the problem, but I didn't think it was because it was saying "path found" under each field so I didn't think it mattered.

Ran the poller.php and php.exe files manually and it has now created the graphs in the rra directory. Thanks for all the help
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests