Tue Jun 11, 2019 05:14
|
Ulfandu: Operating system name and version: CentOS 7.6.1810
Version of smsd: 3.1.15
Smsd installed from: package repository
Name and model of a modem / phone: Will provide later
Interface: USB-RS232
Hello everybody. I'm trying to configure SMS alerting for Nagios Core and I've almost succeeded, however, I can't for my life figure out how to start a new line when sending a text message via smssend. Here is an example of a command I'm using to send an SMS alert, how can I eg. divide "Host" and "State" on different lines?
define command {
command_name notify-host-by-sms
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$ Host: $HOSTNAME$ State: $HOSTSTATE$ Address: $HOSTADDRESS$ Info: $HOSTOUTPUT$ Date/Time: $LONGDATETIME$ Additional Info: $SERVICEOUTPUT$ " | smssend $CONTACTPAGER$
}
|