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