Strange Path in Cacti Log - SMTP ok, No Graphs

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

Moderators: Developers, Moderators

Post Reply
JasonMoyer
Posts: 5
Joined: Wed Sep 07, 2005 12:15 pm

Strange Path in Cacti Log - SMTP ok, No Graphs

Post by JasonMoyer »

I am gathing SMTP data, but I am not getting any graphs or RRA's created. When I look at the Cacti Log, I see the following:

09/07/2005 01:09:13 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1126026552 --end=1126112952 --title="YORS0201 - Used Space - Physical Memory" --rigid --base=1024 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/09/06 13\:09\:12 To 2005/09/07 13\:09\:12\c" COMMENT:" \n" --vertical-label="bytes" --slope-mode DEF:a="C\:\Apache\Apache2\htdocs\cacti/rra/yors0201_hdd_total_13.rrd":hdd_total:AVERAGE DEF:b="C\:\Apache\Apache2\htdocs\cacti/rra/yors0201_hdd_total_13.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"

That path is wrong:

a="C\:\Apache\Apache2\htdocs\cacti/rra

Where can I adjust that? I have been looking, but no dice. Thanks!

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

Post by rony »

That path will work in windows.
[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]
JasonMoyer
Posts: 5
Joined: Wed Sep 07, 2005 12:15 pm

Post by JasonMoyer »

Thanks for the quick response. I guess I am trying to narrow down why I am not getting any .rrd files generated. I can do a Verbose Query and get data back from the device. I am not even getting rrd's from the Localhost...I am going to fish around and see if there is a permissions issue, etc. I used the Windows Install doc that is on the site, but something isn't clicking...I have done a few installs on Fedora, but this is my first Windows install, and I am a Windows guy! :o

Any thoughts would be appreciated.

I am running Win2k3, no IIS, Apache 2.0.54, mySQL 4.1.14, php5.0.5, rrdtool 1.2.11 from Cacti.net, cacti 0.8.6f, cactid 0.8.6e

Thanks!
gashalot
Posts: 9
Joined: Wed Sep 07, 2005 3:04 pm

Another issue

Post by gashalot »

I am also seeing this issue... Here is one of the log lines from the poller, clearly it is trying to create the RRD file, but nothing is actually being created.

When I paste this into the command prompt it works just fine. What gives?

09/07/2005 04:02:07 PM - POLLER: Poller[0] CACTI2RRD: c:/netmon/rrdtool/rrdtool.exe create c:\netmon\cacti/rra/ncwilswjbdgrdista_traffic_in_45.rrd --step 300 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
JasonMoyer
Posts: 5
Joined: Wed Sep 07, 2005 12:15 pm

Post by JasonMoyer »

Rony, I think the Windows instructions are dated as well.

I would be happy to help throw together an updated verison for you guys. Maybe we can clean up the Apache vs IIS sections. The Linux side is very clean and simple to install. The Windows side should be just as easy.

Are you guys seeing any major differences between Win2k3 and previous versions? Out of the box, IIS6 should be locked down a little tighter than IIS5.

Just a thought. First things first, cleaning up this issue.

Gashalot, what versions are you running? Thanks!

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

Post by BSOD2600 »

gashalot: Does the user running the scheduled task for cacti have rights to create files in your rrd directory? What about read/execute rights on rrdtool.exe and cmd.exe ?
JasonMoyer
Posts: 5
Joined: Wed Sep 07, 2005 12:15 pm

Post by JasonMoyer »

BSOD,

I am running mine with a local admin on the machine and still see the same issue.

I am rebuilding a Win2k3 server right now in a VMWare session to start from scratch.

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

Post by BSOD2600 »

When you look at the debug log (turn the logging level to debug), do you see cacti collecting valid data or does it return U ?
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Best advice is to run the following sequence from the command line in DEBUG mode:

1) php <path_cacti>/cmd.php

2) php poller.php

In 1) you should get messages with valid data being polled
In 2) you should get a bunch of "Ok" messages

If you get no "Ok" messages and it appears to run error free:

3) mysql -u root -p cacti
>truncate table poller_output;
>quit

If 3) fixes your problem, increase you MAX memory in you PHP.INI file.

Larry
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?
gashalot
Posts: 9
Joined: Wed Sep 07, 2005 3:04 pm

Post by gashalot »

Guys:

After some more careful forum searching, I was able to narrow down my issue to the wrong version of RRD (RRD native, not the Cacti-compatible RRD Cygwin). Once I switched it out, the issue was resolved.

For the record I was on Cacti 0.8.6f + patches, Win2k, Apache 2.0.54, PHP 5.0.5, MySQL 4.1.14.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Glad to be of service. ;)

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?
User avatar
quirijn.taudinchabot@sand
Posts: 6
Joined: Wed Sep 14, 2005 4:01 am

Welll

Post by quirijn.taudinchabot@sand »

So, the topic's subject is describing my problem, but I dont get it to work...

I use WinXP, build in IIS, php, mysql and cactid all latest versions, rrdtool from the cactiwebsite, but still:

09/14/2005 12:31:14 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1126692074 --end=1126693874 --title="NLPSW5 - Traffic - Gi0/2" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend COMMENT:"From 2005-09-14 12\:01\:14 To 2005-09-14 12\:31\:14\c" COMMENT:" \n" --vertical-label="bytes per second" --slope-mode DEF:a="C\:/cacti/rra/nlpsw4_traffic_in_81.rrd":traffic_in:AVERAGE DEF:b="C\:/cacti/rra/nlpsw4_traffic_in_81.rrd":traffic_out:AVERAGE AREA:a#00CF00:"" COMMENT:"" LINE1:b#002A97:"" COMMENT:""

notice the strange path: C\:/****** , what is going wrong here??
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

There is nothing wrong with that path. Thats just the (odd) way rrdtool does it.

If cacti isn't collecting valid data for your graph(s) then you won't see anything being graphed.
User avatar
quirijn.taudinchabot@sand
Posts: 6
Joined: Wed Sep 14, 2005 4:01 am

Post by quirijn.taudinchabot@sand »

how can you tell it isnt collecting data? As you might notice, im a newbee to Cacti.
there's nothitng inside the cacti\rra directory exept for .placeholder.....

( I have created devices ( see it connects using SNMP), and told what to graph. I am sure theres data ( Its on of the most active interfaces on my switch) but nothing is being graphed, but get a red X)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Turn on debugging for logging in Cacti then look in your log file.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests