Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glensc/nagios-plugin-check_elvis_status
Check Elvis DAM status via admin /server-status json data
https://github.com/glensc/nagios-plugin-check_elvis_status
Last synced: about 2 months ago
JSON representation
Check Elvis DAM status via admin /server-status json data
- Host: GitHub
- URL: https://github.com/glensc/nagios-plugin-check_elvis_status
- Owner: glensc
- Created: 2013-02-15T11:53:10.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-01-11T10:33:46.000Z (about 8 years ago)
- Last Synced: 2024-10-14T11:38:44.914Z (3 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Nagios plugin: check_elvis_status
=================================Check [Elvis DAM](http://www.elvisdam.com/) status via admin /server-status json data.
This plugins allows you monitor number and boolean values from server-status json (specified with `-u` option).
Numbers may be expressed with size qualifiers (TB, GB, MB).It expression is taken via `-e` option, the warning and critical tresholds are configurable with `-w` and `-c`
options respectively. Additionally `-i` option allows you inverse the comparision logic.Requires: php 5.2, [php-json](http://php.net/json) (if using php < 5.2, use [json pecl](http://pecl.php.net/package/json))
Examples
========
Check for API Operations count:./check_elvis_status -u elvis.json -e '->securityStatus->apiOperationsToday' -m 'API ops' -w 3000 -c 5000
ELVIS_STATUS: CRITICAL: API ops: 5329
./check_elvis_status -u elvis.json -e '->securityStatus->apiOperationsToday' -m 'API ops' -w 5000 -c 15000
ELVIS_STATUS: WARNING: API ops: 5329./check_elvis_status -u elvis.json -e '->securityStatus->apiOperationsToday' -m 'API ops' -w 6000 -c 15000
ELVIS_STATUS: OK: API ops: 5329Check processing queue monitoring if >300 warning, if >500 critical
./check_elvis_status.php -u elvis.json -e '->mediaStatus->waitingProcessingRequests' -m 'waitingProcessingRequests' -w 300 -c 500
ELVIS_STATUS: OK: waitingProcessingRequests: 0Check if proccessing servers are seen by Elvis:
./check_elvis_status.php -u elvis.json -e '->mediaStatus->operationalNodes' -m operationalNodes -v -i -c 3
EVAL: return $json->mediaStatus->operationalNodes;
ELVIS_STATUS: OK: operationalNodes: 3Check if Processing Servers are Connected & status ready.
This one converts boolean value to integer to be able to make comparision :)./check_elvis_status.php -u elvis.json -e '->mediaStatus->mediaNodesStatus[0]->ready+0' -m 'ready' -c 1 -i
ELVIS_STATUS: OK: ready: 1
./check_elvis_status.php -u elvis.json -e '->mediaStatus->mediaNodesStatus[0]->ready+0' -m 'ready' -c 1 -i
ELVIS_STATUS: CRITICAL: ready: 0
If you want the same check to give WARNING instead of CRITICAL, setup warning option instead:./check_elvis_status.php -u elvis.json -e '->mediaStatus->mediaNodesStatus[0]->ready+0' -m 'ready' -w 1 -i
ELVIS_STATUS: OK: ready: 1
./check_elvis_status.php -u elvis.json -e '->mediaStatus->mediaNodesStatus[0]->ready+0' -m 'ready' -w 1 -i
ELVIS_STATUS: WARNING: ready: 0