OpenSRF check needs exit codes for nagios to know about them
authorChris Sharp <csharp@georgialibraries.org>
Tue, 31 Oct 2017 19:54:38 +0000 (15:54 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 31 Oct 2017 19:54:38 +0000 (15:54 -0400)
nagios/check_osrf

index 395d107..24f7b8b 100755 (executable)
@@ -42,6 +42,7 @@ if ($localhost) {
 
 if (@errors) {
        print "CRITICAL: At least one configured OpenSRF service not running!:\n@errors\n";
+       exit 2; 
 } else {
        print "OK: All configured OpenSRF services running.\n";
 }