rra file empty

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

Moderators: Developers, Moderators

syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

rra file empty

Post by syxfull »

hello to start sorry I'am french :lol: :lol:

in cacti poller view cache I can read

RRD: c:\program files\easyphp1-8\www\cacti\rra\pc_stagiaire_2_proc_39.rrd
Action: 0, OID: .1.3.6.1.2.1.25.1.6.0 (Host: 192.168.1.164, Community: public)

but rra file is empty Why?

I have change rrdtool win32 with cygwin 1.2.12
my cacti version is current with patch

to finnish I use cacti with easyphp for testing

thanks for your help
and move sorry for my bad english :wink:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

Post by syxfull »

Sorry i think that information was not to nessessary

I have follow the instruction for install i thit not missed any point.

Operating System:Win XP Pro
Webserver: Mozilla IE APACHE 1.3.33
Cacti: 0.8.6h whit patch applied
Cactid: not installed
MySQL: 4.1.9
PHP: 4.3.10
RRDTool: rrdtool-cygwin-1.2.12
Net-SNMP: net-snmp-5.2.2.pre1-1.win32
Cygwin: not installed

I think I am probleme whit NET-SNMP because in getif the mib browser don't opperate and
I can read not response from snmp
(snmp is install and good)

So my problem is: rra files is empty

in debug mode in cache poller I can see
RRD: c:\program files\easyphp1-8\www\cacti\rra\pc_stagiaire_2_proc_39.rrd
Action: 0, OID: .1.3.6.1.2.1.25.1.6.0 (Host: 192.168.1.164, Community: public)
but the snmp cache is empty???
:cry: :o :-? :x :evil:


in log cacti for on cycle:
03/01/2006 09:57:05 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
03/01/2006 09:57:05 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
03/01/2006 09:57:05 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
03/01/2006 09:57:05 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='visiteur'"
03/01/2006 09:57:05 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
log write this
03/01/2006 10:07:22 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_item (local_data_id,host_id,action,hostname, snmp_community,snmp_version,snmp_timeout,snmp_username,snmp_password,snmp_port,rrd_name,rrd_path, rrd_num,arg1,arg2,arg3) values (39,5,0,'192.168.1.164', 'public','2','500', '','','161', 'proc','c:\\program files\\easyphp1-8\\www\\cacti\\rra\\pc_stagiaire_2_proc_39.rrd', '1','.1.3.6.1.2.1.25.1.6.0','','')"
so he says that he writes but rra is empty

but View SNMP Cache empty I'am forgoten

thanks for your help because is for a internship and I am very interresting to cacti to applied at my home
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Cacti does not support spaces in the path. Fix that.
2) Why are you using double slashes for you path? You dont need those, just the standard one will do.
3) The log stuff you posted does not say it attempted to update the rrd files. You're looking for CACTI2RRD log entires which do that.
syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

Post by syxfull »

1)ok fix space whit c:\PROGRA~1\ is good?
2)I don't no why but path is correct whit one slash :(
3)how I see the cacti2rrd log?

thanks for help
Last edited by syxfull on Thu Mar 02, 2006 5:57 am, edited 1 time in total.
syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

Post by syxfull »

up up

I have problem to run net-snmp agent error 1067 so i havec read the readme.w32 on web site but I am forgoten avec you solution and Is possible that my graph problem become to snmp bad configurated?

in getif I can't acces to tree in Mbrowser Grrr help a little french plz
syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

Post by syxfull »

sorry for multi-post but I search all time and see more and more problem

can you explain me how to install NET-SNMP? because with cohabitation I don't success you can explain me to easy notice? in website of netsnmp and readme.W32 I don't success install why?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You do not need to install the net-snmp snmp agent. Use the microsoft one which comes with windows.
syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

Post by syxfull »

ok but when net-snmp is not installed I havec snmp error on device to cacti?
:( :cry:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Did you install the windows snmp agent?
Did you enable the snmp module in php, like the installation guide instructed?
syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

Post by syxfull »

yes I have install microsoft agen snmp OK.
I have install net-snmp just for snmpget.exe snmp....exe OK.

in debug graph I have this:

:\PROGRA~1\EasyPH~1\www\cacti\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="PC stagiaire 2 - Traffic - 192.168.1.164 (43:61:72:74:65:)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="c\:/program files/easyphp1-8/www/cacti/rra/pc_stagiaire_2_traffic_in_65.rrd":traffic_in:AVERAGE \
DEF:b="c\:/program files/easyphp1-8/www/cacti/rra/pc_stagiaire_2_traffic_in_65.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=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" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"
RRDTool Says:

ERROR: opening 'c:/program files/easyphp1-8/www/cacti/rra/pc_stagiaire_2_traffic_in_65.rrd': No such file or directory

FOR data source debug


c:\PROGRA~1\EasyPH~1\www\cacti\rrdtool.exe create \
c:/program files/easyphp1-8/www/cacti/rra/pc_stagiaire_2_traffic_in_65.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 \

To Data Query Debug Information

+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at 'c:/program files/easyphp1-8/www/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\PROGRA~1\EasyPH~1\php\php.exe -q c:\program files\easyphp1-8\www\cacti\scripts\ss_host_cpu.php 192.168.1.164 5 1:161:500:public:::MD5::[None] index'
+ Executing script query 'c:\PROGRA~1\EasyPH~1\php\php.exe -q c:\program files\easyphp1-8\www\cacti\scripts\ss_host_cpu.php 192.168.1.164 5 1:161:500:public:::MD5::[None] query index'
+ Found data query XML file at 'c:/program files/easyphp1-8/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'c:/program files/easyphp1-8/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'c:/program files/easyphp1-8/www/cacti/resource/script_server/host_cpu.xml'


question: for all files acces road I use / or \??
I think I have configure all Path_rra path_cacti etc
do you now tha I must creat manualy thec_stagiaire_2_traffic_in_65.rrd file?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

syxfull wrote: for all files acces road I use / or \??
Use forward slashes for your paths, /
syxfull wrote: I think I have configure all Path_rra path_cacti etc
do you now tha I must creat manualy thec_stagiaire_2_traffic_in_65.rrd file?
No. If cacti isnt able to create it, then you have something wrong.

Considering the verbose query did not return any data, I don't think you have SNMP properly working on the device. Do you have the basic SNMP information at the top left corner of the device screen? If it says snmp error, then you have a problem.
syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

Post by syxfull »

on snmp I have this

System: Hardware: x86 Family 15 Model 2 Stepping 4 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.1 (Build 2600 Uniprocessor Free)
Uptime: 1032138
Hostname: STG-02
Location:
Contact: NULL

is good?

to this moning I have this problem on log cacti

03/06/2006 09:36:53 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "select output_string from data_input where id=1"

I think is maybe caused by rrdtool can you explain me how to install rrdtool cygwin? I have just pass in cacti folder and configure path I have other to do?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

syxfull wrote:on snmp I have this

System: Hardware: x86 Family 15 Model 2 Stepping 4 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.1 (Build 2600 Uniprocessor Free)
Uptime: 1032138
Hostname: STG-02
Location:
Contact: NULL

is good?
Yes.
syxfull wrote:03/06/2006 09:36:53 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "select output_string from data_input where id=1"
Ignore those.

As for installing rrdtool, simply download the zip file from the cacti website, extract to c:\rrdtool, in cacti settings point to it, set up NTFS security so your IUSR_X and IIS_WPG user accounts have read/execute.
syxfull
Posts: 17
Joined: Tue Feb 28, 2006 3:11 am

Post by syxfull »

I do this
what is the problem I alway have a rra empty
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests