My template not working

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
abolatov
Posts: 2
Joined: Wed Jul 07, 2021 3:10 am

My template not working

Post by abolatov »

Hello.
I want to create a template for collecting several metrics at once.

Create Data Input Method:
- name: My Host Resources
- input fields: host_id (special field)
- output fields: uptime, mem_size, mem_used, cpu_util, load_1m, load_5m, load_15m

Create Data Source Template:
- name: My Host Resources
- method: My Host Resources
I add data source items and link them to the corresponding output fields.

Сreate 3 Graph Template:
1. My Host Resources (Usage); data sources: uptime, load_1m, load_5m, load_15m
2. My Host Resources (CPU); data sources: uptime, cpu_util
3. My Host Resources (Memory); data sources: mem_size, mem_used

Then I create a new device (localhost).
I go to the "New Graphs" menu. But in the list of available Graph Templates, I don't have my templates.
if you edit a template with the "Multiple instances" option enabled, the template appears in the list of available ones.
But when creating the Graph, I get an error: "Graph Not created for My Host Resources (Usage) due to bad data"
And no Graph is generated.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: My template not working

Post by netniV »

You need to update to a later version. The Data Source Verification was not quite right before 1.2.18
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
abolatov
Posts: 2
Joined: Wed Jul 07, 2021 3:10 am

Re: My template not working

Post by abolatov »

Updated. Nothing has changed, same error.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: My template not working

Post by netniV »

Have you updated to the latest development sources of the 1.2.x branch? That will likely be released next weekend provide there are no major issues.
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 4 guests