consol-monitoring / go-neb-wrapper Goto Github PK
View Code? Open in Web Editor NEWwrite naemon neb broker modules in golang ๐
License: GNU General Public License v3.0
write naemon neb broker modules in golang ๐
License: GNU General Public License v3.0
Depending on the amount of Events the Core freezes after a few seconds.
I can't compile the module with golang 1.10. I tried the following procedure:
This is the result:
root@nagtest:~/go/src/github.com/ConSol/go-neb-wrapper# make
go get golang.org/x/tools/cmd/goimports
goimports -w .
go tool vet -all -shadow -assign -atomic -bool -composites -copylocks -nilfunc -rangeloops -unsafeptr -unreachable .
gofmt -w -s .
go build -tags naemon -buildmode=c-shared -ldflags "-s -w -X main.Build=42e4d17"
# github.com/ConSol/go-neb-wrapper/neb
/opt/naemon/lib/libnaemon.so: undefined reference to `dlopen'
/opt/naemon/lib/libnaemon.so: undefined reference to `dlclose'
/opt/naemon/lib/libnaemon.so: undefined reference to `floorf'
/opt/naemon/lib/libnaemon.so: undefined reference to `ceilf'
/opt/naemon/lib/libnaemon.so: undefined reference to `dlerror'
/opt/naemon/lib/libnaemon.so: undefined reference to `dlsym'
collect2: error: ld returned 1 exit status
# github.com/ConSol/go-neb-wrapper/neb
neb/logWrapper.go: In function โLogโ:
neb/logWrapper.go:21:1: warning: format not a string literal and no format arguments [-Wformat-security]
void Log(int lvl, char* data) { nm_log(lvl, data); }
^
Makefile:23: recipe for target 'build_naemon' failed
make: *** [build_naemon] Error 2
Did I miss something?
Thanks!
Once in a while I'm dreaming of having a HTTP API for Naemon. However, implementing a Web Server in C doesn't sound like fun to me but it shouldn't be too complicated with Go. Before I start fiddling around with this I just wanted to ask you if you are using this in production on a Naemon system at the moment?
If this approach is causing known memory leaks, stability issues or something like this than it would be good to know upfront.
I'm not interested in the Nagios compatibility and would most likely fork the repo to remove all Nagios references.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.