repo.or.cz
/
monitoring-plugins.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix for tar on Solaris
[monitoring-plugins.git]
/
plugins-scripts
/
utils.sh.in
blob
b30b908395921dea466916293fb7f7e251e94521
1
#! /bin/sh
2
3
STATE_OK
=
0
4
STATE_WARNING
=
1
5
STATE_CRITICAL
=
2
6
STATE_UNKNOWN
=
3
7
STATE_DEPENDENT
=
4
8
9
if
test -x
/
usr
/
bin
/
printf
;
then
10
ECHO
=/
usr
/
bin
/
printf
11
else
12
ECHO
=
echo
13
fi
14
15
print_revision
() {
16
echo
"
$1
v
$2
(@PACKAGE@ @VERSION@)"
17
$ECHO
"@WARRANTY@"
|
sed
-e
's/
\n
/ /g'
18
}
19
20
support
() {
21
$ECHO
"@SUPPORT@"
|
sed
-e
's/
\n
/ /g'
22
}
23