westcode-solutions / naemon-autodiscover

Function to add Host/Services in Naemon from nemon.log
0 stars 0 forks source link

Thinking of we should go the thruk api way #2

Open wcs-bjogus opened 2 years ago

wcs-bjogus commented 2 years ago

Object configuration notes To create brand new object configurations (e.g hosts), you MUST use POST /config/objects as documented further down.

POST /*//config is only used for overwriting existing objects.

After object configuration changes, use the following sequence of steps (similar to the GUI object config tool):

1) GET /config/diff

a) At this point you can revert the changes by using POST /config/revert 2) POST /config/save

3) POST /config/check

4) POST /config/reload

Make sure to check the output of each step