Question - Change host settings from CLI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Question - Change host settings from CLI

Post by bosecorp »

Hi

I would like to know if there is a way to modify host and services from the command line instead of the GUI.

I want to make at least 3 or 4 different settings in all my windows servers, and I want to be able to do it from the CLI instead of bulk changes.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Question - Change host settings from CLI

Post by Box293 »

Using the API in XI 5 you can target objects that already exist and they will get updated.

However you can't just change one value, you need to "define the whole object" for it to work.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Question - Change host settings from CLI

Post by bosecorp »

what about in XI 2014?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Question - Change host settings from CLI

Post by tmcdonald »

The API was introduced in XI 5 and we do not have a supported way of doing this in prior versions.
Former Nagios employee
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Question - Change host settings from CLI

Post by bosecorp »

thanks, you can close this ticket
Locked