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

Re: Cacti 1.1.38 not creating rrd files

#16 Post by dalamir » Fri Nov 30, 2018 8:08 am

Our cronjob lists www-data as the user to execute the poller.
Doublechecked the permissions on the folder (/usr/share/cacti/site/rra is a symlink to /var/lib/cacti/rra).
Results for adjusted debug attached.

/usr/share/cacti/site/rra# ls -lha
total 40K
drwxrwxrwx 2 www-data www-data 12K Nov 27 11:22 .
drwxr-xr-x 4 root root 4.0K Nov 8 09:56 ..
-rwxrwxrwx 1 www-data www-data 11K Nov 27 11:22 zuidas_spaces_core01_traffic_in_405.rrd
-rwxrwxrwx 1 www-data www-data 5 Nov 27 11:17 zuidas_spaces_core01_traffic_in_406.rrd
-rwxrwxrwx 1 www-data www-data 5 Nov 27 11:17 zuidas_spaces_core01_traffic_in_407.rrd
-rwxrwxrwx 1 www-data www-data 5 Nov 27 11:17 zuidas_spaces_core01_traffic_in_408.rrd
-rwxrwxrwx 1 www-data www-data 0 Nov 16 10:34 zuidas_spaces_core01_traffic_in_409.rrd
-rwxrwxrwx 1 www-data www-data 0 Nov 16 10:35 zuidas_spaces_core01_traffic_in_410.rrd
-rwxrwxrwx 1 www-data www-data 0 Nov 16 10:35 zuidas_spaces_core01_traffic_in_411.rrd
-rwxrwxrwx 1 www-data www-data 0 Nov 16 10:35 zuidas_spaces_core01_traffic_in_412.rrd
etcetera

ls -lha /var/lib/cacti/rra
total 40K
drwxrwxrwx 2 www-data www-data 12K Nov 27 11:22 .
drwxr-xr-x 4 root root 4.0K Nov 8 09:56 ..
-rwxrwxrwx 1 www-data www-data 11K Nov 27 11:22 zuidas_spaces_core01_traffic_in_405.rrd
-rwxrwxrwx 1 www-data www-data 5 Nov 27 11:17 zuidas_spaces_core01_traffic_in_406.rrd
-rwxrwxrwx 1 www-data www-data 5 Nov 27 11:17 zuidas_spaces_core01_traffic_in_407.rrd
-rwxrwxrwx 1 www-data www-data 5 Nov 27 11:17 zuidas_spaces_core01_traffic_in_408.rrd
-rwxrwxrwx 1 www-data www-data 0 Nov 16 10:34 zuidas_spaces_core01_traffic_in_409.rrd
-rwxrwxrwx 1 www-data www-data 0 Nov 16 10:35 zuidas_spaces_core01_traffic_in_410.rrd
-rwxrwxrwx 1 www-data www-data 0 Nov 16 10:35 zuidas_spaces_core01_traffic_in_411.rrd
-rwxrwxrwx 1 www-data www-data 0 Nov 16 10:35 zuidas_spaces_core01_traffic_in_412.rrd
Attachments
Cacti#2 log.txt
(14.96 KiB) Downloaded 15 times

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

Re: Cacti 1.1.38 not creating rrd files

#17 Post by netniV » Fri Nov 30, 2018 9:58 am

409 to 412 appear to be zero length RRD files. That seems wrong to me, I would remove them and let the system recreate them. I'm guessing the higher numbers are the same too.

If you see a zero length file, remove it.


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

Re: Cacti 1.1.38 not creating rrd files

#19 Post by dalamir » Fri Nov 30, 2018 10:34 am

The whole problem is the fact that new rrd's aren't created at all.
The reason the files are there to begin with, is because I created them manually.
The only files present are for the switch, the firewall files were not made manually and are thus still not present.
Diskspace is plentyfull at this time.

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

Re: Cacti 1.1.38 not creating rrd files

#20 Post by netniV » Fri Nov 30, 2018 11:00 am

Right but as I think I've said previously, you can not manually create those files. They need to be removed, once removed, run the sudo command I suggested and lets see what happens.

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

Re: Cacti 1.1.38 not creating rrd files

#21 Post by dalamir » Fri Nov 30, 2018 11:17 am

No joy, see attached file for details.
Attachments
Cacti#3 log.txt
(16.69 KiB) Downloaded 16 times

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

Re: Cacti 1.1.38 not creating rrd files

#22 Post by netniV » Mon Dec 03, 2018 4:23 am

OK, so there looks to be a clear problem opening/creating those RRD's. Lets dig deeper by running spine manually.

Code: Select all

sudo -u cacti /usr/sbin/spine -C /etc/cacti/spine.conf --poller=1 --first=1 --last=1 --mibs -V 5
Replace the "cacti" with your poller user if its different and increment the numbers in the first/last parameters (I believe your last device is 6). One of these will hopefully give us more information. When you find the one producing the above errors, post that log.

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

Re: Cacti 1.1.38 not creating rrd files

#23 Post by dalamir » Mon Dec 03, 2018 4:34 am

Morning,

No error from this. See attached file.
Attachments
Cacti#4 log.txt
(44.24 KiB) Downloaded 17 times

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

Re: Cacti 1.1.38 not creating rrd files

#24 Post by netniV » Mon Dec 03, 2018 5:42 am

I noticed that you ran that as www-data, is that the user that is configured to run poller.php?

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

Re: Cacti 1.1.38 not creating rrd files

#25 Post by dalamir » Mon Dec 03, 2018 6:18 am

Yes it is, I checked the job within cron.d.


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

Re: Cacti 1.1.38 not creating rrd files

#27 Post by dalamir » Mon Dec 03, 2018 7:17 am

No, apparmor is in use.

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

Re: Cacti 1.1.38 not creating rrd files

#28 Post by netniV » Mon Dec 03, 2018 8:41 am

Just wondering if it blocking Cacti for some reason. Logically, I can see no reason why the RRDTool can't create the file it needs to. I'll be checking the code to see what commands are used to create the file if it does not exist, if you can run those successfully as the user, that's quite puzzling then.

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

Re: Cacti 1.1.38 not creating rrd files

#29 Post by dalamir » Mon Dec 10, 2018 4:13 am

Well thanks for all the thoughts and insights, but management has decided to end the life of this particular server.
So this riddle will not be solved.
Till the next one :-)

User avatar
Osiris
Cacti Pro User
Posts: 883
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti 1.1.38 not creating rrd files

#30 Post by Osiris » Fri Jan 04, 2019 6:55 am

App Armor is the SLES version of SELinux. It was likely your culpret.
Before history, there was a paradise, now dust.

Post Reply