โ This fork has been moved to vshn/go-icinga2-client โ
Icinga2 API client.
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})
hostGroups, err := icinga.ListHostGroups()
icinga.CreateHostGroup(icinga2.HostGroup{"mygroup"})
icinga.DeleteHostGroup("mygroup")
So far, supported are hostgroups, hosts and services.