RRDToll says: (main) rrdtool 2988 tty_list: allocate: ...

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

Moderators: Developers, Moderators

Post Reply
mvbueno
Posts: 3
Joined: Wed Dec 12, 2012 5:25 am

RRDToll says: (main) rrdtool 2988 tty_list: allocate: ...

Post by mvbueno »

Hi everyone,

Anyone can help me??. It is the first time I use Cacti. I installed following a tutorial in youtube, under Windows 7, I installed XAMPP, rdtool 1.2.5.1, etc. I have my computer connected to another router, both with SNMP configured. Anyhow, I try to plot the traffic of my computer and the graph is not plotted. In debug mode Cacti says

RRDToll says: (main) rrdtool 2988 tty_list: allocate: No tty allocated

When I try to plot the cpu usage of the router where I am connected to, Cacti says the same.

Cacti log has not any comment.

I don't know how to solve it. COuld you help me?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: RRDToll says: (main) rrdtool 2988 tty_list: allocate: ..

Post by BSOD2600 »

1) http://forums.cacti.net/viewtopic.php?f=3&t=11747 yet?
2) do you know if snmp is functional against the device you're graphing?
3) post a screenshot of what you mean.
mvbueno
Posts: 3
Joined: Wed Dec 12, 2012 5:25 am

Re: RRDToll says: (main) rrdtool 2988 tty_list: allocate: ..

Post by mvbueno »

Hi,

I read your advices. I tell you what I did:

I am woring under Windows 7.

First, I installed XAMPP: MySQL(v. 5.5.8), PHP (v. 5.3.5), Apache (v. 2.2.17), phpMyAdmin(3.3.9). Everything was right. under C:\xampp there are all the subdirectories (\apache, \php, \phpMyAdmin...)
Then, I downloaded rrdtool (v. 1.2.15) and I put it in C:\rrdtool
Then I downloaded Spine (v. 0.8.8a) and I put it in C\Spine, I modified the spine.conf.dist consequently.
I also downloead net-snmp, and it was installed in C:\usr\snmp. Note that I didn't configure anything about this tool
Then, I downloaded cacti (v. 0.8.8a), and I put the cacti directory in C:\xampp\htdocs\cacti, I imported cacti.sql, and so on. Everything was right. I configured consequently, checking paths, etc.
I didn't downloaded Cigwin, because it is an optional tool. And I don't know where I read that, if you have Spine installed, you don't need Cygwin.
Finally, I run CACTi for the first time, I created my single device (my PC) and I configure for creating a graphic of CPU-usage.

After that, I execute the poller.php, but there are no RRDsProcesses (it is 0).
There are no files in rra directory and in log file nothing strange appears.

At this point, I decided to take some time. After 30 minutes I decided to plot a graphic, but of course it doesn't work. RRDtool says as follows:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="localhost - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit="0" \
--vertical-label="percent" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="C\:/xampp/htdocs/cacti/rra/3/10.rrd":"cpu_system":AVERAGE \
DEF:b="C\:/xampp/htdocs/cacti/rra/3/11.rrd":"cpu_user":AVERAGE \
DEF:c="C\:/xampp/htdocs/cacti/rra/3/9.rrd":"cpu_nice":AVERAGE \
CDEF:cdefbc="TIME,1355855598,GT,a,a,UN,0,a,IF,IF,TIME,1355855598,GT,b,b,UN,0,b,IF,IF,TIME,1355855598,GT,c,c,UN,0,c,IF,IF,+,+" \
AREA:a#FF0000FF:"System" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FFFF:"User":STACK \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#00FF00FF:"Nice":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000FF:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
6 [main] rrdtool 5144 tty_list::allocate: No tty allocated
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: RRDToll says: (main) rrdtool 2988 tty_list: allocate: ..

Post by BSOD2600 »

1) where did you get rrdtool from? I'd recommend the win32 builds, NOT Cygwin.
2) if you manually run rrdtool at the commandline, any errors?
3) linux templates (like the one you're using for cpu usage) will not work against Windows.
mvbueno
Posts: 3
Joined: Wed Dec 12, 2012 5:25 am

Re: RRDToll says: (main) rrdtool 2988 tty_list: allocate: ..

Post by mvbueno »

1) where did you get rrdtool from? I'd recommend the win32 builds, NOT Cygwin.

I downloaded RRDtool-1.2.30-win32-perl510. Since, I needed Perl to install RRDtool, first, I checked if I could install with ActivePerl 5.14.2 but an error message appeared when I ran ppm install C:\rrdtool...\perl-shared\RRDs.ppd: "the PPD does not provide code to install for this platform".
I decided to install Strawberry Perl 5.8.9.4, just like some people in forums recomended. In this case, when I execute "ppm install...", there is an error installing the package: Read a PPD for "C:\rrdtool...\RRD.ppd", but it is not intended for this build of Perl (MSWin32-x86-multi-thread-5.8)
Note: I am working with Windows 7 O.S., maybe this is the problem, because I read in a forum that Pearl 5.8 is not for Windows 7

2) if you manually run rrdtool at the commandline, any errors?
I couldn't do it because RRDtool-1.2.30-win32-perl510 has not been sucessfully installed.

3) linux templates (like the one you're using for cpu usage) will not work against Windows.
OK

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

Re: RRDToll says: (main) rrdtool 2988 tty_list: allocate: ..

Post by BSOD2600 »

You dont need perl for rrdtool to function.

I've placed the rrdtool 1.4.5 build included with the Windows installer in http://www.cacti.net/downloads/packages/Windows/. You'll need the Microsoft Visual C++ 2008 Redistributable Package installed too.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests