We already have code that does this, but simple tests make it seem like it's not happy with this:
Using a post to:
https://nagiosxi-pgh02.eagleaccess.com/ ... y=lmcc2lbq
With a body like this:
Code: Select all
{"host_name": "pghorchest04.eagleinvsys.com", "hostgroups": ["PGH_Infrastructure","linux_server"], "max_check_attempts": "3", "check_period": "24x7","notification_interval": "60", "notification_period": "24x7","contacts": ["EagleCSI"], "address": "10.70.7.74"}Code: Select all
host_name=pghorchest04.eagleinvsys.com&hostgroups=linux_server&max_check_attempts=3&check_period&24x7¬ification_interval=60¬ification_period=24x7&contacts=EagleCSI&address=10.70.7.74
-D