go-naemon-broker-module
What is this
This is an NEB module API for Naemon / Nagios 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.
Limitations
This API works with:
Nagios 3 and Icinga 1 are only working without the daemon mode!
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 Nagios can load it.
Naemon:
- go build -tags naemon -buildmode=c-shared -ldflags "-s -w"
Nagios 3:
- go build -tags nagios3 -buildmode=c-shared -ldflags "-s -w"
Nagios 4:
- go build -tags nagios4 -buildmode=c-shared -ldflags "-s -w"