Git Product home page Git Product logo

send_nsca's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

send_nsca's Issues

multiple results posting

Sorry as I haven't been able to test this but looking at the source, I don't see any code which allows making a multiple results post to the nsca server which services are separted with a CTRL+W or 0x017(I think).

Is this possible as I can only see individual posting, if not, can this be implemented?
I could give it a try once I fix up my server to develop and submit a patch but since you know your code quicker, thought I'd ask first.

send_service api throws divide by zero error when password is empty and encryption_method=1

stack trace -

  6         sender = NscaSender(**sender_args)

----> 7 sender.send_service(hostname, service_name,status, message)

/usr/lib/python2.6/site-packages/send_nsca/nsca.pyc in send_service(self, host, service, state, description)
355 crypter = self._cached_crypters[conn]
356 packet = _pack_packet(host, service, state, description, timestamp)
--> 357 packet = crypter.encrypt(packet)
358 conn.sendall(packet)
359

/usr/lib/python2.6/site-packages/send_nsca/nsca.pyc in encrypt(self, value)
99 value_s = map(ord, list(value))
100 repeated_iv = map(ord, list(int(math.ceil(float(len(value)) / len(self.iv))) * self.iv))
--> 101 repeated_password = map(ord, list(int(math.ceil(float(len(value)) / len(self.password))) * self.password))
102 xorer = functools.partial(apply, int.xor)
103 xor1 = map(xorer, zip(value_s, repeated_iv))

ZeroDivisionError: float division

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.