New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Automatic Graph Creation to utilise Data Templates with Overriden Values #4182
Comments
Yea, I've been thinking about this for a while now. Your suggestion seems reasonable. Do your examples have defaults? I was thinking if the default is 'blank', that then we would not create automatically. Does that make sense? |
My examples do not have defaults. So, when the data sources are created, they are very, very broken, and .. un-repairable from the GUI. I even get a database error splashed up on the data source edit screen. So, likely the easiest avenue to pursue is to simply prohibit automatic creation if there are empty fields in the data source template. Would need to think about implications for empty fields in the graph template. It's probably just a few key fields that really are of the most concern - that would result in truly broken graphs/data sources. I was thinking about a couple flip-side scenarios to this, but honestly they all seem to still result in creating data sources with problems. I think you really need to be actively creating the graphs to then be appropriately prompted to enter information to the empty fields on the data sources. The field entry is a manual process, so the graph creation should likely be manual too. I would suggest that AUTOM8 throw a log entry indicating that it's skipping over certain graphs since they need manual user input. That will help with future questions of "Hey why didn't these graphs get created for me?" I do think that if the fields are overridden, but they do have a default value (ie. not empty), then perhaps the intent of the template designer was to have the graphs created with those defaults. At least the data sources are created with valid information, and the user can then go back and tweak the values if they choose to. |
- Automatic Graph Creation - Data Templates with Overriden Values
Fixed. |
Okay, tested on my side now and works. |
Fixed, thanks a lot. |
Hi @TheWitness , no error now but graphs aren't created after autom application: Graph rules are matched correctly. Thanks a lot. |
SNMP Query based graphs should render now.
Okay, should be working now. |
Okay, I have tested all methods and creation is blocked not only during automation, but manual graph creation. |
Actually, just found an issue. |
Automatic Graph Creation - Data Templates with Overriden Values
Testing completed now. |
It's ok now, thanks a lot. |
First, you have automatic graph creation turned on. Then, you create a new graph template which references a data template that has several values overridden ... say "Name", "Internal Data Source Name" and "OID".
Now you add this graph template to a host. Cacti immediately creates the graph. But it does not prompt you for the overridden values - so the Name, Internal Data Source Name and OID are all left blank
My work-around is to temporarily disable automatic graph creation, and manually create the graphs so all the data template prompts come up correctly.
But I'm not sure how to advise on this really ... perhaps there are cases where Cacti should prohibit the automatic creation of graphs? Or ... ?
The text was updated successfully, but these errors were encountered: