Missing Custom Data

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Missing Custom Data

Post by jackouille »

When I try to create a graph based on my templates I'm now always prompted to provide Custom Data such as shown within the attached pic.
Image
Previously (meaning som years ago) Custom Data were already displayed and empty and I was able to create graphs.

What could be the root cause and how can I solve it ?

The graphs created some years ago are still working and templates were not changed.
Attachments
Capture d’écran 2024-03-07 110526.png
Capture d’écran 2024-03-07 110526.png (15.67 KiB) Viewed 672 times
macan
Cacti Pro User
Posts: 912
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Missing Custom Data

Post by macan »

Did you upgrade cacti?
Let the Cacti grow!
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

Currently running version 1.2.25 under Rocky 9 with PHP 8.3.3
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

Version 1.2.26 not available via yum. I already ask the "packager" twice via email but no answer yet.
macan
Cacti Pro User
Posts: 912
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Missing Custom Data

Post by macan »

is any warning/error in log after your add graph operation?
I think some similar bug was fixed some time ago, but I can't find it.
1.2.26 or actual github 1.2.x branch version is better than 1.2.25
Let the Cacti grow!
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

Nope, I simply can't add new graphs using my own templates. Default graphs works fine.

I update one time manually from Github but then had unresolved issues, that's why I would prefer to wait for the official package.
Are you maybe in touch with the packager ?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

I just tried and upgrade version 1.30 (Dev) but still having the issue so I rolled back.
Capture d’écran 2024-03-07 142159.png
Capture d’écran 2024-03-07 142159.png (18.27 KiB) Viewed 637 times
Another suggestion ?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

Is there one file to be updated in order to solve this issue quickly ?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

Ok I have duplicated my current instance for performing deeper tests, what should I change now?

Grab the 1.2.26 from http://www.cacti.net/info/downloads
Install successfull :
Date Thu, 07 Mar 2024 22:46:59 +0100
Cacti Version 1.2.26
Cacti OS unix
RSA Fingerprint 0e:ce:94:ea:9d:e9:42:d3:c9:d2:ac:a7:5a:fc:fa:ad
NET-SNMP Version NET-SNMP version: 5.9.1
RRDtool Version Configured 1.7.2+
RRDtool Version Found 1.7.2
Devices 74
Graphs 7,078

But still having the same issue : prompted to provide Custom Data, here for Template: Interface - Trafic, but don't know which value I shall enter. Proposed values are empty and no choice proposed.
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

Got the following warning on Log:
2024-03-07 22:48:55 - CMDPHP Form Validation Failed: Variable 'c_0_353_41_14' does not allow nulls and variable is null
2024-03-07 22:48:55 - CMDPHP Form Validation Failed: Variable 'c_0_353_41_13' does not allow nulls and variable is null
2024-03-07 22:48:55 - CMDPHP Form Validation Failed: Variable 'c_0_353_41_12' does not allow nulls and variable is null
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

Could you please try to create a graph from the following template ?
And tell me if it works from your side ?
Attachments
cacti_graph_template_two_feeds_2024(1).zip
(4.43 KiB) Downloaded 17 times
Last edited by jackouille on Sat Mar 09, 2024 11:52 am, edited 2 times in total.
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

Or is there a simply way to duplicate a graph (a graph, not e template) that already works ?
That could be a workaround, what do you think ?
macan
Cacti Pro User
Posts: 912
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Missing Custom Data

Post by macan »

1.3.0 is develop version. It isn't for production now.

Go to Management-> Data Sources -> choose any of working datasources and you will see what is correct Index Type, Index Value a Output Type ID. I think that you have old template which is incompatible with new cacti.
Let the Cacti grow!
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Missing Custom Data

Post by jackouille »

In the meantime I found a workaround (on version 1.2.25) : duplicate the graph template then while prompted for the field I simply put 1 in each of them, graph is also created but the displayed popup doesn't look like exactly as others, it's simply in black and white. If you need it I can provide you a picture next time I create one.
So these fields are useless but you are asking for them, what's the added value ?
User avatar
TheWitness
Developer
Posts: 16929
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Missing Custom Data

Post by TheWitness »

Run the database_audit.php and find the issues. You have a non-nullable field that was changed recently to fix this. So, it looks like you upgrade did not work as expected. Report the output of the database_audit.php.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest