projects
/
infodrom
/
icinga-plugins
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e88b35e
)
Add warning output
author
Joey Schulze
<joey@infodrom.org>
Mon, 2 Jun 2014 12:54:14 +0000
(14:54 +0200)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 2 Jun 2014 12:54:14 +0000
(14:54 +0200)
check_infocon
patch
|
blob
|
history
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'};
}