How to use the ICINGA API to modify a service notification contact

This forum was archived to /woltlab and is now in read-only mode.

  • HI,


    Modify the Service attribute contact with the ICINGA API does not take effect


    Notification config:



    Use the ICINGA API to create service monitoring



    Modify Service Notification attr from ICINGA API:


    Code
    1. curl -k -s -u root:xxxxxxx \
    2. -H 'Accept: application/json' \
    3. -X POST \
    4. 'https://10.90.0.81:5665/v1/objects/services/l-jyftest1.ops.beta.cn0!procs_crondd' \
    5. -d '{ "templates": ["generic-service-1x2x5"], "attrs": { "host_name": "l-accnting6.pay.dev.cn0" , "check_command": "nrpe","vars.nrpe_command": "procs_crond", "vars.notification.mail": { "users": ["kai.duan", "yufeng.ji", "mika.liu"]} }}'


    Use the ICINGA API to check the latest service status



    Use the ICINGA API to query the latest service Notification object



    Notification object contact is not updated;(