Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Mar 25, 2019 9:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cacti 1.1.38 not creating rrd files
PostPosted: Tue Nov 27, 2018 11:27 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
Ubuntu 18.04.1 LTS
Fresh install with 1.1.38
Running spine

After the install graphs were working, we then decided to change the 5 minute interval to 1 minute.
And changed to spine.
Now the rrd files are not being created.
Following a lot of advice we found no obvious cause for this issue.
- The 2 hosts are online
- Spine was verified at it's job (./spine -R -V 3) and this yields results.
cacti.log : 27-Nov-2018 16:09:03 - SYSTEM STATS: Time:2.5107 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:251 RRDsProcessed:129

Tried this :
php -q /usr/share/cacti/site/poller.php --force --debug

This gave us these at first:
ERROR: opening '/usr/share/cacti/site/rra/zuidas_spaces__core01_traffic_in_434.rrd': No such file or directory

Created the file using touch (did this for 1 of the 2 devices, the core device), then the error changed to :
ERROR: mmaping file '/usr/share/cacti/site/rra/zuidas_spaces__core01_traffic_in_434.rrd': Invalid argument

Somebody suggested this error might be because the file was empty, so filled it with bogus info (1111 on the first line) which changed the error to:
ERROR: reached EOF while loading header rrd->stat_head

Then decided to copy the content of an active rrd file on the old server to a file on the new server, which then yielded:
ERROR: '/usr/share/cacti/site/rra/zuidas_spaces__core01_traffic_in_434.rrd' is not an RRD file

Cacti.log is equally unhelpfull, it merely reports on the missing rrd files for the second device, a Cisco firewall.

27-Nov-2018 16:10:01 - CMDPHP ERROR: There are no RRA's assigned to local_data_id: 517.

So, there it is. Any help will be appreciated.


Last edited by dalamir on Fri Nov 30, 2018 5:18 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Wed Nov 28, 2018 6:29 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
If you are going to create a blank RRA/RRD file, use rrdtool to do that. Otherwise, the file will not be in the correct format. Additionally, if you copied an RRA/RRD file from another server, that may not be in the format that the tool is expecting (especially if you are going between arch types).

If no file is being created by the poller, make sure that the RRA folder is writable by both the website and poller users. You can additionally use the DSDEBUG plugin that cigamit wrote if you are running Cacti prior to 1.2 (it's integrated in 1.2) to attempt to diagnose some basic issues with a given data source.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Wed Nov 28, 2018 6:51 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
Hi netniV,

Thank you for your response.
The only reason I filled the rrd files was to test the assumption about the nature of the error. I never expected them to work after that.
The location of the rrd files was chmodded to 777, this should solve any permission problems imho.
I tried looking for the dsdebug pligin via google, no luck.
Could you paste an url?


Last edited by dalamir on Wed Nov 28, 2018 8:36 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Wed Nov 28, 2018 7:46 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
https://github.com/cigamit/plugin_debug

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Wed Nov 28, 2018 8:17 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
Cheers.
Does it log anywhere in particular? It's been running on 1 data source for 15 minutes now with no result as yet...


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Wed Nov 28, 2018 8:37 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
And beyond this, is there a list with recommended actions based on the results the debug may provide?


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Thu Nov 29, 2018 3:31 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
It would normally tell you that what it has found. I believe on the table bit that there are a bunch of ticks, and if you click it, there is a more detailed version for an individual item.

If it does nothing, this suggests your poller isn't running or doesn't have the appropriate permissions.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Thu Nov 29, 2018 3:44 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
Allright, back to the drawing board then.
Thanks for the feedback.


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Thu Nov 29, 2018 5:01 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
Do you have a screenshot of the debug output?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Thu Nov 29, 2018 5:37 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
See attached file for screen of debug page.


Attachments:
Cacti debug.doc [92 KiB]
Downloaded 10 times
Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Thu Nov 29, 2018 6:23 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
If you click the left hand name, can you post a screenshot of that? It does look like it's not being polled at all. We will likely have to increase your logging level to see what's occurring.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Thu Nov 29, 2018 6:30 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
New file attached


Attachments:
cacti-debug#2.doc [107 KiB]
Downloaded 11 times
Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Fri Nov 30, 2018 4:15 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
This says to me that your poller isn't actually running. There are no values at all being populated that aren't put in when the GUI first creates the record by the looks of it. Are you sure that your poller is polling? Is this data source definitely being used by a graph?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Fri Nov 30, 2018 5:04 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
Ok, if you need specific info, please ask, I'm not a linux guru here.
Attached are the cacti.log and the list of devices.


Attachments:
Cacti devices.png
Cacti devices.png [ 96.75 KiB | Viewed 268 times ]
Cacti log.txt [27.2 KiB]
Downloaded 10 times
Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Fri Nov 30, 2018 7:35 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
OK something I just noticed which I should have earlier. You are running this on Debian/Ubuntu, which means that when you run the poller, you should be running it as the polling user (normally cacti I believe). Try running the poller command you did original again, but with the correct user this time:

sudo -u cacti php -q /usr/share/cacti/site/poller.php --force --debug

Also, it means that you need to ensure that your permissions are correct on the RRA folders for write access by both www-data and cacti.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group