disable/enable notifications via rest api
Posted: Fri Aug 04, 2017 2:34 pm
I found the below commands to disable/enable notifications via the rest API.
What are the rest API commands to disable/enable notifications for all services in a hostgroup, including the hosts?
curl -XPOST "http://192.168.x.x/nagiosxi/api/v1/conf ... u&pretty=1" -d "host_name=localhost&address=127.0.0.1&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7¬ifications_enabled=0&applyconfig=1"
curl -XPOST "http://192.168.x.x/nagiosxi/api/v1/conf ... u&pretty=1" -d "host_name=localhost&address=127.0.0.1&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7¬ifications_enabled=1&applyconfig=1"
Thanks,
Jeff
What are the rest API commands to disable/enable notifications for all services in a hostgroup, including the hosts?
curl -XPOST "http://192.168.x.x/nagiosxi/api/v1/conf ... u&pretty=1" -d "host_name=localhost&address=127.0.0.1&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7¬ifications_enabled=0&applyconfig=1"
curl -XPOST "http://192.168.x.x/nagiosxi/api/v1/conf ... u&pretty=1" -d "host_name=localhost&address=127.0.0.1&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7¬ifications_enabled=1&applyconfig=1"
Thanks,
Jeff