Build precise queries to find exactly what you need
Press ESC to close
@schymanski
Favorites0
Views
Projects0
we use this script for multiple lines of output: define command { command_name notify-service-by-nrdp command_line /path/send_nrdp.sh "$HOSTNAME$" "$SERVICEDESC$" $SERVICESTATEID$ "$SERVICEOUTPUT$ $LONGSERVICEOUTPUT$" "$SERVICEPERFDATA$" } /path/send_nrdp.sh: #!/bin/bash TEST=$(echo "$4 | $5" | sed 's/$/n/' | tr -d "rn" ) /usr/local/nrdp/clients/send_nrdp.php --url=http://1.1.1.1/nrdp --token=xyzterw --host="$1" --service="$2" --state="$3" --output="$TEST"
Reviewed 11 years ago