Git Product home page Git Product logo

collectd-plugins's People

Contributors

annttu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

collectd-plugins's Issues

Example config

Could you include an example collectd config block for utilizing the plugin? Thanks!

module path, permissions and config

Some feedback. I tested this plugin under centos 7.8/fail2ban v0.11.1-10. I did the following changes to make it working:

  1. module path:
    import sys, string, os, logging
    import socket
    import collectd
    from fail2ban.client.csocket import CSocket
    from fail2ban.client.configurator import Configurator
  1. grant some permissons for collectd:
    r permission /etc/fail2ban/fail2ban.local
    rw permisson for /var/run/fail2ban/fail2ban.sock
    Every time, fail2ban service restart, the rw permission on /var/run/fail2ban/fail2ban.sock for collectd is lost. need to find some permanent, good and safe solution?

  2. a conf example :
    cat /etc/collectd.d/collectd.conf.d/fail2ban.conf
    LoadPlugin python
    <Plugin python>
    ModulePath "/opt/collectd/lib_develop"
    Import fail2ban2collectd
    </Plugin>

Test your collectd.

ls -al /opt/collectd/lib_develop/fail2ban2collectd.py
-rwxr-xr-x 1 root root 3923 Oct 12 11:19 /opt/collectd/lib_develop/fail2ban2collectd.py

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.