Another 'no graphs' thread

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

Moderators: Developers, Moderators

koncha
Posts: 1
Joined: Wed Jun 01, 2005 10:28 am

Another 'no graphs' thread

Post by koncha »

I would like to apologize if this has been fixed. I did the search and spent several hours reading and was unable to come up with a solution. Hopefully you all can help.

This is a small trial for us which we will port to a *nix machine, depending on the outcome.

Here is the info:

Windows XP SP1
IIS 5.1
MySQL 4.1
net-snmp-5.2.1
PHP 5.0.4
Cacti-0.8.6d

So my problem is that I can't get any graphs to display. Just red 'X'es. I have gone through all of the permissions (I think) and set them to everyone has full control. I have some .rrd files in the \rra folder but the time stamp on them doesn't seem to be advancing.

I have an image of what I get.

nograph.JPG

Any ideas?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

In Cacti | Settings | general | Poller Logging Level. Change to debug for one cycle and post the output.
Jerry^
Posts: 7
Joined: Thu Jun 02, 2005 4:46 am
Location: France, Besançon
Contact:

I have exactly the same problem

Post by Jerry^ »

My log file (only one graph):


06/02/2005 11:47:49 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1117703868 --end=1117705668 --title="FVS338 - Traffic - 127.0.0.1 (lo)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/06/02 11\:17\:48 To 2005/06/02 11\:47\:48\c" COMMENT:" \n" --vertical-label="bytes per second" DEF:a="c\:\program files\easyphp1-8\www/rra/fvs338_traffic_in_11.rrd":traffic_in:AVERAGE DEF:b="c\:\program files\easyphp1-8\www/rra/fvs338_traffic_in_11.rrd":traffic_out:AVERAGE AREA:a#00CF00:"Inbound" GPRINT:a:LAST:" Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" LINE1:b#002A97:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s"
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Jerry^: dont highjack others threads. Start your own since your problem is most likely a different one.
Jerry^
Posts: 7
Joined: Thu Jun 02, 2005 4:46 am
Location: France, Besançon
Contact:

Post by Jerry^ »

BSOD2600 wrote:Jerry^: dont highjack others threads. Start your own since your problem is most likely a different one.
I reapeat : I have exactly the same problem
(see the subject of my first post) :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Then the same goes for you. Post the debug log of cacti.
Jerry^
Posts: 7
Joined: Thu Jun 02, 2005 4:46 am
Location: France, Besançon
Contact:

Post by Jerry^ »

BSOD2600 wrote:Then the same goes for you. Post the debug log of cacti.
See my my first post lol. I have already posted the debug log (for one graph only).

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

Post by rony »

If you run

Code: Select all

c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1117703868 --end=1117705668 --title="FVS338 - Traffic - 127.0.0.1 (lo)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/06/02 11\:17\:48 To 2005/06/02 11\:47\:48\c" COMMENT:" \n" --vertical-label="bytes per second" DEF:a="c\:\program files\easyphp1-8\www/rra/fvs338_traffic_in_11.rrd":traffic_in:AVERAGE DEF:b="c\:\program files\easyphp1-8\www/rra/fvs338_traffic_in_11.rrd":traffic_out:AVERAGE AREA:a#00CF00:"Inbound" GPRINT:a:LAST:" Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" LINE1:b#002A97:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s"
from the command line, what happens?
[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]
Jerry^
Posts: 7
Joined: Thu Jun 02, 2005 4:46 am
Location: France, Besançon
Contact:

Post by Jerry^ »

Result :

ERROR: opening 'c:\program files\easyphp1-8\www/rra/fvs338_traffic_in_11.rrd': No such file or directory


There is only one file in the rra folder : .placeholder

:)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You have no rrd file because rrdtool has not collected any valid data.

1) Turn logging to DEBUG
2) Open a command window
3) Change Directories into your Cacti root
4) run "php <path_cacti>/cmd.php
5) post output
Jerry^
Posts: 7
Joined: Thu Jun 02, 2005 4:46 am
Location: France, Besançon
Contact:

Post by Jerry^ »

Thanks for your help, BSOD2600

1) Done
2) Done
3) Not cacti root... but php root I think .. Done
4) Done
5)

C:\PROGRA~1\EasyPHP1-8\php>php c:\progra~1\easyphp1-8\www\cmd.php
#!/usr/bin/php -q

06/03/2005 11:43:58 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP

06/03/2005 11:43:58 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
'perl' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.

06/03/2005 11:43:58 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:

06/03/2005 11:43:58 PM - CMDPHP: Poller[0] Host[1] CMD: perl c:\program files\easyphp1-8\www/scripts/linux_memory.pl SwapFree:, output: U
'perl' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.

06/03/2005 11:43:59 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:

06/03/2005 11:43:59 PM - CMDPHP: Poller[0] Host[1] CMD: perl c:\program files\easyphp1-8\www/scripts/linux_memory.pl MemFree:, output: U 'perl' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.

06/03/2005 11:43:59 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:

06/03/2005 11:43:59 PM - CMDPHP: Poller[0] Host[1] CMD: perl c:\program files\easyphp1-8\www/scripts/loadavg_multi.pl, output: U
'-O' n'est pas reconnu en tant que commande interne
ou externe, un programme excutable ou un fichier de commandes.

06/03/2005 11:43:59 PM - CMDPHP: Poller[0] Host[2] SNMP: Host did not respond to SNMP

06/03/2005 11:43:59 PM - CMDPHP: Poller[0] Time: 0.4579 s, Theads: N/A, Hosts: 2


C:\PROGRA~1\EasyPHP1-8\php>



Does I need perl ? :/
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

you must start it in your cacti root. If you dont have your php.exe in your system path, then you'll need to include that too when running. ex:
c:\webroot\cacti\> c:\php\php c:\webroot\cacti\cmd.php
Jerry^
Posts: 7
Joined: Thu Jun 02, 2005 4:46 am
Location: France, Besançon
Contact:

Post by Jerry^ »

Aaah ::


Then... 5)

C:\PROGRA~1\EasyPHP1-8\www> c:\progra~1\easyphp1-8\php\php.exe c:\progra~1\easyphp1-8\www\cmd.php


Same result than before.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Cacti does not work with spaces in the path (not sure though about using the 8.3 method). Thats possibly the cause of your problem.

Yes, you need perl installed for pl scripts.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The perl scripts are the default for a Linux/Unix host. Try the interface graphs see if Cacti will graph them.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest