[ZBX-23191] Cannot add template | Invalid parameter "/2/delay": value must be 0. Created: 2023 Aug 02  Updated: 2023 Dec 27  Resolved: 2023 Dec 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 6.4.4, 6.4.5
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Antoine Jézéquel Assignee: Edgar Akhmetshin
Resolution: Duplicate Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 11


Attachments: PNG File 2023-08-02 12_19_13-BIGEYE_ Configuration of templates.png     File BIGEYE_ Configuration of templates - Google Chrome 2023-08-03 09-30-34.mp4     File Screen Recording 2023-08-03 at 08.52.03.mov     PNG File Zabbix-Version.png     JPEG File Zabbix_errormessage_delay.jpg     PNG File image-2023-10-20-15-08-50-160.png     PNG File image-2023-10-20-15-08-56-519.png     PNG File image-2023-10-20-16-12-19-575.png     PNG File image-2023-10-20-16-14-01-804.png     File zbx_export_templates.yaml    
Issue Links:
Duplicate
duplicates ZBX-23003 Template(s) full clone fails Closed

 Description   

Steps to reproduce:

  1. Full clone Generic SNMP template.
  2. Rename the cloned template
  3. Click on Add

Result:
See atteched screenshot

 

I don't know why today, there is this error. I think it's an internal link error but i'm not sure.

Can you help me ?

 

Antoine



 Comments   
Comment by Edgar Akhmetshin [ 2023 Aug 03 ]

Hello

Please provide steps to reproduce the issue. Cannot reproduce with 6.4.5 and Generic SNMP:
Screen Recording 2023-08-03 at 08.52.03.mov

Regards,
Edgar

Comment by Antoine Jézéquel [ 2023 Aug 03 ]

Hello, i put the screen capture in attached files (BIGEYE_ Configuration of templates - Google Chrome 2023-08-03 09-30-34.mp4)

Comment by Edgar Akhmetshin [ 2023 Aug 03 ]

Provide the template export to the issue, as you can see - on 6.4 with latest official template there is no issues.

Comment by Antoine Jézéquel [ 2023 Aug 03 ]

Here is a screen of Dashboard with the zabbix version.

 

In attached files, you can retrieve the template export "Generic SNMP".

Comment by Edgar Akhmetshin [ 2023 Aug 11 ]

Not able to reproduce with provided template even with replaced/removed Generic SNMP template from 6.4.

Comment by Kai [ 2023 Sep 05 ]

I had the same/similar issue with Zabbix 6.4.3. The error message looked a bit different though:

 

I tried to copy the items manually from the template "Template Module Generic SNMP" to a new one and I was able to narrow the problem down to the single item "SNMP traps (fallback)" that could not be copied - even when I tried to copy that item manually.

 

Possible Reason:

In our "Template Module Generic SNMP" the "SNMP traps (fallback)" item did not contain a "delay" parameter which seems to be mandatory nowadays. So, we might have used an old template - we updatet Zabbix from 6.2 as far as I remember:

 items:
        - uuid: blahblahblahblah12938012389
          name: 'SNMP traps (fallback)'
          type: SNMP_TRAP
          key: snmptrap.fallback
          history: 2w
          trends: '0'
          value_type: LOG
          description: 'Item is used to collect all SNMP traps unmatched by other snmptrap items'
          logtimefmt: 'hh:mm:sszyyyy/MM/dd'
          tags:
            - tag: Application
              value: General

^^ no delay parameter
 
If you manually create a SNMP Trap item, the delay parameter is set to 0 (although it does not appear in the GUI, only in the export of the template).
 
Workaround:

  • Add a new "empty" template
  • Copy all Items from the Template "Template Module Generic SNMP" except the SNMP_TRAP item to the newly created template
  • Within the new template: manually create the "SNMP Trap" item (compare the parameters from the original one)
  • Copy all Triggers rom the Template "Template Module Generic SNMP" to the new template 
     
Comment by Neven [ 2023 Oct 20 ]

Hi,

just to add my experience 

Zabbix 6.4.6 (upgraded from 6.4.2)
Mariadb
Ubuntu 22.04 lts

I tried a full clone on the template that I already cloned before with 6.2 version (prior update) and got an error "/0/delay" Cannot add template.

Imported official Generic SNMP template for 6.4 and tried to Full Clone it but I got an error.

Comment by Neven [ 2023 Oct 20 ]

Update:

I looked in template file for delay parametar and it's there:
and here:

but I still didn't successfully cloned the template...

I deleted the item SNMP_TRAP and then cloned the template successfully, later manually added SNMP_TRAP item to cloned template...

Comment by Sven Stärk [ 2023 Dec 15 ]

There is already a ticket for this problem:  ZBX-23003

Generated at Sat Jun 28 11:41:41 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.