Coder Social home page Coder Social logo

nids-io / ampt-monitor Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 148 KB

Sensor alert monitor for the AMPT passive network tools monitor

License: BSD 2-Clause "Simplified" License

Python 100.00%
network-monitoring nids passive-check ampt-monitor

ampt-monitor's People

Contributors

dspruell avatar

Watchers

 avatar  avatar

ampt-monitor's Issues

Add HMAC auth support

Support authentication of requests from monitor to manager using HMAC as implemented with the generator.

Add version output support

Add support to AMPT Monitor commands to report version.

Additionally add support to report installed plugins and their versions.

Also include their version in debug output when loading the plugin.

Take care of unclean shutdown with Ctrl+C KeyboardInterrupt

Address busted shutdown at Ctrl-c/process termination.

^CTraceback (most recent call last):
  File "/Users/dspruell/bin/ampt-monitor", line 11, in <module>
Process Plugin[suricata_eve]:
Process Plugin[bro]:
    load_entry_point('ampt-monitor', 'console_scripts', 'ampt-monitor')()
  File "/Users/dspruell/devel/ampt-monitor/core/ampt_monitor/cli.py", line 100, in main
    ampt_monitor.run()
  File "/Users/dspruell/devel/ampt-monitor/core/ampt_monitor/amptmonitor.py", line 103, in run
evt = queue.get()
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/queues.py", line 94, in get
res = self._recv_bytes()
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/connection.py", line 216, in recv_bytes
    buf = self._recv_bytes(maxlength)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
    buf = self._recv(4)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/connection.py", line 379, in _recv
  File "/Users/dspruell/devel/ampt-monitor/plugins/suricata_eve/ampt_monitor_suricata_eve/plugin.py", line 39, in run
    for eve_log in self._tail_logfile(self.config['path']):
  File "/Users/dspruell/devel/ampt-monitor/plugins/suricata_eve/ampt_monitor_suricata_eve/plugin.py", line 89, in _tail
_logfile
    time.sleep(self.interval)
Traceback (most recent call last):
KeyboardInterrupt
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/dspruell/devel/ampt-monitor/plugins/bro/ampt_monitor_bro/plugin.py", line 41, in run
    for bro_log in self._tail_logfile(self.config['path']):
  File "/Users/dspruell/devel/ampt-monitor/plugins/bro/ampt_monitor_bro/plugin.py", line 91, in _tail_logfile
    sleep(self.interval)
KeyboardInterrupt
    chunk = read(handle, remaining)
KeyboardInterrupt

Possible resources:

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.