Skip to main content

Plugin for Nagios, which check a count of messages in Sentry

Project description

Plugin for Nagios, which check a count of messages in Sentry.

https://pypip.in/d/nagios-sentry/badge.png

Installation

Install nagios-sentry to Sentry venv:

source /var/www/sentry/bin/activate
pip install nagios-sentry

Add to INSTALLED_APPS in config file /etc/sentry.conf:

INSTALLED_APPS += ('nagios_sentry', )

Copy the file check_sentry_messages.py to the Nagios plugins directory.

How to use

Go to the Nagios plugins directory and run this example:

./check_sentry_messages.py -w 10 -c 20 \
    --sentry /var/www/sentry/bin/sentry --config /etc/sentry.conf --seconds=300

Where:

  • -w 10 - Number of messages in Sentry for --seconds as WARNING;

  • -c 20 - Number of messages in Sentry for --seconds as CRITICAL;

  • --sentry /var/www/sentry/bin/sentry - Path to binary file of Sentry;

  • --config /etc/sentry.conf - Path to config file of Sentry;

  • --seconds=300 - Number of seconds offset.

Available additional options:

  • --project - Number of project. Example --project=1;

  • --level - Number of level. 10=DEBUG, 20=INFO, 25=SUCCESS, 30=WARNING, 40=ERROR;

  • --logger - Name of logger. Example --logger=SocialAuth.

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

nagios-sentry-0.3.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file nagios-sentry-0.3.1.tar.gz.

File metadata

File hashes

Hashes for nagios-sentry-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ce32fb24253759ecc5068294adfdd6ba3daf972aff1f5df9c8f4fcd8c7084c03
MD5 026d24643e46fe7fa2551342224bcb7c
BLAKE2b-256 5ed0fcf83d3d867592068713383e06f34570bf2d7481dc311b385d425064a3d2

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