Skip to main content

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.

Metadata

Release files for alignak-checks-nginx 1.1.3

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-checks-nginx 1.1.3
File Size Uploaded
alignak_checks_nginx-1.1.3.tar.gz 38.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alignak-checks-nginx 1.1.3
File Interpreter ABI Platform
alignak_checks_nginx-1.1.3-py2-none-any.whl Python 2 none any Details

Total release size: 80.8 kB

Release files / alignak_checks_nginx-1.1.3.tar.gz

Download URL alignak_checks_nginx-1.1.3.tar.gz
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c2a458c1e70367604e32db1a0f2c702b836d147efe49528a913c7318ba318670
BLAKE2b-256 checksum
How to use checksums
de3507a2427c9b68398999297c83009b403cf6b3f0fc6af61dc54031770610de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

Release files / alignak_checks_nginx-1.1.3-py2-none-any.whl

Download URL alignak_checks_nginx-1.1.3-py2-none-any.whl
Size 42.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
1b112116b21bf997d977f90d6b1dbb1ad7246b562cd6cee1ba5f668d9078016d
BLAKE2b-256 checksum
How to use checksums
776c62a8cc6d13f0cb325b332f9fcf5744a0ad70c020e9b0866e8000681d4665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

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