yelp / send_nsca Goto Github PK
View Code? Open in Web Editor NEWPure-python NSCA client
License: GNU Lesser General Public License v2.1
Pure-python NSCA client
License: GNU Lesser General Public License v2.1
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.
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
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.