Would it be possible to write a script to add the parents of my hosts without me having to do it manually on all my hosts?
I know we do have the Parent Scan on Check_MK but I’m trying to find a way where I’ll be able to tell who’s the parent of a given host.
I wrote such script, it works just fine with the other features we want but when it comes to the parents, it writes to the host.mk file (following the spacing and syntax of the structure) but is, somehow, removed after I restart my site.
All my other features (alias, agent type, criticality, networking segment, IP address family, etc) stay exactly the same as I had in my .csv file but the parents field is still empty (default value) even when the field in the .csv file is not empty.
for this to achieve the WATO web api should be the best way. With the method “edit_host” it is possible to set the host attributes and the parent is only a host attribute.
Try to get some information of existing hosts with “get_host” to see how the attributes should look like.
Would it be possible to write a script to add the parents of my hosts without me having to do it manually on all my hosts?
I know we do have the Parent Scan on Check_MK but I’m trying to find a way where I’ll be able to tell who’s the parent of a given host.
I wrote such script, it works just fine with the other features we want but when it comes to the parents, it writes to the host.mk file (following the spacing and syntax of the structure) but is, somehow, removed after I restart my site.
All my other features (alias, agent type, criticality, networking segment, IP address family, etc) stay exactly the same as I had in my .csv file but the parents field is still empty (default value) even when the field in the .csv file is not empty.
for this to achieve the WATO web api should be the best way. With the method “edit_host” it is possible to set the host attributes and the parent is only a host attribute.
Try to get some information of existing hosts with “get_host” to see how the attributes should look like.
Would it be possible to write a script to add the parents of my hosts without me having to do it manually on all my hosts?
I know we do have the Parent Scan on Check_MK but I’m trying to find a way where I’ll be able to tell who’s the parent of a given host.
I wrote such script, it works just fine with the other features we want but when it comes to the parents, it writes to the host.mk file (following the spacing and syntax of the structure) but is, somehow, removed after I restart my site.
All my other features (alias, agent type, criticality, networking segment, IP address family, etc) stay exactly the same as I had in my .csv file but the parents field is still empty (default value) even when the field in the .csv file is not empty.