The purpose of this plugin is to perform
GET requests against the Graylog REST API endpoints.
The response is compliant with the Icinga plugin output format.
Although used in some projects, I regard this plugin as a pamphlet and recommend others to view it for what it is: some lines scribbled on a napkin meanwhile on a beach 😉
See how you can browse through the Graylog API here
JSONPath dependency with:
$ pip install -r requirements.txt
Instructions for installing Icinga plugins are here
-V, --version | (optional, displays script version)
-h, --help | (optional, displays this information)
-u, --user <username> | (mandatory)
-p, --password <password> | (mandatory)
-e, --endpoint <protocol>://<host>:<port>/<path> | (mandatory)
-f, --filter <object> | (mandatory)
-c, --critical <integer> | (mandatory)
-w, --warning <integer> | (mandatory)
Some further improvements, at my earliest convenience:
./check_gl --endpoint http://localhost:12900/system/metrics/org.graylog2.buffers.process.usage --user dan --pass 1234 --filter buffers.input.utilization -c 50 -w 100
- Units for
- Tests (most likely with nose2)
- Remove the nasty JSONPath dependency
- Enrich the output, as per the supported format by Icinga
- Refactoring as per PEP8
Naturally, pull requests are welcome.
This plugin is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License or
(at your option) any later version.
This plugin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.