aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts/utils.sh.in
blob: 7750716be4f26944f487ca0eb689e94a1195b58c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /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() {
	echo "$1 (@PACKAGE@ @VERSION@) $2"
	$ECHO "@WARRANTY@" | sed -e 's/\n/ /g'
}

support() {
	$ECHO "@SUPPORT@" | sed -e 's/\n/ /g'
}