Nagios XI Create Service VERSION 1


This handler creates a new service object. API Documentation


Parameters

NameDescription
error handlingDetermine what to return if an error is encountered.
return responsetrue or false. Determines if Kinetic Task returns the Nagios response output.
host nameHost name to apply to the new host.
service descriptionService description for the new service
check commandThe command to run with command parameters. Example: check_ping\!3000,80%\!5000,100%
max check attemptsMax number of attempts to try adding the host.
check intervalTime in minutes for how often the service checks.
check periodTime period name for when checks take place for this host.
retry intervalTime in minutes for how often the service is checked after a failed check.
contactsNagios usernames to notify for alerts with this host. Comma seperated. Use this parameter *or* the contact groups parameter.
contact groupsNagios group names to notify for alerts with this host. Comma seperated. Use this parameter *or* the contacts parameter.
notification intervalInterval check period in minutes for alert notifications on this host.
notification periodNotification time period name. Determines the time period that notifications take place in.
apply config1 or 0 for true or false. 1 will restart the Nagios Core service and apply the change.

Sample Configuration

NameDescription
error handlingRaise Error
return responseyes
host nametestapihostapply
service descriptionPING
check commandcheck_ping\!3000,80%\!5000,100%
max check attempts2
check interval5
check period24x7
retry interval5
contactsnagiosadmin
contact groups
notification interval5
notification period24x7
apply config0

Results

NameSample Result
Handler Error MessageError message if set to return - blank if no errors.
Nagios XI ResponseNagios response if set to return.

Changelog

No Changelog Available.