Skip to main content
This module contains utility tools to import Nagios-like flat files configuration into
an Alignak REST backend.
Home-page: http://alignak-backend-import.readthedocs.io/en/develop/?badge=develop
Author: Frédéric Mohier
Author-email: frederic.mohier@alignak.net
License: GNU Affero General Public License, version 3
Download-URL: https://github.com/Alignak-monitoring-contrib/alignak-backend-import
Project-URL: Presentation, http://alignak.net
Project-URL: Documentation, http://docs.alignak.net/en/latest/
Project-URL: Source, https://github.com/alignak-monitoring-contrib/alignak-backed/
Project-URL: Tracker, https://github.com/alignak-monitoring-contrib/alignak-backend/issues
Project-URL: Contributions, https://github.com/alignak-monitoring-contrib/
Description: Alignak Backend import
======================

*Import flat files Nagios-like configuration into the Alignak backend*

.. image:: https://travis-ci.org/Alignak-monitoring-contrib/alignak-backend-import.svg?branch=develop
:target: https://travis-ci.org/Alignak-monitoring-contrib/alignak-backend-import
:alt: Develop branch build status

.. image:: https://readthedocs.org/projects/alignak-backend-import/badge/?version=latest
:target: http://alignak-backend-import.readthedocs.org/en/latest/?badge=latest
:alt: Latest documentation Status

.. image:: https://readthedocs.org/projects/alignak-backend-import/badge/?version=develop
:target: http://alignak-backend-import.readthedocs.org/en/develop/?badge=develop
:alt: Development documentation Status

.. image:: https://badge.fury.io/py/alignak-backend-import.svg
:target: https://badge.fury.io/py/alignak-backend-import
:alt: Last PyPi version

.. image:: https://img.shields.io/badge/License-AGPL%20v3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0
:alt: License AGPL v3


Short description
-----------------

This package contains an utility tool `alignak-backend-import` that allows to import a Nagios-like flat files monitoring configuration into an Alignak Backend.

Release strategy
----------------

Alignak backend and its *satellites* (backend client, and backend import tools) must all have the same features level. As of it, take care to install the same minor version on your system to ensure compatibility between all the packages. Use 0.4.x version of Backend import and Backend client with a 0.4.x version of the Backend.


Alignak backend import
----------------------

The `alignak-backend-import` script may be used to import a Nagios like flat-files configuration into the Alignak backend.

The online `documentation<http://alignak-backend-import.readthedocs.io/en/latest/utilities.html#alignak-backend-importation>`_ exaplins all the command line parameters that may be used.

A simple usage example for this script::

# Assuming that you installed: alignak, alignak-backend and alignak-backend-import

# From the root of this repository
cd tests/alignak_cfg_files
# Import the test configuration in the Alignak backend
alignak-backend-import -d -m ./alignak-demo/alignak-backend-import.cfg

# The script imports the configuration and makes some console logs:
alignak_backend_import, inserted elements:
- 6 command(s)
- 3 host(s)
- 3 host_template(s)
- no hostdependency(s)
- no hostescalation(s)
- 12 hostgroup(s)
- 1 realm(s)
- 1 service(s)
- 14 service_template(s)
- no servicedependency(s)
- no serviceescalation(s)
- 12 servicegroup(s)
- 2 timeperiod(s)
- 2 user(s)
- 3 usergroup(s)

# To confirm, you easily can get an host from the backend
alignak-backend-cli -t host get test_host_0

# The script dumps the json host on the console and creates a file: */tmp/alignak-object-dump-host-test_host_0.json*
{
...
"active_checks_enabled": true,
"address": "127.0.0.1",
"address6": "",
"alias": "test_host_0",
...
"customs": {
"_OSLICENSE": "gpl",
"_OSTYPE": "gnulinux"
},
...
}

# Get the list of all imported hosts from the backend
alignak-backend-cli --list -t host get

# The script dumps the json list of hosts on the console and creates a file: */tmp/alignak-object-list-hosts.json*
{
...
"active_checks_enabled": true,
"address": "127.0.0.1",
"address6": "",
"alias": "test_host_0",
...
"customs": {
"_OSLICENSE": "gpl",
"_OSTYPE": "gnulinux"
},
...
}

Installation
------------

From Alignak packages repositories
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

More information in the online Alignak backend documentation. Here is only an abstract...

Debian::

# Alignak DEB stable packages
sudo echo deb https://dl.bintray.com/alignak/alignak-deb-stable xenial main | sudo tee -a /etc/apt/sources.list.d/alignak.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv D401AB61

sudo apt-get update
sudo apt install python-alignak-backend-import

CentOS::

sudo vi /etc/yum.repos.d/alignak-stable.repo:
[Alignak-rpm-stable]
name=Alignak RPM stable packages
baseurl=https://dl.bintray.com/alignak/alignak-rpm-stable
gpgcheck=0
repo_gpgcheck=0
enabled=1

sudo yum repolist

sudo yum install python-alignak-backend-import

.. note:: for Python 3 version, replace ``python`` with ``python3`` in the packages name.

From PyPI
~~~~~~~~~
To install the package from PyPI::

sudo pip install alignak-backend-import


From source files
~~~~~~~~~~~~~~~~~
To install the package from the source files::

git clone https://github.com/Alignak-monitoring-contrib/alignak-backend-import
cd alignak-backend-import
sudo pip install .


Bugs, issues and contributing
-----------------------------

Please report any issue using the project `issues page <https://github.com/Alignak-monitoring-contrib/alignak-backend-import/issues>`_.


Keywords: alignak monitoring backend import tool
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: POSIX :: BSD :: FreeBSD
Classifier: Topic :: System
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: System :: Networking :: Monitoring
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/x-rst

Metadata

Release files for alignak-backend-import 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alignak-backend-import 1.2.2
File Size Uploaded
alignak_backend_import-1.2.2.tar.gz 30.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alignak-backend-import 1.2.2
File Interpreter ABI Platform
alignak_backend_import-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 54.9 kB

Release files / alignak_backend_import-1.2.2.tar.gz

Download URL alignak_backend_import-1.2.2.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
74986ec6f200940d7203f7cbaf157283e425508804b2859331c1733a505f6348
BLAKE2b-256 checksum
How to use checksums
f9247dbc714da6b415d193a864530599e5587405942991aabd7074b6afdad0b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

Release files / alignak_backend_import-1.2.2-py3-none-any.whl

Download URL alignak_backend_import-1.2.2-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aebbb2ebfa3475b283ea3f711a7bbf388332f060bd5cf15ebaddb3762f097d1c
BLAKE2b-256 checksum
How to use checksums
022e3e29e7f2ebb008c21fa518ff76a3240e7a6c1f2a3393c3835cbfbe7a4a6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

1.0rc1

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.6

1 release file

0.8.5

1 release file

0.8.4

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.10

1 release file

0.6.9

1 release file

0.6.7

1 release file

0.6.6

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.6

1 release file

0.5.5

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.4.7

1 release file

0.4.4

1 release file

0.4.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page