cacti does not create new rrd files
Moderators: Developers, Moderators
cacti does not create new rrd files
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
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
Re: cacti does not create new rrd files
For now, check the path mentioned below :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
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!
Re: cacti does not create new rrd files
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".
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';
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
Re: cacti does not create new rrd files
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.
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.
Re: cacti does not create new rrd files
I have already tried this, it shows: Basically it tells me that it can not find the RRD file...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.
Re: cacti does not create new rrd files
Can you post the screen shot in something besides a TIF?
Re: cacti does not create new rrd files
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...
Re: cacti does not create new rrd files
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: cacti does not create new rrd files
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: 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: On neither screen I see options to re-create the RRD file or do anything else.
Re: cacti does not create new rrd files
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: cacti does not create new rrd files
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.
Re: cacti does not create new rrd files
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.
Re: cacti does not create new rrd files
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!
- 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!
Who is online
Users browsing this forum: No registered users and 0 guests