new .rrd files not created

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
mrburns
Posts: 4
Joined: Mon Dec 12, 2005 12:35 pm

new .rrd files not created

Post by mrburns »

Hello. I have searched through the forums posts for ages but havent found anything that solves my problem. please help. Sure i am doing something stupid

We have a working cacti intsalltion running on federoa core 3. Createing 100s of graphs that update fine. However when adding a new device no graphs or .rrd files are created. I have upgraded to cacti 0.8.6g and added patches but this didnt solve it.

rrdtool version is 1.0.50

I dont see any errors when creating the graphs. I can see the rrdtool create comamnd creating the rrd file, however no file is created.

When I run poller.php from command line these are the errors related to the new device:
ERROR: Duplicate DS name: traffic_out
OK u:0.37 s:1.12 r:180.55
ERROR: opening '/var/www/htdocs/rra/dbint002_fimat_co_uk_traffic_in_3467.rrd': No such file or directory
OK u:0.37 s:1.12 r:180.55
ERROR: opening '/var/www/htdocs/rra/dbint002_fimat_co_uk_traffic_in_3467.rrd': No such file or directory
OK u:0.37 s:1.12 r:180.55
ERROR: Duplicate DS name: traffic_out
OK u:0.37 s:1.12 r:180.55
ERROR: opening '/var/www/htdocs/rra/dbint002_fimat_co_uk_traffic_in_3466.rrd': No such file or directory
OK u:0.37 s:1.12 r:180.55
------------------------------------

from the cact.log I am seeing a lot of the follwoing errors:

12/08/2005 05:10:03 PM - CMDPHP: Poller[0] Host[0] DS[153] WARNING: Result from
CMD not valid. Partial Result:
---------------------------------------

please let me know what further information you require.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please have a look at http://forums.cacti.net/viewtopic.php?t=6773
Reinhard
mrburns
Posts: 4
Joined: Mon Dec 12, 2005 12:35 pm

Post by mrburns »

Thanks for the help. There were duplicate data sources for traffic_in and traffic_out in "Interface - Traffic". I deleted them leaving ID's 54 and 55.

However it hasnt solved the problem. Still cant add new graphs.

Graphs create without errors. For example when I add a new graph I get:

+ Created graph: cacti_test_ms - Traffic - Gi0/5
+ Created graph: cacti_test_ms - Traffic - Gi0/6

But when I into Graph Management and turn on Graph Debug:

RRDTool Says:

ERROR: opening '/var/www/htdocs/rra/cacti_test_ms_traffic_in_3520.rrd': No such file or directory


I confirm that there is no corresponding .rrd file in that dir.

I have tried it with permissions wide open on the rra directory but that doesnt help.

any other tips
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Ok, lets go one step further. Please have a look at your Device List: Status. Is the Host down? Then click on the device and see, whether a red error appears, sayingSNMP Error. If this occurs, the target device does not respond to snmp queries. You'll have to set up the target device to respond to snmp (e.g. test this using snmpwalk against this device from command line).
Please post your findings
Reinhard
mrburns
Posts: 4
Joined: Mon Dec 12, 2005 12:35 pm

Post by mrburns »

Hi,

No SNMP errors. Status up and no SNMP errors with availabilty 100%. The SNMP part seems to be working fine. It queries the device and builds a list of the interfaces including IP addresses, VLANS etc without problem. To me the only part that seems to be failing is that rrdtool fails to initially create the .rdd file in the rra directory. It seems to think it creates the .rrd files ok though. Also it can update exisiting files.

I cant understand why. When the poller runs it complains that there is no such file when it tries to use that specfic file.

Anyone know to run the rrdtool create command manually?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

mrburns wrote:Hi,

No SNMP errors. Status up and no SNMP errors with availabilty 100%. The SNMP part seems to be working fine. It queries the device and builds a list of the interfaces including IP addresses, VLANS etc without problem.
Well, good news
To me the only part that seems to be failing is that rrdtool fails to initially create the .rdd file in the rra directory. It seems to think it creates the .rrd files ok though. Also it can update exisiting files.
One of the two sentences is wrong (obviuosly). Cacti's poller will generate rrd's and will update them. But (AFAIK cacti 0.8.6x does) cacti will create rrds only, when the device responds. If "downed host detection" tests fail, cacti will not even create the rrds. You may have a look at the cacti.log in DEBUG mode to see, whether the poller snmp queries work, whether host is detected as "alive", whether rrd's are to be created (search for an rrdtool create statement) and whether rrd updates will be performed.
Anyone know to run the rrdtool create command manually?
Easy task. Goto Data Sources, select the one in question, select DEBUG and the rrdtool create statement is displayed. Copy that to cli and run it. Be careful to provide cactiuser with the ownership of that bit (preferred: run the rrdtool create as cactiuser)
Reinhard
mrburns
Posts: 4
Joined: Mon Dec 12, 2005 12:35 pm

Post by mrburns »

Thanks for the tips everyone. Its all working now. problem is not sure why.

I tried to create some different kinds of interface graphs instead of the (in/out bits) ones and it worked. After that the (in/out bits) graphs started createing successfully. Perhaps it was deleting the duplicate data sources as suggested by Reinhard.

One thing though. there is a few minute delay between when the graphs are created in cacti and when the actual .rrd files show up in the rra director.

Just a tip for anyone that is being impatient like me and thinking its not working. I understand that it would be at least five minutes before anything would show up on the graph, biut I expected that the .rrd file would be created immediatley and that cacti would just show a blank graphs rather than nothing at all.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

mrburns wrote:One thing though. there is a few minute delay between when the graphs are created in cacti and when the actual .rrd files show up in the rra director.

Just a tip for anyone that is being impatient like me and thinking its not working. I understand that it would be at least five minutes before anything would show up on the graph, biut I expected that the .rrd file would be created immediatley and that cacti would just show a blank graphs rather than nothing at all.
rrd creating is done by the poller. So it may last up to 5 mins to get them created. And another 5 mins for the second cycle to complete. Now you'll see the first values NE NaN.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests