Giter VIP home page Giter VIP logo

ansible-nfsen's Introduction

Build Status - Master Build Status - Devel No Maintenance Intended

DEPRECATED/LOOKING FOR MAINTAINERS -> archived

Nfsen setup

Ansible role to set up nfsen Warning! this application seems not maintained. (last official update 1.3.7, dec 2014) Since Jan 2019, maxmind has discontinued geolite legacy which is a dependency for multiples nfsen plugins.

Requirements

No external dependencies.

Role Variables

The nfsen role has the following variables that can be overridden by inventory:

  • nfsen_version: The package name and version string, eg. nfsen-1.3.6p1.
  • nfsen_url: The URL of the nfsen package.
  • netmon: A dictionary to be used among several roles that describes monitored devices. Described below.
  • nfsen_php_timezone: The default timezone for PHP. Defaults to UTC.
  • nfsen_mail_from: Email address used by nfsen when sending email. Defaults to nobody@localhost.
  • nfsen_smtp_server: SMTP server to use when sending email. Defaults to localhost.
  • nfsen_syslog_facility: Syslog facility used by nfsen for logging. Defaults to daemon.
  • nfsen_colors: A list of hexadecimal colors to use for profiles. This is used if you do not define a color per netflow source.

The following variables control what paths are used by nfsen.

  • nfsen_bindir: Directory where binaries are located. Defaults to /usr/local/bin.
  • nfsen_libexecdir: Directory where internal binaries are located. Defaults to /usr/local/libexec/nfsen.
  • nfsen_confdir: Directory where configuration file is stored. Defaults to /etc.
  • nfsen_vardir: Directory where state files are stored. Defaults to /var/lib/nfsen.
  • nfsen_piddir: Directory where PID file and socket exist. Defaults to /var/run/nfsen.
  • nfsen_htmldir: Directory path of HTML and PHP files. Defaults to /var/www/nfsen.

The netmon dictionary should look something like (in YAML):

netmon:
    devices:
        - name: my_switch.example.net
          ext:
            nfsen:
              port: 9995
              col: #ff00ff
              type: netflow

The parameters to the netflow dictionary are:

  • port: The port nfcapd listens on for netflow data. Set to 0 if you do not want a collector started.
  • col: The color used in nfsen graphs
  • type: Can be either netflow or sflow.

For more information regarding netmon, please see: netmon.org.

Dependencies

Depends on sfromm.epel.

Example Playbook

A simple example:

- hosts: servers
  roles:
     - { role: sfromm.nfsen }

License

GPLv2

Author Information

See https://github.com/sfromm.

ansible-nfsen's People

Contributors

juju4 avatar sfromm avatar

Stargazers

Mark avatar

Watchers

 avatar  avatar

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.