Hi Ryan, please take in to account that what you see on the Web Gui is what you have in the .wato file below the folder:
OMD[test]:~/etc/check_mk/conf.d/wato/local_monitoring/za$ cat .wato
{‘attributes’: {},
‘lock’: False,
‘lock_subfolders’: False,
‘num_hosts’: 0,
‘title’: u’ZA’}
OMD[test]:~/etc/check_mk/conf.d/wato/local_monitoring/za$
Hope that helps


···
From: checkmk-en checkmk-en-bounces@lists.mathias-kettner.de
On Behalf Of Ryan Stokes
Sent: Freitag, 24. Mai 2019 16:04
To: Andreas Till Andreas.Till@netzint.de; checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Check_mk API folder structures
I did think about it being an issue with the capitalization of some of the letters, I copied the folder structure from the web interface and just added the “/” to ensure it was identical
Ryan Stokes
Help Desk Engineer (Team Leader)
DDI
020 7471 3291
M
07927218034
O
020 7471 3270
W
knowall.net
18
Spring Street London W2 3RA
From: checkmk-en checkmk-en-bounces@lists.mathias-kettner.de
On Behalf Of Andreas Till
Sent: 24 May 2019 10:49
To: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Check_mk API folder structures
I once run into a similar problem.
I remember it has something to do with the capitalization. You should check your API call for capital letters.
--
Mit freundlichen Grüßen,
**Andreas Till**
**Netzint GmbH** | IT-System Engineer
Office: +49 89 21538289-1
Web: [www.netzint.de](http://www.netzint.de/)
Mail: andreas.till@netzint.de
Address: Netzint GmbH, Terminalstraße Mitte 18, 85356 München Flughafen, Germany
NEU und exklusiv in unserem Online-Shop: Hocheffiziente und umweltfreundliche Thin- und Zero-Clients von Atrust. Überzeugen Sie sich selbst unter:
[www.thinclient-shop.com/atrust](http://www.thinclient-shop.com/atrust)
Geschäftsführer/Managing Directors: Maurice Cazautet, Kai Wursthorn | Firmensitz/Head Office: Gütenbach | Amtsgericht/Local Court: Freiburg i. Br. | Handelsregister/Commercial Register: HRB 717512
Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail und der darin enthaltenen Informationen sind nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately
and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Am Freitag, den 24.05.2019, 09:22 +0000 schrieb FRANK Michael:
> I did a quick test:
> drwxrwx---. 2 test test 4096 May 24 09:21 za/
> drwxr-xr--. 7 test test 4096 Oct 15 2018 ZA/
> za is from WATO web gui and ZA is from API
> **From:** Ryan Stokes <Ryan@knowall.net>
> **Sent:** Freitag, 24. Mai 2019 11:18
> **To:** FRANK Michael <michael.frank@faurecia.com>;
> checkmk-en@lists.mathias-kettner.de
> **Subject:** RE: Check_mk API folder structures
> No we did this through the WATO web interface
> Ryan Stokes
> Help Desk Engineer (Team Leader)
> **DDI**
> 020 7471 3291
> **M**
> 07927218034
> **O**
> 020 7471 3270
> **W**
> [knowall.net](http://www.knowall.net/?utm_source=knowall&utm_medium=email&utm_campaign=signature)
> [ 18
> Spring Street London W2 3RA](https://www.google.co.za/maps/place/Knowall+IT+Ltd/@51.5149371,-0.1762274,15z/data=!4m5!3m4!1s0x0:0x52a75cbf37f092a!8m2!3d51.5149371!4d-0.1762274)
> [](http://www.knowall.net/?utm_source=knowall&utm_medium=email&utm_campaign=signature)
> **From:** FRANK Michael <michael.frank@faurecia.com>
> **Sent:** 24 May 2019 09:49
> **To:** Ryan Stokes <Ryan@knowall.net>;
> checkmk-en@lists.mathias-kettner.de
> **Subject:** RE: Check_mk API folder structures
> Hi,
> Did you create the folder manually with mkdir on OS level?
> **From:** checkmk-en <checkmk-en-bounces@lists.mathias-kettner.de>
> **On Behalf Of** Ryan Stokes
> **Sent:** Freitag, 24. Mai 2019 10:27
> **To:** checkmk-en@lists.mathias-kettner.de
> **Subject:** [MARKETING] [Check_mk (english)] Check_mk API folder structures
> We are starting to automate more with chef which will add nodes to Check mk for us. This is working but the issue we have is that its creating a duplicated folder structure from the one we have in place. Below is after
> adding a test host with the API
> The folder on the left was created manually but the folder on the right was created when adding a host via the API. Is this expected?
> Running check mk RAW 1.4.0P34
> Ryan Stokes
> Help Desk Engineer (Team Leader)
> **DDI**
> 020 7471 3291
> **M**
> 07927218034
> **O**
> 020 7471 3270
> **W**
> [knowall.net](http://www.knowall.net/?utm_source=knowall&utm_medium=email&utm_campaign=signature)
> [ 18
> Spring Street London W2 3RA](https://www.google.co.za/maps/place/Knowall+IT+Ltd/@51.5149371,-0.1762274,15z/data=!4m5!3m4!1s0x0:0x52a75cbf37f092a!8m2!3d51.5149371!4d-0.1762274)
> [](http://www.knowall.net/?utm_source=knowall&utm_medium=email&utm_campaign=signature)
>
> This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately
> and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited. Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus,
> interception or damage to your system.
> Click [
> here](https://www.mailcontrol.com/sr/IVyRdRhumYnGX2PQPOmvUsaHTTHE2WHLq2eQBgFe324QJMx_3rXNMSqv2vng5MfMGUMtCQHeCff4eW8epClCcw==) to report this email as spam.
>
> This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately
> and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited. Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus,
> interception or damage to your system.
> ```
> _______________________________________________
> ```
> checkmk-en mailing list
> ```
> checkmk-en@lists.mathias-kettner.de
> ```
> ```
> ```
> Manage your subscription or unsubscribe
> ```
> [https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en](https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en)
> ```
</details>