I’m adding new Hosts using the Check MK’s Web API in a python script.
Still facing a weird problem when adding hosts and creating them into folders.
Code looks like that:
ip_addr = str(ip_addresses[x])
folder_name = str(ordner[x])
I’m reading the informations from a excel file, which is working very well.
In my case, the foldername is named “Workstations”, it brings me the error “Invalid foldername. Only the characters a-z,A-Z,0-9, _ and - are allowed”
The question is - my folder’s name doesn’t contain any other characters as mentioned in the error message - you can see there are only Lower and upper-characters.
Where’s the problem and how can I fix it?
(I don’t have this problem every time, the error randomly appears)