API Object modification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eltrasimaco
Posts: 75
Joined: Thu Aug 02, 2012 7:15 am

API Object modification

Post by eltrasimaco »

Hi,
I want to change the check_period value in a list of services; how can I accomplish this? in the API docs, I only see "add" and "remove" objects, not modify; maybe getting values, deleting,replacing values and writing? any example around for this?
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: API Object modification

Post by scottwilkerson »

The easiest way to to change multile at the same time is to use the Bulk Host Modification tool

Configure -> Core Config Manager -> Tools -> Bulk Modifications Tool

You will choose " Change a Single Config Option"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
eltrasimaco
Posts: 75
Joined: Thu Aug 02, 2012 7:15 am

Re: API Object modification

Post by eltrasimaco »

Thanks, but the aim was trying to learn how can things be done with the API; the question is "how can I change a host/service value by API Means"
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: API Object modification

Post by scottwilkerson »

eltrasimaco wrote:Thanks, but the aim was trying to learn how can things be done with the API; the question is "how can I change a host/service value by API Means"
Got it. Yes you are correct this isn't available currently, however it is being developed already for a future release. I unfortunately do not have the timing of when this will be available.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
eltrasimaco
Posts: 75
Joined: Thu Aug 02, 2012 7:15 am

Re: API Object modification

Post by eltrasimaco »

OK, will wait for that feature then
Thanks!
Locked