I use the script below to send winpopup.
I would like it to be seemed just host name and severity or to be seemed as an additional information.
How could we modify this script or any other alternative ?
Code:
#!/bin/sh
# Send a zabbix message via winpopup to a given host
# Use as an alertscript within zabbix
# Syntax: winpopup $receiptant $subject $message
# Note: zabbix passes $1=receiptiant, $2=subject, $3=message to any script
RECEIPIANT=$1
SUBJECT=$2
MESSAGE=$3
HOST=${RECEIPIANT%|*}
IP=${RECEIPIANT#*|}
echo -e "Subject:$SUBJECT\\n$MESSAGE" | smbclient -M $HOST -I $IP
How could we modify this script or any other alternative ?
Comment