projects
/
infodrom
/
icinga-plugins
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add warning output
[infodrom/icinga-plugins]
/
check_infocon
diff --git
a/check_infocon
b/check_infocon
index
d92af73
..
83f0d54
100755
(executable)
--- a/
check_infocon
+++ b/
check_infocon
@@
-82,7
+82,7
@@
if ($row->{open} > $config->{crit}) {
}
if ($row->{open} > $config->{warn}) {
}
if ($row->{open} > $config->{warn}) {
-
+ printf "WARNING: %s - EUR %.2f (%.2fh)\n", $config->{customer}, $row->{open}, $row->{hours};
exit $ERRORS{'WARNING'};
}
exit $ERRORS{'WARNING'};
}