Example #1
0
func newZabbixAPI(server string) *zabbix.API {
	return zabbix.NewAPI(server + "/api_jsonrpc.php")
}
Example #2
0
func initZabbix() string {
	api = zabbix.NewAPI(apiUrl)
	auth, err := api.Login(user, pass)
	must(err)
	return auth
}