Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > e5dacb39141c2088e2c30e21fa0b2b06 > files > 81

nagios-check_mk-doc-1.2.3i1-3.mga4.noarch.rpm

#!/bin/sh
HOST=$1
SVC=$2

cat <<EOF | unixcat tmp/run/live | { IFS='|' read state output perfdata ; echo "$output|$perfdata" ; exit $state ; }
GET services
Filter: host_name = $HOST
Filter: description = $SVC
Columns: state plugin_output perf_data
Separators: 10 124 124 124
EOF