Graph Problem

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

Moderators: Developers, Moderators

filipe.montenegro
Posts: 7
Joined: Thu Jul 05, 2007 9:47 am

Graph Problem

Post by filipe.montenegro »

I have instaled Cacti on my windows server but i cant see the graphs, i am a new user so i dont now how to resolve it.

The annex shows how the graphs look likes.

Please help me.

Im from Brazil, sorry for my english.
Attachments
Graph images
Graph images
gra.JPG (18.98 KiB) Viewed 4481 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Moved to Windows forum.

Please confirm that you have rrdtool installed and the path is correctly set in the Cacti Settings.
[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]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

filipe.montenegro
Posts: 7
Joined: Thu Jul 05, 2007 9:47 am

Post by filipe.montenegro »

I have the rrdtool instaled and the version and the paths in the settings of cactis are ok.

I checked all the files and folders pemissions again and its ok.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) Do you have RRD files in the <path_cacti>/rra folder?
2) What happens when you goto Graph Management, view a Graph and then Press the "Debug" link?

Based upon that investigation, reread BSOD's post.

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?
filipe.montenegro
Posts: 7
Joined: Thu Jul 05, 2007 9:47 am

Post by filipe.montenegro »

1) Only one file: .placeholder. No rrd files.

2)
RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="localhost - Used Space - C: Label: Seri" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/localhost_hdd_total_8.rrd":hdd_total:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/localhost_hdd_total_8.rrd":hdd_used:AVERAGE \
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"
RRDTool Says:

ERROR: opening 'C:/Inetpub/wwwroot/cacti/rra/localhost_hdd_total_8.rrd': No such file or directory
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please login as the poller user and then run the following command:

Code: Select all

cd \Inetpub\wwwroot\cacti
php -q poller.php
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?
chrispel
Posts: 34
Joined: Wed Jun 27, 2007 11:33 am

Post by chrispel »

I'm getting that same error message and just tried to run php -q poller.php.


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.


C:\Inetpub\wwwroot\cacti>php -q poller.php
07/06/2007 01:04:42 PM - SYSTEM STATS: Time:7.0801 Method:cmd.php Processes:1 Th
reads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:0



When debug is turned on

RRDTool Says:

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


When I look for any files in that directory I only see .placeholder. I have tried to update php 5.2.1 to 5.2.3
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Look at this. I think you should do the following with logging at MEDIUM:

php -q <path_cacti>/cmd.php

Then, verify that your Settings->Paths properly shows the rrdtool.exe path including the file name. It would appear that for some reason it is not being called, or can not be called.

BSOD, typically recommends filemon from sysinternals.com, recently acquired by Microsoft, to debug permissions problems.

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?
filipe.montenegro
Posts: 7
Joined: Thu Jul 05, 2007 9:47 am

Post by filipe.montenegro »

Please login as the poller user and then run the following command:

Code:
cd \Inetpub\wwwroot\cacti
php -q poller.php


TheWitness
I did it and thats the result:

C:\Inetpub\wwwroot\cacti>php -q poller.php
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
07/06/2007 04:38:57 PM - SYSTEM STATS: Time:4.4130 Method:cmd.php Processes:1 Th
reads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:0


I have tried the sysinternals.com and i dont have any access denied on it, so a think its not a permission problem right?


What i have to do?
Last edited by filipe.montenegro on Fri Jul 06, 2007 2:43 pm, edited 2 times in total.
chrispel
Posts: 34
Joined: Wed Jun 27, 2007 11:33 am

Post by chrispel »

C:\Inetpub\wwwroot\cacti>php -q poller.php
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
07/06/2007 03:36:09 PM - SYSTEM STATS: Time:7.0443 Method:cmd.php Processes:1 Th
reads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:0
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please reread my post. I need you to run cmd.php and not poller.php.

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?
chrispel
Posts: 34
Joined: Wed Jun 27, 2007 11:33 am

Post by chrispel »

C:\Inetpub\wwwroot\cacti>php -q cmd.php
07/09/2007 08:06:29 AM - CMDPHP: Poller[0] Time: 5.8745 s, Theads: N/A, Hosts: 4
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Closer, now your need to run in MEDIUM log level per my original post :(

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?
SittingDuck
Posts: 9
Joined: Fri Jul 20, 2007 9:18 pm

Post by SittingDuck »

I've got the exact same problem. When I run cmd.php directly I get the error:
07/22/2007 12:38:53 PM - CMDPHP: Poller[0] ERROR: The PHP Script: CMD.PHP Must be started using the full path to the file and in lower case. This is a PHP Bug!!!
I've changed logging to medium FYI.

When running with Cactid as the poller I get the following in the log:
07/22/2007 12:46:46 PM - SYSTEM STATS: Time:292.2244 Method:cactid Processes:5 Threads:20 Hosts:3 HostsPerProcess:1 DataSources:14 RRDsProcessed:0
07/22/2007 12:46:46 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
Please see my origional post for additional information:

http://forums.cacti.net/viewtopic.php?t=22448
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests