Issue: When creating new Data Sources the name is blank

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

Moderators: Developers, Moderators

Post Reply
eventhorizons
Posts: 2
Joined: Thu Aug 05, 2021 2:12 am

Issue: When creating new Data Sources the name is blank

Post by eventhorizons »

First, let me express my thanks for all the work people put in supporting this utility. I have been using it for a great many years to monitor my property, so my use case is not totally typical.

I am having an issue where I can't seem to edit names of items, such as Graphs and Data Sources. I suspect that this is some kind of database corruption.

In February, I upgraded my Cacti installation to 1.2.15 from 1.1.37. Running on a CentOS 7 VM.

Today I went to add some graphs. When I finish creating a new data source the name comes up blank on the data source list. If I attempt to Reapply Suggested Names, it has a valid suggestion but nothing changes. There were a number of other places where I was trying to change the names of things to no avail. The changes would appear to save successfully, but leaving and coming back they would have reverted. I ended up deleting some graphs and creating new ones. Even on the new graphs I cannot change the graph names.

I have run the database repair script. It claimed to have found "13 Invalid Data Input Data Rows based upon template mappings found in Data Templates". Took a snapshot of the VM, backed up the database and ran --force. The rows were reportedly removed from the data templates.

Any guidance, suggestions or insight would be appreciated. Thanks.

Update: For some reason now I can edit the graph Title/Name! Not sure exactly what changed that.
Still get a blank name on the list when I create a new data source. The name shows properly when I delete them.

Image
eventhorizons
Posts: 2
Joined: Thu Aug 05, 2021 2:12 am

Re: Issue: When creating new Data Sources the name is blank

Post by eventhorizons »

Resolved!

My home-made "Data Source Template" had in it's name "|host_description| - Kilowatt-Hours - |query_ref|"

"query_ref" was probably originally used to fill in the detail name, but something was lost along the way.

My guess is that I had something in there that did not make the jump across the upgrade. I had created it many years ago!

This value being invalid was apparently causing the list to not populate the name properly, leaving it blank.

I removed "query_ref", so when I create a new data source using the template I simply fill in the name manually.

Seems to be working now.

Part of my difficulty was the behavior seemed inconsistent. The name would show and then it wouldn't.

What got me on the right track was I had several other home-brew Data Source Templates, some of which worked and some didn't. Experimentation zeroed in on the issue.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests