Git Product home page Git Product logo

go-neb-wrapper's People

Contributors

dependabot[bot] avatar griesbacher avatar sni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

nook24

go-neb-wrapper's Issues

Is this production ready?

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.

Can't compile the example with Ubuntu 16 / golang 1.10

I can't compile the module with golang 1.10. I tried the following procedure:

  • Install golang 1.10
  • Install naemon to /opt/naemon
  • Clone this repository
  • Run make

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.