Open spea1 opened 7 years ago
Sure it is. This PR: https://github.com/Alignak-monitoring-contrib/alignak-module-nsca/pull/9 is made to dump the client IP to the debug log ...
Making it dumped to the INFO log level would have spammed the receiver log file ... this will be possible, IMHO, when we will adress this issue: #10.
With #10, when an host is spamming your receiver, you will be able to blacklist the host which you will have found in the receiver log file 😉
works great thanks!
[2017-10-12 18:01:38 CEST] INFO: [alignak.module.nsca] Connection from: ('1.2.3.4', 64654)
[2017-10-12 18:01:38 CEST] WARNING: [alignak.module.nsca] Packet output decoding error: 'ascii' codec can't decode byte 0x89 inposition 37: ordinal not in range(128)
[2017-10-12 18:01:38 CEST] WARNING: [alignak.module.nsca] Faulty NSCA packet content: e60f2b3ef18334ba9f37cd624d1e284e8939959107
e177346bceb59122620a311fc97e6fcde2ac4b818fd2c6dc48911ddcbe43ed4a9da04a72a0c11a0df6c908506c9e84d6682132aab30cff1b0b09d08125ce4119
...
...
d877346bceb59122620a311fc97e6fcde2ac4b818fd2c6dc48911ddcbe43ed4a9da04a72a0c11a0df6c908506c9e84d6682132aab30cff1b0b0665
[2017-10-12 18:01:38 CEST] INFO: [alignak.module.nsca] Dropping packet with stale timestamp - packet was 1507824098.2 seconds old. Timestamp: 0
I had the same problem as you 😉
How about a configuration parameter in the mod-nsca.cfg for the problem. default no log otherwise entry log level
I can not identify incorrectly configured nsca clients in the receiverd.log. For example wrong encryption_method setings It is possible to write the source ip to the receiverd.log?