cacti does not create new rrd files

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

Moderators: Developers, Moderators

Post Reply
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

cacti does not create new rrd files

Post by starfish »

Hi,

I have migrated our old cacti v0.8.8h to a new server and upgraded it to 1.2.16 at the same time. Besides some struggling the process worked fine and the system is running. Existing graphs and data sources work.

But I can not create new graphs, that means cacti does not create the corresponding rrd file. I have checked permissions and log files, but can not see a reason. There are no errors but also no information about cacti trying to create the rrd file. Very strange: the output of "Data Source Debug" is empty!

I have updated the setup to 1.2.17 afterwards successfully, but no improvement.

What can I check next?

Thanks in advance and kind regards
Frank
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti does not create new rrd files

Post by macan »

starfish wrote: Mon May 10, 2021 8:17 am Hi,

I have migrated our old cacti v0.8.8h to a new server and upgraded it to 1.2.16 at the same time. Besides some struggling the process worked fine and the system is running. Existing graphs and data sources work.

But I can not create new graphs, that means cacti does not create the corresponding rrd file. I have checked permissions and log files, but can not see a reason. There are no errors but also no information about cacti trying to create the rrd file. Very strange: the output of "Data Source Debug" is empty!

I have updated the setup to 1.2.17 afterwards successfully, but no improvement.

What can I check next?

Thanks in advance and kind regards
Frank
For now, check the path mentioned below :


NOTEs as of 10Aug2014:

1) Cacti now better supports hier(7)

a) Cacti log files are now found under /var/log/cacti where you can
manage them using newsyslog.
b) Cacti RRD files are now found under /var/db/cacti/rra.

If you have an existing Cacti installation these paths are also
found in Cacti's SQL database and MUST be updated. These two SQL
commands should do the trick:

UPDATE settings SET value='/var/log/cacti/log' \
WHERE name='path_cactilog';

UPDATE poller_item SET rrd_path=\
REPLACE(rrd_path,'/usr/local/share/cacti/rra','/var/db/cacti/rra') \
WHERE rrd_path REGEXP '^/usr/local/share/cacti/rra';
Let the Cacti grow!
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

Re: cacti does not create new rrd files

Post by starfish »


a) Cacti log files are now found under /var/log/cacti where you can
manage them using newsyslog.
b) Cacti RRD files are now found under /var/db/cacti/rra.

If you have an existing Cacti installation these paths are also
found in Cacti's SQL database and MUST be updated. These two SQL
commands should do the trick:

UPDATE settings SET value='/var/log/cacti/log' \
WHERE name='path_cactilog';

UPDATE poller_item SET rrd_path=\
REPLACE(rrd_path,'/usr/local/share/cacti/rra','/var/db/cacti/rra') \
WHERE rrd_path REGEXP '^/usr/local/share/cacti/rra';
My cacti log file is still at "/srv/www/htdocs/cacti/log/cacti.log", according to database and the file itself and the file gets updated. In addition I do not have a folder "/var/log/cacti".

Same is with RRDs: according to database all RRDs have to be stored at "/srv/www/htdocs/cacti/rra/", which is my existing directory. Even for new RRDs this directory path is used according to database. Changing database entries to path "/var/db/cacti/rra" would break all RRDs!

Therefor these paths are correct.

Why does "Data Source Debug" show no output? Does cacti does not find rrdtool (but the poller does, at least the graph are updated) or some other file?

Thanks!
Frank
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: cacti does not create new rrd files

Post by cigamit »

Ignore his message about the paths, I believe he is talking about doing a package install, you installed via source (the recommended way).

There is now a data source troubleshooter, you can find it at the very bottom of the Console menu. It might give you a better idea of where things are going awry.
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

Re: cacti does not create new rrd files

Post by starfish »

cigamit wrote: Mon May 10, 2021 9:50 am Ignore his message about the paths, I believe he is talking about doing a package install, you installed via source (the recommended way).

There is now a data source troubleshooter, you can find it at the very bottom of the Console menu. It might give you a better idea of where things are going awry.
I have already tried this, it shows:
Data source troubleshooter.tif
Data source troubleshooter.tif (124.32 KiB) Viewed 6017 times
Basically it tells me that it can not find the RRD file...
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: cacti does not create new rrd files

Post by cigamit »

Can you post the screen shot in something besides a TIF?
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

Re: cacti does not create new rrd files

Post by starfish »

cigamit wrote: Mon May 10, 2021 2:44 pm Can you post the screen shot in something besides a TIF?
Sure. This is the same screen shot as PNG file.
Data source troubleshooter.png
Data source troubleshooter.png (45.42 KiB) Viewed 6007 times
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

Re: cacti does not create new rrd files

Post by starfish »

I am still wondering why the output of "Data Source Debug" is empty. Is Cacti missing something, some code for example? I can not see any errors within the cacti or apache log...
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: cacti does not create new rrd files

Post by netniV »

If you look at the data source debug info on the data source edit page, you will likely see that there are missing elements in the RRD file. I believe that it will also give you the commands there to add them.
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
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

Re: cacti does not create new rrd files

Post by starfish »

netniV wrote: Wed May 12, 2021 6:10 am If you look at the data source debug info on the data source edit page, you will likely see that there are missing elements in the RRD file. I believe that it will also give you the commands there to add them.
I'm afraid I don't really understand what you are pointing to: do you talk about "Management / Data Sources" and the link "Turn on data source debug mode"? This is the one which only shows an empty result for all data sources:
Data source debug mode.png
Data source debug mode.png (57.86 KiB) Viewed 5992 times
Same is true for "Turn on data source info mode", when used on the new data source (with missing RRD file). Output is empty here also.


But if I use "Turn on data source info mode" on a functional data source, it shows this:
Data source info mode (working data source).png
Data source info mode (working data source).png (55.55 KiB) Viewed 5992 times
On neither screen I see options to re-create the RRD file or do anything else.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: cacti does not create new rrd files

Post by netniV »

Do you see the tune information at the bottom, there will be a bunch of commands that should bring your RRD back into alignment with what's expected.
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
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

Re: cacti does not create new rrd files

Post by starfish »

netniV wrote: Fri May 14, 2021 9:35 am Do you see the tune information at the bottom, there will be a bunch of commands that should bring your RRD back into alignment with what's expected.
Yes, I see, it seems that the existing (but working) data sources need some updates. I am afraid I will have to do this with all existing data sources and the question will be how I can automate this procedure. Updating all data sources manually would be a real pain!

But I guess this is a separate topic and is not related to my original issue. I posted this screen shot only to demonstrate that for old data sources there is an output in opposite to new data sources where is no output.
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

Re: cacti does not create new rrd files

Post by starfish »

netniV wrote: Fri May 14, 2021 9:35 am Do you see the tune information at the bottom, there will be a bunch of commands that should bring your RRD back into alignment with what's expected.
Yes, I see, it seems that the existing (but working) data sources need some updates. I am afraid I will have to do this with all existing data sources and the question will be how I can automate this procedure. Updating all data sources manually would be a real pain!

But I guess this is a separate topic and is not related to my original issue. I posted this screen shot only to demonstrate that for old data sources there is an output in opposite to new data sources where is no output.
starfish
Posts: 15
Joined: Thu May 27, 2010 4:46 am

Re: cacti does not create new rrd files

Post by starfish »

Any thoughts on my original issues:

- cacti does not the rrd file for new graphs/data sources
- output of "Data Source Debug" is empty

?

What is needed for cacti to create new RRDs, where can I look at? The empty "Data Source Debug" sounds like cacti can not call some kind of code or command...

Thanks in advance!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest