pkg-monitoring-plugins/plugins-scripts/utils.sh.in

24 lines
319 B
Bash
Raw Normal View History

2013-11-26 22:53:19 +00:00
#! /bin/sh
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3
STATE_DEPENDENT=4
if test -x /usr/bin/printf; then
ECHO=/usr/bin/printf
else
ECHO=echo
fi
print_revision() {
2013-11-26 22:54:42 +00:00
echo "$1 v$2 (@PACKAGE@ @VERSION@)"
2013-11-26 22:53:19 +00:00
$ECHO "@WARRANTY@" | sed -e 's/\n/ /g'
}
support() {
$ECHO "@SUPPORT@" | sed -e 's/\n/ /g'
}