]> git.pld-linux.org Git - packages/nagios-plugin-check_elvis_status.git/commitdiff
add samples with possibilities
authorElan Ruusamäe <glen@delfi.ee>
Thu, 28 Mar 2013 13:59:48 +0000 (15:59 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 28 Mar 2013 13:59:48 +0000 (15:59 +0200)
README.md

index 26e4ab235acb3d4c997f94d8b52eee293a52c43c..15412605cb8f807756077c6185429aa8a7f39796 100644 (file)
--- 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
This page took 0.105516 seconds and 4 git commands to generate.