captphunkosis / check_rabbitmq Goto Github PK
View Code? Open in Web Editor NEWNagios Plugin for RabbitMQ
Nagios Plugin for RabbitMQ
Since commit f9f3420 the memory check does not work anymore.
Before that commit:
# /usr/lib/nagios/plugins/check_rabbitmq -a mem_usage
CRITICAL - RABBITMQ RAM USAGE at 6% of max
After that commit (currently newest version from master as of Dec 21 2018):
# ./check_rabbitmq -a mem_usage
Critical - local variable 'memory_used' referenced before assignment
Additional information:
# python --version
Python 2.7.15rc1
# cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Hi,
I was wondering if you would mind clarifying the licensing terms for check_rabbitmq. There is no mention of licensing in either README.md or the check_rabbitmq file itself, making it closed source in most countries.
I would definitely like to use this plugin, but the current terms do not permit me to do so.
Thanks,
/usr/lib/nagios/plugins/check_rabbitmq -a queues_count -W 800 -C 1000
CRITICAL - list index out of range
added -q option , du to header info resolving in multidimensional array
def list_queues(cls):
args = shlex.split('rabbitmqctl list_queues -q')
root@host:/usr/local/lib/nagios/plugins# ./check_rabbitmq -a queues_count -C 100 -W 80
CRITICAL - list index out of range
root@host:/usr/local/lib/nagios/plugins# rabbitmqctl list_queues
Listing queues ...
root@host:/usr/local/lib/nagios/plugins# echo $?
0
when running remotely with NRPE /usr/lib/nagios/plugins/check_nrpe -H (host) -c rab_connection_count returns NRPE: Unable to read output
Enable debug on nrpe shows in the log
Jul 9 12:45:45 ip-172-30-1-84 nrpe[32239]: Running command:/usr/lib/nagios/plugins/check_rabbitmq -a connection_count -C 10 -W 8
Jul 9 12:45:45 ip-172-30-1-84 nrpe[32239]: Command completed with return code 1 and output:
Jul 9 12:45:45 ip-172-30-1-84 nrpe[32239]: Return Code: 1, Output: NRPE: Unable to read output
Jul 9 12:45:45 ip-172-30-1-84 nrpe[32239]: Connection from closed.
the same issu with rab_queries_count
added sys.exit(0) to successful execution, but it did not help,same with using sudo
Need help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.