Giter VIP home page Giter VIP logo

full-automated-nagios's Introduction

Full Automated Nagios

Python script to install/configure Nagios server and Nrpe agents to all client servers.

Program components are the following:

  • clients.txt - List of IP addresses for all Nagios clients.
  • nagios-clients.py - Automatic installation of Nagios Server.
  • nagios-server.py - Automatic installation of Nagios Clients.
  • run.py - Installation lunch script with an interactive menu.

Usage

The purpose of this article is to show how to automatically install the Nagios server and the NRPE clients using the prearranged python scripts. First of all, you must activate root access on all hosts (server and clients).

After you have activated the root access and performed the system update on all machines, you must perform one additional step on FreeBSD. Install bash and copy the shell executable from /usr/local/bin/bash to /bin/bash.

In a terminal:

# pkg install -y bash vim
# cp /usr/local/bin/bash /bin/bash
# chsh -s /usr/local/bin/bash root ; reboot

Now we can prepare a Linux desktop, install the git package on it and copy all necessary scripts from the repository.

# git clone https://github.com/jamalshahverdiev/full-automated-nagios.git

Execute the python-installer.sh to automatically install python2.7, python3.4, and all necessary libraries.

# cd full-automated-nagios
# ./python-installer.sh

Please, execute the following to start the installation:

# ./run.py
The Program is going to install and configure the Nagios server automatically.
It is supposed that you have already added all IP addresses of client hosts to the 'clients.txt' file.
Users must be 'root' with the same passwords on all hosts ...

=====================================================================================

Choose one of following options:
1. To install and configure Nagios server, type 1 and press 'Enter'.
2. To install and configure 'Nrpe' agents on all client hosts, type 2 and press 'Enter'.
3. To exit type 3 and press 'Enter'.

Please choose the installation option: 1

full-automated-nagios's People

Contributors

jamalshahverdiev avatar

Watchers

James Cloos avatar Sudharsan Soundararajan 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.