Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Check_MK exception: Unknown tag group snmp_community #40

@cboseck

Description

@cboseck

Hello,

I am facing the issue that you can't create a host with snmp-host.
The response from the exeption message says: "Check_MK exception: Unknown tag group snmp_community".

To reproduce this I created this test:

def test_add_host_with_attributes():
   api.add_host('host00', tags={'snmp_community': 'public', 'tag_snmp_ds': 'snmp-v2'})
   assert api.get_host('host00')['attributes']['snmp_community'] == 'public'
   assert api.get_host('host00')['attributes']['tag_snmp_ds'] == 'snmp-v2'

The problem is that always the 'tag_' prefix gets added so 'snmp_community' can't be found.

Removing this solved my problem.
I guess I could use the 'custom_attrs' param, but then I would need to build a special-case.
Is there a reason the the tag_ prefix gets added?

Have a nice day

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions