Skip to main content

360 Monitoring CLI

Project description

360 Monitoring CLI

This repository contains a CLI script for 360 Monitoring that allows you to connect to your 360 Monitoring (https://360monitoring.com) account and list monitoring data, add, update or remove server or website monitors.

Documentation

You can find the full documentation including the feature complete REST API at docs.360monitoring.com and docs.360monitoring.com/docs/api.

Preconditions

Install 360 Monitoring CLI as ready-to-use package

$ pip install 360monitoringcli

Configure your account

First you need to connect your CLI to your existing 360 Monitoring account via your API KEY. If you don't have a 360 Monitoring account yet, please register for free at https://360monitoring.com. To create an API KEY you'll need to upgrade at least to a Pro plan to be able to create your API KEY.

$ 360monitoring config save --api-key KEY     configure API KEY to connect to 360 Monitoring account

Test 360 Monitoring CLI locally

Test 360 Monitoring CLI with pre-configured Docker image

You can easily test and run 360 Monitoring CLI for production by running the pre-configured docker image

$ docker build -t 360monitoringcli .
$ docker run -it --rm 360monitoringcli /bin/bash

Test 360 Monitoring CLI for specific staging version

To test a package from staging you can simply deploy a docker container:

$ docker run -it --rm ubuntu /bin/bash
$ apt-get update && apt-get install -y python3 && apt-get install -y pip
$ pip install -i https://test.pypi.org/simple/ --force-reinstall -v "360monitoringcli==1.0.18"

For developement, install required Python modules

To test the code locally, install the Python modules "requests", "configparser", "argparse" and "prettytable". Use "pip install -e ." to use "360monitoring" command with latest dev build locally based on local code.

$ pip install requests
$ pip install configparser
$ pip install argparse
$ pip install prettytable
$ pip install -e .

Run tests to check each function works

Test the code:

$ ./test_cli.sh

Usage

$ 360monitoring --help                        display general help
$ 360monitoring signup                        open the sign up page to get your 360 Monitoring account
$ 360monitoring config save --api-key KEY     configure API KEY to connect to 360 Monitoring account (only for paid plans)
$ 360monitoring statistics                    display all assets of your account
$ 360monitoring servers list                  display all monitored servers
$ 360monitoring servers list --issues         display monitored servers with issues only
$ 360monitoring servers list --tag cpanel     display only servers with tag "cpanel"
$ 360monitoring sites list                    display all monitored sites
$ 360monitoring sites list --issues           display monitored sites with issues only
$ 360monitoring sites list --sort 6 --limit 5 display worst 5 monitored sites by uptime
$ 360monitoring contacts list                 display all contacts
$ 360monitoring usertokens list               display user tokens
$ 360monitoring config print                  display your current settings and where those are stored
$ 360monitoring recommendations               display upgrade recommendations for servers that exceed their limits
$ 360monitoring magiclinks                    create and open a readonly dashboard for a single server only via magic link
$ 360monitoring wptoolkit                     display statistics of WP Toolkit if installed

$ 360monitoring sites add --url domain.tld    start monitoring a new website
$ 360monitoring servers update --name cpanel123.hoster.com --tag production   tag a specific server

$ 360monitoring contacts --help               display specific help for a sub command
$ 360monitoring dashboard                     open 360 Monitoring in your Web Browser

Updating 360 Monitoring CLI package

You can update the 360monitoringcli package to the latest version using the following command:

$ pip install 360monitoringcli --upgrade

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

360monitoringcli-1.0.18.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

360monitoringcli-1.0.18-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file 360monitoringcli-1.0.18.tar.gz.

File metadata

  • Download URL: 360monitoringcli-1.0.18.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for 360monitoringcli-1.0.18.tar.gz
Algorithm Hash digest
SHA256 36ab46ad8a6b0fd32aa08c87811bf20b67685324a87447bbcbea33c5886aad35
MD5 e764960448bbb072034b6e03413b73a7
BLAKE2b-256 2e8ce020ae92bb1e0203d89183e19b782e9bf23dbe36bba65e1a68fbee2a0937

See more details on using hashes here.

File details

Details for the file 360monitoringcli-1.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for 360monitoringcli-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 de075881bde39f8e67bcc2165e180a9204607c3c40bbcdfa9ba3d0a157ab906c
MD5 45651c603078df92771d4609f2c0d032
BLAKE2b-256 080c9d5c2a7f9c30499cfebf05b2dfe8fde525e0b127cbba25832b32fff2ed9a

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