Skip to main content

Alignak checks pack for Nginx

Project description

Checks pack for monitoring Nginx with the check_nginx script

Most recent PyPi version Join the chat #alignak on freenode.net License AGPL v3

Note: this check pack is only an example for checking nginx using the Nagios check_tcp command. Please feel free to comment or suggest improvements :)

This package uses the check_nginx_status script from this project. A version of the script is included to make installation easier but you may refresh when installing…

Installation

The installation of this checks pack will copy some configuration files in the Alignak default configuration directory (eg. /usr/local/etc/alignak). The copied files are located in the default sub-directory used for the packs (eg. arbiter/packs).

Depending upon your OS installation you may need to install some PERL dependencies:

sudo cpan install LWP

From PyPI

To install the package from PyPI:

sudo pip install alignak-checks-nginx

From source files

To install the package from the source files:

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

Note: using `sudo python setup.py install` will not correctly manage the package configuration files! The recommended way is really to use `pip`;)

Documentation

Configuration

This checks pack is using the check_tcp Nagios (or Monitoring) plugin that must be installed on the Alignak server running your poller daemon. You may install the alignak-checks-monitoring package (see the corresponding repo).

Alignak configuration

For a Linux monitored host, you simply have to tag the concerned host with the template nginx.

# An host with an nginx instance running
define host{
    use                     nginx
    host_name               my_es
    address                 127.0.0.1
}

When using the alignak backend, use the setup.sh script provided in the json/nginx directory to include all the package information into your backend

# Backend configuration
$ json/nginx/setup.sh -b http://127.0.0.1:5000 -u admin -p admin

Note that this command line is executed when installing the package from pip. If your backend is not set locally, you can specify its address thanks to the -b command line parameter.

Bugs, issues and contributing

Contributions to this project are welcome and encouraged … issues in the project repository are the common way to raise an information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alignak_checks_nginx-1.1.1.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

alignak_checks_nginx-1.1.1-py2-none-any.whl (42.2 kB view details)

Uploaded Python 2

File details

Details for the file alignak_checks_nginx-1.1.1.tar.gz.

File metadata

  • Download URL: alignak_checks_nginx-1.1.1.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for alignak_checks_nginx-1.1.1.tar.gz
Algorithm Hash digest
SHA256 87c93985557a28f92ebef9f89ce7f28a0f95e0b7c3a09bdd4b2cf50210fd4a4d
MD5 c63a07ddd5918c3c0dc8fddd6e5d4b86
BLAKE2b-256 eaee984c5fa24a6a8a762be8502ab23ab05b8a351875a7b7878492e3727efb71

See more details on using hashes here.

File details

Details for the file alignak_checks_nginx-1.1.1-py2-none-any.whl.

File metadata

  • Download URL: alignak_checks_nginx-1.1.1-py2-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for alignak_checks_nginx-1.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 ac5d919649350778e39fd7660eed1e3e7296cbebaac8e28529a5f2c8381c891b
MD5 6d6272ff1561f5d51f743fb4dc2fc2dc
BLAKE2b-256 076cd7523e096d1f5d24e1dc82ab3e15f689db1c6ce82341c7ec3bdce1095660

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page