[packages/nagios-plugin-check_elvis_status] add samples with possibilities

glen glen at pld-linux.org
Thu Mar 28 15:03:37 CET 2013


commit 3af52dc4c2b54c4c1d2e202f2dee95aef1fe2e05
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Mar 28 15:59:48 2013 +0200

    add samples with possibilities

 README.md | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
---
diff --git a/README.md b/README.md
index 26e4ab2..1541260 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,8 @@ Requires: php 5.0, php-json (if using php 5.2, use json pecl)
 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
      
@@ -22,3 +24,30 @@ Examples
 
     ./check_elvis_status -u elvis.json -e '->securityStatus->apiOperationsToday' -m 'API ops' -w 6000 -c 15000
     ELVIS_STATUS: OK: API ops: 5329
+
+
+Check 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: 0
+
+Check 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: 3
+
+Check 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_elvis_status.git/commitdiff/3af52dc4c2b54c4c1d2e202f2dee95aef1fe2e05



More information about the pld-cvs-commit mailing list