RRD not created using a call to create_complete_graph_from_template

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

RRD not created using a call to create_complete_graph_from_template

Post by Rno »

Hi all,
I have a plugin to discover my network, and when I have a link I create some graph of it (traffic and status), for that I'm making a call to create_complete_graph_from_template.

But every think look fine except that the rrd file is not created.
For that I have to go to the data source of the device, then just do a save and it do his work and the file is created, then processed as it should be.

And I can't find any reason of why it should act like this.
it was working on version 1.x to 1.1x

the only thing I have int the log is:
2019/10/02 14:22:14 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[210]:CactiErrorHandler())
2019/10/02 14:22:14 - ERROR PHP NOTICE: Undefined offset: 1 in file: /usr/share/cacti/graph_json.php on line: 210

When i try to visualize the graph and that's releated to the rra file not existing!

Sorry, we could not process your last action.
Error:
200 OK
Reason:

Notice: Undefined offset: 1 in /usr/share/cacti/graph_json.php on line 210
{"type":"png","local_graph_id":12718,"rra_id":"0","image":"UlJPUjogb3BlbmluZyAnL3Vzci9zaGFyZS9jYWN0aS9ycmEvcmEtYXVnLTE3NV90cmFmZmljX2luXzEyNjA0LnJyZCc6IE5vIHN1Y2ggZmlsZSBvciBkaXJlY3Rvcnk=","ERROR: opening '\/usr\/share\/cacti\/rra\/ra-aug-175_traffic_in_12604.rrd': No such file or director":""}
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: RRD not created using a call to create_complete_graph_from_template

Post by Osiris »

Any progress here? Does the entry exist in the poller_item table before you re-save it? You may have to dump your database before and after to find out what is missing, then open a bug on GitHub.
Before history, there was a paradise, now dust.
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: RRD not created using a call to create_complete_graph_from_template

Post by Rno »

Hello,
Bug is open, and I just upgrade 1.2.7

Entry exit into poller_item before.

But still it's look like the rrd file is not created, and I have to go to every data source and clique save, so it it's created.

And I have a threshold for the status interface, setup on the template of the device, so it create every time a threshold for the status.
And when I save a device, the threshold do something so the rrd file for the status is created! A call to a function or a call to save the data source
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: RRD not created using a call to create_complete_graph_from_template

Post by Rno »

This issue is still open, and not fixed with 1.2.8
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: RRD not created using a call to create_complete_graph_from_template

Post by netniV »

We can follow this up on the github tracker.
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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests