Skip to content

ConSol-Monitoring/go-neb-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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