Nagios rest api to create multiple object in static folder

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
scott han
Posts: 6
Joined: Tue Oct 10, 2017 5:41 pm

Nagios rest api to create multiple object in static folder

Post by scott han »

Hi there,
I have a few questions regarding creating objects using rest api.
1. is it possible to create multiple objects (e.g. hosts, services,servicegroup, timeperiods) in one rest api call?
2. If 1 is yes, is it possible to put these configure definitions as a file, then use that file as a parameter to the rest api?
3. is it possible to create these objects as static, like those under nagios/etc/static folder?

Thanks a lot for your help.

Best Regards,
scott
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios rest api to create multiple object in static fold

Post by scottwilkerson »

1.) no
2.) no, however you can create objects on the XI server by placing the file in /usr/local/nagios/etc/import and running apply configuration through the rest API
3.) Not through the API, but you can simply place the files on the server in the static directory and run apply configuration through the rest API
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scott han
Posts: 6
Joined: Tue Oct 10, 2017 5:41 pm

Re: Nagios rest api to create multiple object in static fold

Post by scott han »

Thanks for the reply.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios rest api to create multiple object in static fold

Post by cdienger »

Did you have any further questions or are we okay to lock this thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scott han
Posts: 6
Joined: Tue Oct 10, 2017 5:41 pm

Re: Nagios rest api to create multiple object in static fold

Post by scott han »

Thanks, that's all for now
Locked