-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xor encrypt not working when sending with send_nsca #2
Comments
My NSCA configuration works perfectly with Windows NSClient and no encryption. I made a test with XOR encryption and everything is also fine. I made a test with a Debian client and your command and everything is also ok. I suppose you know it but it is important to be sure that password are the same on server and client ... With my NSCA testings, I observed something quite strange and probably buggy ! I suppose we should stop buffer analysis when something matches ... I will make a try. Here are the receiver log file (I added some logs) when I use your command :
|
After more investigation, I found out that our NSCA module do not care about NSCA messages longer than 720 bytes ... in fact, the recent send_nsca use a NSCA payload of 4096 bytes, upon which you add 208 bytes for timestamp, host, service and other fields. Than, you get 4304 bytes sent from your client to our server. The NSCA module takes care of received data on a 720 bytes packet size ... so you have several check result readings (one per each 720 bytes). In almost every case, your check is considered and you have several rotten check results ... I am currently trying to change NSCA module behavior for dealing with short (512 bytes) and long (4096 bytes) payload . Probably, it should explain your problem with Xor encryption ? |
Well, I opened thi issue while at a customer's office. I'll try to reproduce it with my own configuration. It may also be send_nsca specific because it's not the first time I use NSCA without issue :( In my case the output was pretty short, so maybe it's not related to length. However this can be nother bug :D |
I will soon commit a new version of NSCA module that I am testing since this morning with a Windows NS Client agent and a Debian send_nsca, both of them with two different payloads (512 or 4095 bytes). |
one day we will just put curl on every windows/linux box, and we On Thu, Feb 27, 2014 at 3:05 PM, Frédéric MOHIER
|
:D I just commited a version that accepts NSCA 512 or 4096 bytes. I tested with Windows and Debian clients, 512 or 4096 bytes, with and without Xor encryption. |
you rocks |
Thanks |
From : ubuntu / debian repository
Version : 2.7.2 / 2.9.1
To reproduce :
with encryption enabled in the config file
The text was updated successfully, but these errors were encountered: