No rrd files created so obviously no graphs

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

Moderators: Developers, Moderators

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

Post by BSOD2600 »

Well if the user running the scheduled task is different from the one you ran the rrdtool create command, which worked then yes, you do have a permission problem. Make sure the scheduled task user has read/execute rights on rrdtool.exe and create/append rights to /rrd and /log folders.
lightningbit
Posts: 26
Joined: Fri Sep 30, 2005 4:23 am

Post by lightningbit »

BSOD2600 wrote:Well if the user running the scheduled task is different from the one you ran the rrdtool create command, which worked then yes, you do have a permission problem. Make sure the scheduled task user has read/execute rights on rrdtool.exe and create/append rights to /rrd and /log folders.
ah but that is exactly the strange issue
the files are even not created when I run the "poller.php" with my userid... the same userid I used to run the command (rrdtool create ....) manually :cry:


so with my userid (who is administrator of the box)
- I run a single rrdtool create command manually --> files are created
- I run the poller.php .... --> no rrdfiles created/updated

there is error I saw flashing over the screen during the poller.php (I think before it calls cactid...

"cannot change to root... command not supported by OS..."
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Odd.

1) So you're using cactid? What version?
2) You've turned the logging level in cacti to debug for a cycle and looked to make sure cacti is collecting valid data?
3) You happen to have several cygwin1.dll's floating around on your system?
lightningbit
Posts: 26
Joined: Fri Sep 30, 2005 4:23 am

Post by lightningbit »

BSOD2600 wrote:Odd.

1) So you're using cactid? What version?
2) You've turned the logging level in cacti to debug for a cycle and looked to make sure cacti is collecting valid data?
3) You happen to have several cygwin1.dll's floating around on your system?

1) I used the previous version, yesterday I started with the recently released version (8.6.f) same thing
2) yes I did... was posted above here a few posts earlier... it seems to be collecting valid data
3) yes I have but they are all the same version : 1005.18.0.0



I do get this error when I start poller.php

D:\Wwwroot\cacti>php poller.php
10/12/2005 11:17:39 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:\cactid\cactid.exe, ARGS: 0 0]
10/12/2005 11:17:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:\cactid\cactid.exe, ARGS: 3 3]
10/12/2005 11:17:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:\cactid\cactid.exe, ARGS: 4 4]
10/12/2005 11:17:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:\cactid\cactid.exe, ARGS: 5 5]
10/12/2005 11:17:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:\cactid\cactid.exe, ARGS: 6 6]
10/12/2005 11:17:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:\cactid\cactid.exe, ARGS: 7 7]
10/12/2005 11:17:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:\cactid\cactid.exe, ARGS: 8 8]
10/12/2005 11:17:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: d:\cactid\cactid.exe, ARGS: 9 9]
Waiting on 8/8 pollers.
ERROR: change root is not supported by your OS or at least by this copy of rrdtool
Waiting on 8/8 pollers.
Waiting on 8/8 pollers.
Waiting on 8/8 pollers.
Waiting on 7/8 pollers.
lightningbit
Posts: 26
Joined: Fri Sep 30, 2005 4:23 am

some extra logging I could capture

Post by lightningbit »

below is some extra logging I could capture:
CACTID: Using cactid config file [cactid.conf]
CACTID: DEBUG: The path_php_server variable is d:/Wwwroot/cacti/script_server.php
CACTID: DEBUG: The path_cactilog variable is D:\Wwwroot\cacti\log\cacti.log
CACTID: DEBUG: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is d:\php\php.exe
CACTID: DEBUG: The availability_method variable is 1
CACTID: DEBUG: The ping_recovery_count variable is 3
CACTID: DEBUG: The ping_failure_count variable is 2
CACTID: DEBUG: The ping_method variable is 1
CACTID: DEBUG: The ping_retries variable is 1
CACTID: DEBUG: The ping_timeout variable is 400
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: The log_pwarn variable is 1
CACTID: DEBUG: The log_pstats variable is 1
CACTID: DEBUG: The threads variable is 1
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: The number of concurrent processes is 1
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: StartHost='0', EndHost='9', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: The Maximum SNMP OID Get Size is 50
CACTID: CACTID: Version 0.8.6f starting
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'mgtserver03'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'mgtserver03'...
CACTID: CACTID: Initializing Net-SNMP API
No log handling enabled - turning on stderr logging
NONE: Module not found

CACTID: CACTID: Initializing PHP Script Server
CACTID: DEBUG: Parent pid=2576, Script Server pid=0
CACTID: DEBUG: Initial Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'mgtserver03'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'mgtserver03'...
CACTID: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'mgtserver03'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'mgtserver03'...
CACTID: Host[4] PING Result: ICMP: Host is Alive
CACTID: Host[4] SNMP Result: Host responded to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='0000-00-00 00:00:00',status_rec_date='20
05-09-30 12:12:00',status_last_error='SNMP not performed due to setting or ping result,',min_time='0.999930',max_time='16.500110',cu
r_time='1.999975',avg_time='2.164233',total_polls='1703',failed_polls='10',availability='99.4128' where id='4'

CACTID: Host[4] RECACHE: Processing 1 items in the auto reindex cache for 'deviceas-msfc.mycompany.com'
CACTID: Host[4] DS[270] SNMP: v2: deviceas-msfc.mycompany.com, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, value: 0
CACTID: Host[4] DS[680] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[4] DS[680] SNMP: v2: deviceas-msfc.mycompany.com, dsname: cisco_tempcur, oid: .1.3.6.1.4.1.9.9.13.1.3.1.3.1, value: U
CACTID: Host[4] DS[681] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[4] DS[681] SNMP: v2: deviceas-msfc.mycompany.com, dsname: cisco_tempthr, oid: .1.3.6.1.4.1.9.9.13.1.3.1.4.1, value: U
CACTID: Host[4] DS[679] SNMP: v2: deviceas-msfc.mycompany.com, dsname: cisco_memused, oid: .1.3.6.1.4.1.9.9.48.1.1.1.5.1, value: 143879
52
CACTID: Host[4] DS[678] SNMP: v2: deviceas-msfc.mycompany.com, dsname: cisco_memfree, oid: .1.3.6.1.4.1.9.9.48.1.1.1.6.1, value: 871746
8
CACTID: DEBUG: SQLCMD: INSERT INTO poller_output (local_data_id,rrd_name,time,output) VALUES (270,'5min_cpu','2005-10-12 12:19:27','
0'),(680,'cisco_tempcur','2005-10-12 12:19:27','U'),(681,'cisco_tempthr','2005-10-12 12:19:27','U'),(679,'cisco_memused','2005-10-12
12:19:27','14387952'),(678,'cisco_memfree','2005-10-12 12:19:27','8717468')
CACTID: Host[4] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'mgtserver03'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'mgtserver03'...
CACTID: Host[5] PING Result: ICMP: Host is Alive
CACTID: Host[5] SNMP Result: Host responded to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='2005-10-12 12:16:00',status_rec_date='00
00-00-00 00:00:00',status_last_error='SNMP not performed due to setting or ping result,',min_time='9.999990',max_time='720.000020',c
ur_time='312.999965',avg_time='105.621937',total_polls='1714',failed_polls='6',availability='99.6499' where id='5'

CACTID: Host[5] DS[84] SNMP: v2: iam2as.iam.intel.com, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, value: 6
CACTID: Host[5] DS[421] SNMP: v2: iam2as.iam.intel.com, dsname: cisco_tempcur, oid: .1.3.6.1.4.1.9.9.13.1.3.1.3.1, value: 33
CACTID: Host[5] DS[422] SNMP: v2: iam2as.iam.intel.com, dsname: cisco_tempthr, oid: .1.3.6.1.4.1.9.9.13.1.3.1.4.1, value: 95
CACTID: Host[5] DS[420] SNMP: v2: iam2as.iam.intel.com, dsname: cisco_memused, oid: .1.3.6.1.4.1.9.9.48.1.1.1.5.1, value: 52780040
CACTID: Host[5] DS[419] SNMP: v2: iam2as.iam.intel.com, dsname: cisco_memfree, oid: .1.3.6.1.4.1.9.9.48.1.1.1.6.1, value: 384613576
CACTID: DEBUG: SQLCMD: INSERT INTO poller_output (local_data_id,rrd_name,time,output) VALUES (84,'5min_cpu','2005-10-12 12:19:27','6
'),(421,'cisco_tempcur','2005-10-12 12:19:27','33'),(422,'cisco_tempthr','2005-10-12 12:19:27','95'),(420,'cisco_memused','2005-10-1
2 12:19:27','52780040'),(419,'cisco_memfree','2005-10-12 12:19:27','384613576')
CACTID: Host[5] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'mgtserver03'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'mgtserver03'...
CACTID: Host[7] PING Result: ICMP: Host is Alive
CACTID: Host[7] SNMP Result: Host responded to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='0000-00-00 00:00:00',status_rec_date='00
00-00-00 00:00:00',status_last_error='',min_time='2.999900',max_time='35.000080',cur_time='3.000025',avg_time='5.020431',total_polls
='1714',failed_polls='0',availability='100.0000' where id='7'

CACTID: Host[7] RECACHE: Processing 1 items in the auto reindex cache for 'deviceas.mycompany.com'
CACTID: Host[7] DS[85] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 312894704
CACTID: Host[7] DS[144] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 312894704
CACTID: Host[7] DS[93] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.11, value: 130
CACTID: Host[7] DS[152] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.11, value: 130
CACTID: Host[7] DS[94] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, value: 339919835
CACTID: Host[7] DS[153] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, value: 339919835
CACTID: Host[7] DS[95] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, value: 280207853
CACTID: Host[7] DS[154] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, value: 280207853
CACTID: Host[7] DS[96] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.14, value: 130
CACTID: Host[7] DS[155] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.14, value: 130
CACTID: Host[7] DS[97] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.15, value: 261397461
CACTID: Host[7] DS[156] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.15, value: 261397461
CACTID: Host[7] DS[98] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16, value: 386878886
CACTID: Host[7] DS[157] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16, value: 386878886
CACTID: Host[7] DS[99] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17, value: 130
CACTID: Host[7] DS[158] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17, value: 130
CACTID: Host[7] DS[100] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.18, value: 130
CACTID: Host[7] DS[159] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.18, value: 130
CACTID: Host[7] DS[101] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.19, value: 130
CACTID: Host[7] DS[160] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.19, value: 130
CACTID: Host[7] DS[86] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 0
CACTID: Host[7] DS[145] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 0
CACTID: Host[7] DS[102] SNMP: v2: deviceas.mycompany.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.20, value: 130
CACTID: Host[7] DS[171] SNMP: v2: deviceas.mycompany.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.30, value: 4225091586

.
.
.
.
.
.
. lots of logging here ............................
.
.
.
.
.
.
CACTID: Host[9] DS[371] SNMP: v2: devicees.mycompany.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, value: 64
CACTID: Host[9] DS[372] SNMP: v2: devicees.mycompany.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.7, value: 64
CACTID: Host[9] DS[373] SNMP: v2: devicees.mycompany.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.8, value: 64
CACTID: Host[9] DS[374] SNMP: v2: devicees.mycompany.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.9, value: 64
CACTID: Host[9] DS[365] SNMP: v2: devicees.mycompany.com, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, value: 15
CACTID: DEBUG: SQLCMD: INSERT INTO poller_output (local_data_id,rrd_name,time,output) VALUES (366,'traffic_in','2005-10-12 12:23:23'
,'64'),(375,'traffic_in','2005-10-12 12:23:23','64'),(376,'traffic_in','2005-10-12 12:23:23','64'),(377,'traffic_in','2005-10-12 12:
23:23','64'),(378,'traffic_in','2005-10-12 12:23:23','64'),(379,'traffic_in','2005-10-12 12:23:23','64'),(380,'traffic_in','2005-10-
12 12:23:23','64'),(381,'traffic_in','2005-10-12 12:23:23','64'),(382,'traffic_in','2005-10-12 12:23:23','64'),(383,'traffic_in','20
05-10-12 12:23:23','64'),(384,'traffic_in','2005-10-12 12:23:23','64'),(367,'traffic_in','2005-10-12 12:23:23','64'),(385,'traffic_i
n','2005-10-12 12:23:23','64'),(386,'traffic_in','2005-10-12 12:23:23','64'),(387,'traffic_in','2005-10-12 12:23:23','64'),(388,'tra
ffic_in','2005-10-12 12:23:23','64'),(389,'traffic_in','2005-10-12 12:23:23','64'),(390,'traffic_in','2005-10-12 12:23:23','64'),(39
1,'traffic_in','2005-10-12 12:23:23','64'),(392,'traffic_in','2005-10-12 12:23:23','64'),(393,'traCACTID: Host[9] DEBUG: HOST COMPLE
TE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
CACTID: DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())
CACTID: DEBUG: Thread Cleanup Complete
CACTID: DEBUG: PHP Script Server Pipes Closed
CACTID: DEBUG: Allocated Variable Memory Freed
CACTID: CACTID: Shutting down Net-SNMP API
read_config_store open failure on /var/net-snmp/cactid.conf
read_config_store open failure on /var/net-snmp/cactid.conf
read_config_store open failure on /var/net-snmp/cactid.conf
are the items in bold relevant?

but still no creation of rrd graphs :( :(
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) apply the patches at http://www.cacti.net/downloads/patches/ ... re-patched
2) do not use the win32 version of rrdtool 1.2 from tobi's site. Use the one on the Cacti site.

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?
lightningbit
Posts: 26
Joined: Fri Sep 30, 2005 4:23 am

Post by lightningbit »

BSOD2600 wrote:Odd.

1) So you're using cactid? What version?
2) You've turned the logging level in cacti to debug for a cycle and looked to make sure cacti is collecting valid data?
3) You happen to have several cygwin1.dll's floating around on your system?
YESSSSSSS :D :D :D

its working.....O NE (so never mind the previous posts)
you actually provided the solution to my problem in another topic :
You must be using rrdtool-cygwin, NOT win32.
I removed all cygwin1.dll and all rddtool stuff
and installed/copied the rrdtool-cygwin with its accompanied cygwin1.dll

it seems to be working now... files are created.... graphs are being filled...

so.. I'm going to play around with it, and add a number of devices....


"a happy man"
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Blah, can't believe I missed the rrdtool win32 version...."cannot change to root... command not supported by OS..." was a dead giveaway.
windsor
Posts: 24
Joined: Fri May 07, 2004 5:26 pm
Location: Texas!

Post by windsor »

Holy cow, what an adventure. :(

This "no RRA population" was killing me. Can someone update the Windows install documentation (http://www.cacti.net/downloads/docs/htm ... ndows.html) to reflect:

1) php.ini for php5 -must- have cgi.force_redirect = 0 when using IIS
2) download rrdtool from http://www.cacti.net/downloads/rrdtool/win32/

Hrm, now I have RRD files, I still don't have graphs. whee.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I've already created an updated one here. Going to try php 5 and mysql 4.1 one of these days I'm not busy and update it...
gardener
Posts: 8
Joined: Wed Nov 02, 2005 3:13 pm
Location: Argentina

Post by gardener »

Hello guys, thanks to your comment i fix my cacti. (somepart)(graphics create now, but not updates works)

i would like to make nottation on something.. that i see it my self.

i didn't install apache at comun folder ... i haved installed at.

C:\Archivos de programa\Apache Group\Apache2\htdocs\www\Cacti

and one of the things i have noted. is when rddtools send the command

11/02/2005 07:08:48 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1130882924 --end=1130969324 --title="GARDENER\'S MACHINE - Traffic - 10.0.0.1 (NVIDIA nForce M)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/11/01 19\:08\:44 To 2005/11/02 19\:08\:44\c" COMMENT:" \n" --vertical-label="bits per second" --slope-mode DEF:a="C\:/www/Apache2/htdocs/www/Cacti/rra/gardeners_machine_traffic_in_46.rrd":traffic_in:AVERAGE DEF:b="C\:/www/Apache2/htdocs/www/Cacti/rra/gardeners_machine_traffic_in_46.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

this is the fixed one.. But. in this specific section i was seeying something like this

11/02/2005 06:46:03 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe create c:/Archivos de programa/Apache Group/Apache2/htdocs/www/Cacti/rra/gardeners_machine_traffic_in_43.rrd --step 300 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out: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
11/02/2005 06:46:03 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update c:/Archivos de programa/Apache Group/Apache2/htdocs/www/Cacti/rra\gardeners_machine_traffic_in_43.rrd --template traffic_out:traffic_in N:U:U


If you see at the folders name there are spaces and the rddtools was trying to create a rrd file if you probe that with CMD

C:\PHP\php.exe c:\www\Apache2\htdocs\www\Cacti\poller.php

It came out with some error about Parsing 'de , And it's correct becouse there no spaces has to be when run rddtools create

If i probe it this way.

c:/rrdtool/rrdtool.exe create c:/ARCHIV~1/APACHE~1/Apache2/htdocs/www/Cacti/rra/localhost_traffic_in_25.rrd --step 300 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out: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

Like old style in format 8.3 folders, it createme the file. without problems. (rrd file)

Just for make more information about this issue

By other way. I have fixed the graphics removing de cygwin1.dll from forlder rrdtool and leaving the cygwin1.dll on the folder of Cactid version 1005.18.0.0

Now my only problem are the uptdates.. it's non working.. But i will let you know if can fixed.


Regards

-=Gardener=-
No Stress
Eco Acctitud :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Right, as you've already noticed you cannot have spaces in your folder paths (unless you use the old 8.3 name).
gardener
Posts: 8
Joined: Wed Nov 02, 2005 3:13 pm
Location: Argentina

Post by gardener »

Yeap, the thing is when rrdtools try to work on background it uses..

c:/rrdtool/rrdtool.exe create c:/Archivos de programa/Apache Group/Apache2/htdocs/www/Cacti/rra/gardeners_machine_traffic_in_43.rrd

Instead of

c:/rrdtool/rrdtool.exe create c:/ARCHIV~1/APACHE~1/Apache2/htdocs/www/Cacti/rra/localhost_traffic_in_25.rrd --step 300 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out: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

This is my question/sugestion how do you specificate to rrdtools.exe? to try to work with 8.3 folder format?

Any way. As says BSOD2600, don't change the steps of his webguide. It's real Cool. thanks a lot BSOD2600. :lol:


Can you helpme with my issue? :roll:
Attachments
nonupdates.JPG
nonupdates.JPG (123.74 KiB) Viewed 6375 times
result.txt
C:PHPphp.exe c:wwwApache2htdocswwwCactipoller.php > result.txt
(484 Bytes) Downloaded 201 times
gardener
Posts: 8
Joined: Wed Nov 02, 2005 3:13 pm
Location: Argentina

Post by gardener »

One big and important comment about cygwin1.dll.

After several times of probing. Let me tell this. If you don't use cygwin1.dll on the folder of Cactid (and you have selected the Poller (settings) Cactid).. if you don't have de cygwin1.dll, IT WONT WORK)

I'm not very expert on this tool. But Do i really now that.. if you don't have cygwin1.dll on the folder of rrdtools and cactid (has to be the SAME VERSION)

if you don't put it this way.. it not create the rrd files.


Now i'm still stuck on tring to make it work my graphics.. :(
Attachments
result1.txt
cacti.log
(5.88 KiB) Downloaded 170 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

gardener wrote:After several times of probing. Let me tell this. If you don't use cygwin1.dll on the folder of Cactid (and you have selected the Poller (settings) Cactid).. if you don't have de cygwin1.dll, IT WONT WORK
This is why I suggest in the install guide to install Cygwin, so you dont have to deal with this problem.

1) When posting log files or the output of a command window, for the sake of easy reading, pipe it into a file and then post that (i.e. php poller.php >file.log)

2) Even though you're using the 8.3 folder names, I strongly suggest you move your folders around so there are no spaces in the path. Cacti/rrdtool really doesn't like them.

3) Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the actual log file (./cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests