Bulk creation of folders, rules and hosts
We have automated our setup completely. Now it does take a very long time to (re)create the whole structure of hosts, rules and folders.
We would prefer to feed the api not with just one folder, one host and one rule but with a whole list.
Comments: 10
Oldest
•
Newest
•
Most likes
•
Fewest likes
-
04 Apr, '24
Mohamed Saleh AdminDear Markus,
Thank you for posting your idea on our portal!
To help us better understand, could you provide more details about your use case or a sample of the list, for example is it a single list or a list for each object type.
Warm regards,
Your Checkmk team -
05 Apr, '24
MarkusFor the folder I suggest something like this
{
"name": "[production,integration,test]",
"title": "[Production Hosts,Integration Hosts,Test Hosts]",
"parent": "/",
"attributes": {
"tag_criticality": "[prod,int,test]"
}
} -
08 Apr, '24
Mohamed Saleh AdminThanks Markus,
You also mentioned bulk actions for rules. Could you provide more details about your use case here? -
12 Apr, '24
MarkusI would like to have the possbility to post at once several "value_raw".
"value_raw[0]":
"value_raw[1]": -
17 Apr, '24
Mohamed Saleh AdminHi Markus,
Thanks for the feedback.
We are curious about your use case for this idea. Do you want to recreate your setup because e.g., you are deploying a new site and want to keep everything the same? We also would like to know more about the business problem you want to solve with having the ability to do bulk action, e.g., is it to make the process faster? -
13 May, '24
MarkusActually we rebuild our servers once a day. The idea behind is to do nothing at all by hand .
Yes it would make the deployment faster if we were able to send several similar commands with one single command. -
15 May, '24
Niklas Pulina AdminHi Markus,
Thank you for your feedback. Do I understand you correctly in a sense that you rebuild your complete monitoring server every day—together with all its hosts, rules, etc.?
If so, could you please elaborate on the reason for this? That would help us understand your use case.
Many thanks in advance!
Best, Niklas -
17 May, '24
JodokI believe https://exchange.checkmk.com/p/fileconnector can fulfill this request already.
-
08 Jun, '24
AndyI dont see a big use-case for this. Creating folders using the Rest-API does not take long, it would only take long time if each host would be in its own folder.
We use the bulk function to create multiple hosts, we create 500 hosts in each bulk, it takes around 10 minutes to create 20.000 hosts. -
12 May, '25
MarkusIn our case folder creation takes about ten minutes. Whereas the bulk host creation (that is already possible) is a matter of seconds.
So for now adding folders would be helpful.