Graphs not appearing

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

Moderators: Developers, Moderators

Post Reply
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Graphs not appearing

Post by fsd »

Hi,

Just installed and configured cacti (latest version) along with other appropriate software such as net-snmp/php etc. I have created a new device to monitor, and cacti reads the SNMP info from it ok, however it does not create any images when i go to view the graphs - see attached picture.

Thanks
Attachments
cacti.jpg
cacti.jpg (132.3 KiB) Viewed 2480 times
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

seem to have found something which may be causing it, part is in bold

Code: Select all

C:\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=-604800 \
--end=-1800 \
--title="localhost - Used Space - A:" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
[b]DEF:a="c\:\files\dev\cacti/rra/localhost_hdd_total_10.rrd":hdd_total:AVERAGE \
DEF:b="c\:\files\dev\cacti/rra/localhost_hdd_total_10.rrd":hdd_used:AVERAGE \[/b]
AREA:a#002A97:"Total"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:b#F51D30:"Used"  \
GPRINT:b:LAST:" Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" 

where it lists c:\:\files etc, obviously seems wrong..how change i change this setting?
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

after running what i posted above manually, it simply reports that it cannot find the rrd file. when checking the rra folder, there is only a .placeholder file. have tried deleting/readding device to no avail.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The default templates are for unix/linux machines. You need to 1) enable snmp on your Windoz box 2) Delete the localhost device 3) Add a new device utilizing snmp with host template "Windoz" 4) Create graphs.
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?
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

1) enable snmp on your Windoz box
Have done, i can query it without an issue.
2) Delete the localhost device
Have done.
3) Add a new device utilizing snmp with host template "Windoz"
Have done.
4) Create graph
Have done.

There is no errors/problems throughout the whole process, everything appears to have worked until it comes to viewing the graphs..

The post where i pasted code, the real hostname was replaced with localhost for security reasons, sorry if that caused confusion, i am definitely querying a LAN address, not localhost.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure your rrdtool version is correct: "Settings->General"

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?
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

Checked that, using rrdtool 1.2 and cacti is set to use 1.2 as well
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

Just to make things interesting, i installed and configured a new installation on a remote windows server 2003 box. followed the cacti.net install instructions, deleted localhost template, added a new device (which cacti retrieved the info from ok) told it to create the graphs, arranged them into the default tree. when viewing the graphs, they are listed, but there is no images to speak of, and nothing except .placeholder in c:/dev/www/cacti/rra/

either my config is screwed, or cacti has a nice big bug...suggestions are welcome
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Goto Settings->General and set logging to Debug. Then, when your scheduled poller task runs next you should be information in the Log. Post that data.

Optionally, you can simply run the following sequences of commands from a command line:

php <path_cacti>/cmd.php

and

php <path_cacti>/poller.php

Please also insure that your have the correct Paths under Settings->Paths that include the entire path including the file name/extension.

If you are runninng PHP 5.x, make sure that your setting for the PHP Path is PHP-WIN.EXE.

Last thing, make sure that you have the correct PHP Extensions loaded:

PHP -M

MySQL
Sockets
SNMP

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?
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

fixed it, going back to rrdtool 1.0.49 and changing cacti to use the correct version. When using rrdtool 1.2.10 it did not work at all, now rra files are created and graphs appear perfectly!
bsdsul
Posts: 2
Joined: Mon Jul 25, 2005 8:25 am

Having same problem

Post by bsdsul »

Hi guys, i'm having this problem in a FreeBSD Box.

Everything seems to be ok, but the graphs simply don't appear.

I instaled PHP, Mysql, net-snmp, rrdtool...

Now I'll check the modules as listed above, and then I'm thinking to reinstall PHP and RRDtool.

Thankx
<b>BSDSul</b>
<i>Jesus Christ, forever the Lord!</i><br \>
<i>FreeBSD, the true operating System!</i>
<i><b> Help the Pampa Republic to be independent!</i></b>
bsdsul
Posts: 2
Joined: Mon Jul 25, 2005 8:25 am

Problem continue

Post by bsdsul »

Hi, the problem is still boring me, i recompile from source php 5.0.4, and in the modules section it appears all the needed modules, mysql, sockets, snmp... now i will update the rrdtool, i think that it is the font of my problems... by the way, how i do the test to see what rrdtoll is doing... rrdtool info did'nt work
<b>BSDSul</b>
<i>Jesus Christ, forever the Lord!</i><br \>
<i>FreeBSD, the true operating System!</i>
<i><b> Help the Pampa Republic to be independent!</i></b>
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

http://forums.cacti.net/viewtopic.php?t=8598

suggest having a read of that..may help
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests