Cacti 1.1.38 not creating rrd files

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

Moderators: Moderators, Developers

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

Cacti 1.1.38 not creating rrd files

#1 Post by dalamir » Tue Nov 27, 2018 11:27 am

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: 3054
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

#2 Post by netniV » Wed Nov 28, 2018 6:29 am

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.

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

Re: Cacti 1.1.38 not creating rrd files

#3 Post by dalamir » Wed Nov 28, 2018 6:51 am

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.


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

Re: Cacti 1.1.38 not creating rrd files

#5 Post by dalamir » Wed Nov 28, 2018 8:17 am

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

#6 Post by dalamir » Wed Nov 28, 2018 8:37 am

And beyond this, is there a list with recommended actions based on the results the debug may provide?

netniV
Cacti Guru User
Posts: 3054
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

#7 Post by netniV » Thu Nov 29, 2018 3:31 am

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.

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

Re: Cacti 1.1.38 not creating rrd files

#8 Post by dalamir » Thu Nov 29, 2018 3:44 am

Allright, back to the drawing board then.
Thanks for the feedback.


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

Re: Cacti 1.1.38 not creating rrd files

#10 Post by dalamir » Thu Nov 29, 2018 5:37 am

See attached file for screen of debug page.
Attachments
Cacti debug.doc
(92 KiB) Downloaded 32 times

netniV
Cacti Guru User
Posts: 3054
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

#11 Post by netniV » Thu Nov 29, 2018 6:23 am

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.

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

Re: Cacti 1.1.38 not creating rrd files

#12 Post by dalamir » Thu Nov 29, 2018 6:30 am

New file attached
Attachments
cacti-debug#2.doc
(107 KiB) Downloaded 27 times

netniV
Cacti Guru User
Posts: 3054
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

#13 Post by netniV » Fri Nov 30, 2018 4:15 am

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?

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

Re: Cacti 1.1.38 not creating rrd files

#14 Post by dalamir » Fri Nov 30, 2018 5:04 am

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 833 times
Cacti log.txt
(27.2 KiB) Downloaded 18 times

netniV
Cacti Guru User
Posts: 3054
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.1.38 not creating rrd files

#15 Post by netniV » Fri Nov 30, 2018 7:35 am

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.

Post Reply