Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jan 23, 2019 11:33 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Fri Nov 30, 2018 8:08 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
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 4 times
Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Fri Nov 30, 2018 9:58 am 
Offline
Cacti Guru User

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

_________________
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 9:59 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1933
Also, check your disk space, df -h

_________________
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 10:34 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
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.


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Fri Nov 30, 2018 11:00 am 
Offline
Cacti Guru User

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

_________________
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 11:17 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
No joy, see attached file for details.


Attachments:
Cacti#3 log.txt [16.69 KiB]
Downloaded 4 times
Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Mon Dec 03, 2018 4:23 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1933
OK, so there looks to be a clear problem opening/creating those RRD's. Lets dig deeper by running spine manually.

Code:
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.

_________________
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: Mon Dec 03, 2018 4:34 am 
Offline

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

No error from this. See attached file.


Attachments:
Cacti#4 log.txt [44.24 KiB]
Downloaded 5 times
Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Mon Dec 03, 2018 5:42 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1933
I noticed that you ran that as www-data, is that the user that is configured to run poller.php?

_________________
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: Mon Dec 03, 2018 6:18 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
Yes it is, I checked the job within cron.d.


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Mon Dec 03, 2018 6:37 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1933
Is SELinux enabled?

_________________
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: Mon Dec 03, 2018 7:17 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
No, apparmor is in use.


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Mon Dec 03, 2018 8:41 am 
Offline
Cacti Guru User

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

_________________
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: Mon Dec 10, 2018 4:13 am 
Offline

Joined: Fri Sep 25, 2009 5:27 am
Posts: 15
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 :-)


Top
 Profile  
 
 Post subject: Re: Cacti 1.1.38 not creating rrd files
PostPosted: Fri Jan 04, 2019 6:55 am 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 706
App Armor is the SLES version of SELinux. It was likely your culpret.

_________________
Before history, there was a paradise, now dust.


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 12 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