Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.2 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.2 KB

go-naemon-broker-module

Go Report Card License: GPL v3

What is this

This is an NEB module API for Naemon written in Golang. This allows you to write NEB modules in Golang, which is otherwise only possible in C / C++.

It is using CGo therefor this is not plain Go, there you have to be careful, if you want to write a module.

Minimalistic-Example

main.go

Modules written with this API

If you have written a module yourself, let us know.

Build

The module has to be compiled as shared library so Naemon can load it.

You will have to install the naemon-dev package in order to find all required c header files.

Naemon:

  • go build -buildmode=c-shared -ldflags "-s -w" -o go-neb-wrapper-example.so