Cacti 1.1.38 not creating rrd files

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

Moderators: Developers, Moderators

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

Cacti 1.1.38 not creating rrd files

Post by dalamir »

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.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
dalamir
Posts: 15
Joined: Fri Sep 25, 2009 5:27 am

Re: Cacti 1.1.38 not creating rrd files

Post by dalamir »

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.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

Post by netniV »

Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
dalamir
Posts: 15
Joined: Fri Sep 25, 2009 5:27 am

Re: Cacti 1.1.38 not creating rrd files

Post by dalamir »

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

Re: Cacti 1.1.38 not creating rrd files

Post by dalamir »

And beyond this, is there a list with recommended actions based on the results the debug may provide?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
dalamir
Posts: 15
Joined: Fri Sep 25, 2009 5:27 am

Re: Cacti 1.1.38 not creating rrd files

Post by dalamir »

Allright, back to the drawing board then.
Thanks for the feedback.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

Post by netniV »

Do you have a screenshot of the debug output?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
dalamir
Posts: 15
Joined: Fri Sep 25, 2009 5:27 am

Re: Cacti 1.1.38 not creating rrd files

Post by dalamir »

See attached file for screen of debug page.
Attachments
Cacti debug.doc
(92 KiB) Downloaded 289 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
dalamir
Posts: 15
Joined: Fri Sep 25, 2009 5:27 am

Re: Cacti 1.1.38 not creating rrd files

Post by dalamir »

New file attached
Attachments
cacti-debug#2.doc
(107 KiB) Downloaded 117 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

Post by netniV »

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?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
dalamir
Posts: 15
Joined: Fri Sep 25, 2009 5:27 am

Re: Cacti 1.1.38 not creating rrd files

Post by dalamir »

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 3357 times
Cacti log.txt
(27.2 KiB) Downloaded 80 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

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

Who is online

Users browsing this forum: No registered users and 1 guest