Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


RRD Tool cannot find .rrd Graph after I add it.

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
cmcguire



Joined: 06 Dec 2004
Posts: 15
Location: Salt lake City

PostPosted: Tue Dec 07, 2004 1:17 pm    Post subject: RRD Tool cannot find .rrd Graph after I add it. Reply with quote

I have added a Cisco 7206 router into devices and it appears to be working correctly. I click on Create Graphs for this host.
I select the interface to create the graph for and click on create. It returns with:
+ Created graph: Gateway 1 (Computer Solutions) - Traffic - Se3/0/7:3

Then I go to Graph Management and select the graph I create. The RRD Tool debug tells me>

ERROR: opening '/var/www/html/cacti/rra/gateway_1_computer_solutions_traffic_in_20.rrd': No such file or directory

No files are being created and placed in this directory. Any help would be much appreciated...

Thanks
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Tue Dec 07, 2004 5:32 pm    Post subject: Reply with quote

The RRD file does not get created until the poller runs.

TheWitness
Back to top
cmcguire



Joined: 06 Dec 2004
Posts: 15
Location: Salt lake City

PostPosted: Wed Dec 08, 2004 10:13 am    Post subject: Reply with quote

Thanks for the reply. I am obviously very new to Cacti. How do I get the Poller to run? Is there a setting that I need to change? It ran all night and still no rrd file was created so I am assuming I have something setup wrong.

Thanks
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Wed Dec 08, 2004 10:34 am    Post subject: Reply with quote

"php <webroot>/cacti/poller.php"

TheWitness
Back to top
cmcguire



Joined: 06 Dec 2004
Posts: 15
Location: Salt lake City

PostPosted: Wed Dec 08, 2004 7:46 pm    Post subject: Reply with quote

Thank you very much for your support. All appears to be working well with the exception of a few graphs. Some graphs seem to be updating consistantly, but a few of them are not showing any traffic at all. One graph worked for 1 5 minute duration then stopped working right after that. Any ideas?

Here is the output of a poller.php in debug mode:

[root@fdt-es1 cacti]# php /var/www/html/cacti/poller.php
X-Powered-By: PHP/4.2.2
Content-type: text/html

12/08/2004 05:55:27 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q
/var/www/html/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
12/08/2004 05:55:28 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.13' [map 1min->load_1min]
12/08/2004 05:55:28 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.06' [map 5min->load_5min]
12/08/2004 05:55:28 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.01' [map 10min->load_15min]
12/08/2004 05:55:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1102553727:17840
12/08/2004 05:55:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1102553727:1042576
12/08/2004 05:55:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1102553727:0.13:0.06:0.01
12/08/2004 05:55:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_users_6.rrd --template users 1102553727:2
12/08/2004 05:55:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_proc_7.rrd --template proc 1102553727:79
12/08/2004 05:55:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_1_computer_solutions_5min_cpu_20.rrd --template 5min_cpu 1102553727:18
12/08/2004 05:55:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_1_computer_solutions_traffic_in_16.rrd --template traffic_in:traffic_out 1102553727:3611567037:1047191048
12/08/2004 05:55:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_2_sprint_traffic_in_19.rrd --template traffic_in:traffic_out 1102553727:3659681246:2584192159
12/08/2004 05:55:28 PM - SYSTEM STATS: Time: 1.0391 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 4, Hosts/Process: 4
OK u:0.00 s:0.00 r:1.03
OK u:0.01 s:0.00 r:1.03
OK u:0.01 s:0.00 r:1.03
OK u:0.01 s:0.00 r:1.03
OK u:0.01 s:0.00 r:1.03
OK u:0.01 s:0.00 r:1.03
OK u:0.01 s:0.00 r:1.03
OK u:0.01 s:0.00 r:1.03


Thanks
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Wed Dec 08, 2004 9:16 pm    Post subject: Reply with quote

You need to apply the patches in the following location:

www.cacti.net/downloads/patches/0.8.6b/pre-patched

Should resolve your problem.

TheWitness
Back to top
Guest






PostPosted: Wed Dec 08, 2004 11:14 pm    Post subject: Reply with quote

Thanks a lot for these patches. This seems to be helping. I am still seeing a few graphs that are accumulating data intermittently. Here is the first part of the poller.php output:


php /var/www/html/cacti/poller.php
X-Powered-By: PHP/4.2.2
Content-type: text/html

12/08/2004 09:11:27 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 8]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
12/08/2004 09:11:28 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.18' [map 1min->load_1min]
12/08/2004 09:11:28 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.22' [map 5min->load_5min]
12/08/2004 09:11:28 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.11' [map 10min->load_15min]
12/08/2004 09:11:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1102565487:240428
12/08/2004 09:11:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1102565487:1044216
12/08/2004 09:11:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1102565487:0.18:0.22:0.11
12/08/2004 09:11:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_users_6.rrd --template users 1102565487:2
12/08/2004 09:11:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_proc_7.rrd --template proc 1102565487:75
12/08/2004 09:11:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_1_computer_solutions_5min_cpu_20.rrd --template 5min_cpu 1102565487:13
12/08/2004 09:11:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_1_computer_solutions_traffic_in_16.rrd --template traffic_in:traffic_out 1102565487:1097052967:84555233
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::memBuffer.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::memAvailReal.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::memCached.0

Waiting on 1/1 pollers.
12/08/2004 09:11:29 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_2_sprint_mem_cache_23.rrd --template mem_cache 1102565487:U
12/08/2004 09:11:29 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_2_sprint_5min_cpu_21.rrd --template
5min_cpu 1102565487:11
12/08/2004 09:11:29 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_2_sprint_mem_free_24.rrd --template
mem_free 1102565487:U
12/08/2004 09:11:29 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/gateway_2_sprint_mem_buffers_22.rrd --template mem_buffers 1102565487:U
OK u:0.00 s:0.01 r:2.04
OK u:0.00 s:0.01 r:2.05
OK u:0.00 s:0.01 r:2.06
OK u:0.00 s:0.01 r:2.07
Waiting on 1/1 pollers.

Thanks a lot for your help!
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Thu Dec 09, 2004 7:16 am    Post subject: Reply with quote

Quote:

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::memBuffer.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::memAvailReal.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::memCached.0



You are polling a few OID's that do not exist on your host. Turn logging to debug for 1 pass and review the output. Then you can remove those Data Sources and Graphs.

TheWitness
Back to top
cmcguire



Joined: 06 Dec 2004
Posts: 15
Location: Salt lake City

PostPosted: Thu Dec 09, 2004 3:06 pm    Post subject: Reply with quote

I started fresh with new devices and graphs. Here is the output of my poller.php:

[root@fdt-es1 root]# php /var/www/html/cacti/poller.php
X-Powered-By: PHP/4.2.2
Content-type: text/html

Waiting on 1/1 pollers.
12/09/2004 01:08:49 PM - SYSTEM STATS: Time: 1.0249 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 4, Hosts/Process: 4
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
[root@fdt-es1 root]#

All seems OK, but the graph's are not accumulating data. I can create a graph, run the poller and view the graph, but It does not show any activity. I have installed these patches.

Thanks for all your help.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Thu Dec 09, 2004 5:23 pm    Post subject: Reply with quote

Verify that you only have 1 poller process in your CRON.

Larry
Back to top
Guest






PostPosted: Thu Dec 09, 2004 6:41 pm    Post subject: Reply with quote

This is what I have in the crontab:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * admin php /var/www/html/cacti/poller.php > /dev/null 2>&1

I pasted this in from the documentation. I am running on RH9.

Thanks again!
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Thu Dec 09, 2004 8:37 pm    Post subject: Reply with quote

Research the RRDTool documentation. There is an RRD function called dump. Please look into your RRD file for data. Run in LOW for a few hours and recheck.

TheWitness
Back to top
cmcguire



Joined: 06 Dec 2004
Posts: 15
Location: Salt lake City

PostPosted: Fri Dec 10, 2004 1:50 pm    Post subject: Reply with quote

I changed the crontab to look like the following:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * root php /var/www/html/cacti/poller.php > /dev/null 2>&1

I changed it from admin to root.

This appears to have fixed the issue and I am not sure why.

Thanks for all of your help in guiding me through this. If you have any more suggestions on this, please let me know.

Thanks again!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group