Add warning output
authorJoey Schulze <joey@infodrom.org>
Mon, 2 Jun 2014 12:54:14 +0000 (14:54 +0200)
committerJoey Schulze <joey@infodrom.org>
Mon, 2 Jun 2014 12:54:14 +0000 (14:54 +0200)
check_infocon

index d92af73..83f0d54 100755 (executable)
@@ -82,7 +82,7 @@ if ($row->{open} > $config->{crit}) {
 }
 
 if ($row->{open} > $config->{warn}) {
-
+    printf "WARNING: %s - EUR %.2f (%.2fh)\n", $config->{customer}, $row->{open}, $row->{hours};
     exit $ERRORS{'WARNING'};
 }