We have a working service creation via API using the following, however the hostname is used as the config_name every time
Code: Select all
/nagiosxi/api/v1/config/service?apikey=####Code: Select all
'host_name' := 'server.tld'
'service_description' := 'Check thing.service'
'check_command' := 'check_systemctl!thing.service!!!!!!!'
'max_check_attempts' := 3
'check_interval' := 15
'retry_interval' := 5
'check_period' := '24x7'
'contact_groups' := 'oncall_grp'
'notification_interval' := 5
'notification_period' := '24x7'
'notes' := 'Service config created via Puppet'
'force' := 1
'applyconfig' := 1
Is there a parameter we can set to specify the Config Name for a service?