Skip to content

haidlir/golang-prtg-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-prtg-api-wrapper

Build Status Coverage Status Go Report Card GoDoc GoDoc
PRTG API WRAPPER for Golang Developer

Status

Experimental

Motivation

To be used by developers in my team, to fetch data from PRTG. Freely used by others according to the LICENSE.

How to Start

$ go get github.com/haidlir/golang-prtg-api-wrapper

Example

package main

import (
	"log"

	"github.com/haidlir/golang-prtg-api-wrapper/prtg-api"
)

func main() {
	// Configuration
	server := "https://prtg.paessler.com"
	username := "demo"
	password := "demodemo"

	client := prtg.NewClient(server, username, password)
	prtgVersion, err := client.GetPrtgVersion()
	if err != nil {
		log.Println(err)
	} else {
		log.Printf("The version of PRTG on %v is %v.", server, prtgVersion)
	}
}

More Example...

License

It is released under the MIT license. See LICENSE.

About

PRTG API WRAPPER for Golang Developer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published