Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
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”