Skip to main content

Description

Checks web apps health.

VERSION

Install

Linux:

sudo pip3 install webapp_health_check --upgrade

Also is possible to use:

sudo python3 -m pip install webapp_health_check --upgrade

On windows with python3.5:

pip install webapp_health_check --upgrade

For proxies add:

--proxy='http://user:passw@server:port'

Usage

Use the command line:

> webapp_health_check --help
  usage: webapp_health_check [-h] [-u [URL]] [-a [APP_NAME]] [-e [EXTRA_ARGS]]

    optional arguments:
    -h, --help            show this help message and exit
    -u [URL], --url [URL]
                          url to check
    -a [APP_NAME], --app_name [APP_NAME]
                          app_name is the key entry where the description is located
    -e [EXTRA_ARGS], --extra_args [EXTRA_ARGS]
                          extra args

Example usage

Example use:

> webapp_health_check -u “https://xxx/” -a process_app_name

{“status”:”Healthy”,”totalDuration”:”00:00:02.4136092”,”entries”:{“process_app_name”:{“data”:{},”description”:”Process health check was successful.”,”duration”:”00:00:02.4106469”,”status”:”Healthy”}}}

Nagios config

Example command:

define command{
    command_name  webapp_health_check
    command_line  /usr/local/bin/webapp_health_check -u "$ARG1$" -a "$ARG2$" --extra_args='$ARG3$'
}

Example service:

define service {
        host_name                       SERVERX
        service_description             service_name
        check_command                   webapp_health_check!http://url/!process_app_name
        use                                         generic-service
        notes                           some useful notes
}

You can use ansible role that already has the installation and command: https://github.com/CoffeeITWorks/ansible_nagios4_server_plugins

Download files

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

Source Distribution

webapp_health_check-1.5.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file webapp_health_check-1.5.tar.gz.

File metadata

  • Download URL: webapp_health_check-1.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.19.7 CPython/3.5.2

File hashes

Hashes for webapp_health_check-1.5.tar.gz
Algorithm Hash digest
SHA256 21374678b397dee68e20409aaaec243415b01d9b60d9d0cc33c9b0f7851fdfd8
MD5 169ac737103d9ee40e7ead69e1fbc04c
BLAKE2b-256 378dd02ff02125e97165ca0dce57ca208fadaf1750bf8def028da83a47fa74a5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.5 This release

1 file

1.4

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page