Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

simu/go-icinga2-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-icinga2-client

❗ This fork has been moved to vshn/go-icinga2-client

Icinga2 API client.

Getting started

import "github.com/Nexinto/go-icinga2-client/icinga2"

icinga, err := icinga2.New(icinga2.WebClient{
		URL:         "https://icinga.somewhere.com:5665,
		Username:    "icinga",
		Password:    "secret",
		Debug:       true,
		InsecureTLS: false})

List hostgroups

hostGroups, err := icinga.ListHostGroups()

Create a hostgroup

icinga.CreateHostGroup(icinga2.HostGroup{"mygroup"})

Delete a hostgroup

icinga.DeleteHostGroup("mygroup")

Supported Icinga objects

So far, supported are hostgroups, hosts and services.

About

Go bindings for the Icinga2 API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%