Nagios XI Create Hostgroup logo

Nagios XI Create Hostgroup Version 1

This handler creates a new hostgroup object. API Documentation

Parameters

Name Description
error handling Determine what to return if an error is encountered.
return response true or false. Determines if Kinetic Task returns the Nagios response output.
hostgroup name New hostgroup name to create.
alias Alias to apply to hostgroup.
apply config 1 or 0 for true or false. 1 will restart the Nagios Core service and apply the change.

Sample Configuration

Name Description
error handling Raise Error
return response yes
hostgroup name testapihostgroup
alias 127.0.0.1
apply config 0

Results

Name Description
Handler Error Message Error message if set to return - blank if no errors.
Nagios XI Response Nagios response if set to return.

Changelog

Nagios XI Create Hostgroup v1 (2017-11-26)

  • Initial version. See README for details.


Related Handlers

Nagios XI Apply Config
This handler runs the apply config command which triggers a Nagios Core restart.
Nagios XI Create Host
This handler creates a new Nagios XI host object.
Nagios XI Create Servicegroup
This handler creates a new Nagios XI hostgroup object.
Nagios XI Retrieve Users
This handler retrieves user records from the Nagios XI system.
Nagios XI Delete Host
This handler deletes a Nagios XI host object.
Nagios XI Retrieve System Status
This handler retrieves the Nagios Core system status.
Nagios XI Import Config
This handler runs the import command which imports all configuration files into the CCM. Nagios Core is *not* restarted.
Nagios XI Delete User
This handler deletes a Nagios XI user object.
Nagios XI Retrieve Objects
This handler retrieves object records from the Nagios XI system.
Nagios XI Delete Service
This handler deletes a Nagios XI host object.
Nagios XI Create Service
This handler creates a new Nagios XI service object.
Nagios XI Create User
This handler creates a new Nagios XI user object.