Broken statisticimages and after klick - Empty graphik..

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

Moderators: Developers, Moderators

Post Reply
sim2k
Posts: 5
Joined: Thu Aug 04, 2005 6:44 am
Contact:

Broken statisticimages and after klick - Empty graphik..

Post by sim2k »

Hi,
i'm searching since a few of hours, but i can't find my problem....
..
cacti is connecting threw smtp
C\:\apache\xampp\htdocs\cacti/rra/localhost_hdd_total_20.rrd
The rrd files does exists...
RRDTool Says:

OK
c:/apache/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Used Space - A: Label:100GB" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
DEF:a="C\:\apache\xampp\htdocs\cacti/rra/localhost_hdd_total_20.rrd":hdd_total:AVERAGE \
DEF:b="C\:\apache\xampp\htdocs\cacti/rra/localhost_hdd_total_20.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"
where can i change this path??

So .. the graphic returns:
Attachments
stats.JPG
stats.JPG (23.62 KiB) Viewed 3485 times
Last edited by sim2k on Thu Aug 04, 2005 9:11 am, edited 1 time in total.
disorganizer
Cacti User
Posts: 68
Joined: Thu Aug 04, 2005 8:34 am

Post by disorganizer »

wow. i just wanted to post.... this is exactly the error i get when i try to access my graphs.
e:\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=1123075431 \
--end=1123161831 \
--title="rm2r01 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2005/08/03 15\:23\:51 To 2005/08/04 15\:23\:51\c" \
COMMENT:" \n" \
--vertical-label="percent" \
--slope-mode \
DEF:a="E\:\cacti/rra/rm2r01_5min_cpu_21.rrd":5min_cpu:AVERAGE \
AREA:a#FF0000:"CPU Usage" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf"
running on w2k3 with the most up to date files (installed monday).
collcting through cactid, rra's get created.

strange thing is though: my graph does not get created at all (ie shows broken graph symbol).
sim2k
Posts: 5
Joined: Thu Aug 04, 2005 6:44 am
Contact:

Post by sim2k »

disorganizer wrote:wow. i just wanted to post.... this is exactly the error i get when i try to access my graphs.

running on w2k3 with the most up to date files (installed monday).
collcting through cactid, rra's get created.

strange thing is though: my graph does not get created at all (ie shows broken graph symbol).
I think the next Failure is here:
--
DEF:a="E\:\cacti/rra/rm2r01_5min_cpu_21.rrd":5min_cpu:AVERAGE \
--
The "" in PHP skips the next letter - so it can't find the file..
But where can i change the adress url? I searched everywhere :-|
The files exists, but i can't read it..

---------------------- EDIT ----------------
Check your RRDtool version
just run the rrdtool in the commandline
--
check the version which is set in the webinterface under "Settings"
--
greetings sim
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yes, your problem is the double back slash being used in your path. I've seen this before, but offhand forget how it was fixed and can't find the post :-?

Go to your settings and paste all your paths.
sim2k
Posts: 5
Joined: Thu Aug 04, 2005 6:44 am
Contact:

Post by sim2k »

snmpwalk Binary Path
c:/apache/SNMP/bin/snmpwalk.exe
c:/apache/SNMP/bin/snmpget.exe
c:/apache/rrdtool/rrdtool.exe
c:/apache/xampp/php/php.exe
c:/apache/xampp/htdocs/cacti/log/cacti.log
c:/apache/cactid/cactid.exe
But i think it is NOT the Problem:
Because the URL is setted in the include/config.php line 58

Code: Select all

$config["base_path"] = ereg_replace("(.*)[\/\\]include", "\\1", dirname(__FILE__));
Outputs the
--
C:\apache\xampp\htdocs\cacti
--
after change to
C:/apache/xampp/htdocs/cacti
with

Code: Select all

$config["base_path"] = str_replace("\\","/",$config["base_path"]);
(insert the code in the next line)

It shows the Graphik, but it is empty! as the screenshot on top!
(Log url=
DEF:a="C\:/apache/xampp/htdocs/cacti/rra/localhost_hdd_total_20.rrd":hdd_total:AVERAGE \
disorganizer
Cacti User
Posts: 68
Joined: Thu Aug 04, 2005 8:34 am

Post by disorganizer »

rrdtool version: 1.2.10 (the one from the cacti website).
version set in cacti: 1.2

paths:
snmpwalk=e:\net-snmp\bin\snmpget.exe
snmpget=e:\net-snmp\bin\snmpget.exe
rrdtool=e:\rrdtool\rrdtool.exe
rrdtool-font=c:\windows\fonts\arial.ttf
php=e:\php\php.exe
log=e:\cacti\log\cacti.log
poller=e:\cactid\cactid.exe

the poller is set to cactid and to use icmp and snmp
i added a system variable RRD_DEFAULT_FONT=C:\WINDOWS\FONTS\ARIAL.TTF

rrdtool does create a graph when run directly from prompt (though it seems empty, but i will check on that problem later on my installation).

EDIT:
if fixed that problem.... i forgot to set the rights to cmd.exe in the system path because i thought if i place it into the cacti folder it will be run from there.

EDIT2:
now the graphs work perfectly :-) so my(!) problem was only a permission-problem. tnx anyways...

REQUEST:
wouldnt it make more sense to not let cacti directly access cmd.exe and instead let cacti use a cmd.exe which can be copied to some defined place?
also, is cmd.exe really needed to run rrdtool? i only wonder because im using routers.cgi at the moment, and with that i do not have to set permissions to cmd.exe for the iusr.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

For my cacti web site, I created a seperate user, which I gave rights to cmd.exe along with the cacti files. IUSR has no rights to these files. Not the best, but it keeps things a little bit seperated.
sim2k
Posts: 5
Joined: Thu Aug 04, 2005 6:44 am
Contact:

Post by sim2k »

The Threads of the CMD :
C:\apache\xampp\php\php.exe c:\apache\xampp\htdocs\cacti\cmd.php
are N/A:
#!/usr/bin/php -q
08/05/2005 11:55:03 - CMDPHP: Poller[0] Time: 2.8666 s, Threads N/A, Hosts: 1
is this normal?
----------------------------
Cactid returns:
Notification LOG MIB: Module not Found
NET-SNMP-Agent-MIB: Module not Found
---------------------------
The Mibs are @ C:\USR\mibs
is this right?


thx sim
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

Code: Select all

Maximum Threads per Process
The maximum threads allowed per process. Using a higher number when using cactid will improve performance. NOTE Applies only to CACTID!
Are you using cmd.php or cactid ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please note that in rrdtool the syntax "C\:\myfolder/whatever.rrd" is expected.

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?
sim2k
Posts: 5
Joined: Thu Aug 04, 2005 6:44 am
Contact:

Post by sim2k »

TheWitness wrote:Please note that in rrdtool the syntax "C\:\myfolder/whatever.rrd" is expected.

TheWitness
DEF:a="C\:/apache/xampp/htdocs/cacti/rra/localhost_hdd_total_20.rrd":hdd_total:AVERAGE \
DEF:b="C\:/apache/xampp/htdocs/cacti/rra/localhost_hdd_total_20.rrd":hdd_used:AVERAGE \
Is ok :-)

But - Log:
08/06/2005 11:10:28 AM - WEBLOG: Poller[0] CACTI2RRD: c:/apache/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1123233026 --end=1123319426 --title="Localhost - Memory Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/08/05 11\:10\:26 To 2005/08/06 11\:10\:26\c" COMMENT:" \n" --vertical-label="bytes" --slope-mode DEF:a="C\:/apache/xampp/htdocs/cacti/rra/localhost_mem_free_19.rrd":mem_free:AVERAGE DEF:b="C\:/apache/xampp/htdocs/cacti/rra/localhost_mem_buffers_17.rrd":mem_buffers:AVERAGE DEF:c="C\:/apache/xampp/htdocs/cacti/rra/localhost_mem_cache_18.rrd":mem_cache:AVERAGE CDEF:cdefa=a,1024,* CDEF:cdefe=b,1024,* CDEF:cdefi=c,1024,* AREA:cdefa#8F005C:"Memory 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#FF5700:"Memory Buffers":STACK GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" AREA:cdefi#FFC73B:"Cache Memory":STACK GPRINT:cdefi:LAST:" Current\:%8.2lf %s" GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s\n"
is this ok?=

i tried cactid and poller.php
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests