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

Re: Cacti 1.1.38 not creating rrd files

Post by dalamir »

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 40 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 »

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.
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
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 »

Also, check your disk space, df -h
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 »

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

Re: Cacti 1.1.38 not creating rrd files

Post by netniV »

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.
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 »

No joy, see attached file for details.
Attachments
Cacti#3 log.txt
(16.69 KiB) Downloaded 41 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, 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.
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 »

Morning,

No error from this. See attached file.
Attachments
Cacti#4 log.txt
(44.24 KiB) Downloaded 48 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 »

I noticed that you ran that as www-data, is that the user that is configured to run poller.php?
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 »

Yes it is, I checked the job within cron.d.
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 »

Is SELinux enabled?
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 »

No, apparmor is in use.
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 »

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.
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 »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti 1.1.38 not creating rrd files

Post by Osiris »

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

Who is online

Users browsing this forum: No registered users and 0 guests