SMS notification - Delay before sending next
Posted: Thu Dec 18, 2014 1:31 pm
I have SMS notification command working if specify one or two contacts but has problem when there are more contacts. It seems my SMS gateway requires delay before submitting another request.I have below command, please let me know if there is a way to introuduce delay before next contact in the service notification is processed
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$ \nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | wget "http://192.168.155.6:8000/sms?usr=nagio ... sh=0&text=** $NOTIFICATIONTYPE$ Service Alert: $SERVICEDESC$ on $HOSTNAME$ State: $SERVICESTATE$ @ $LONGDATETIME$ **"
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$ \nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | wget "http://192.168.155.6:8000/sms?usr=nagio ... sh=0&text=** $NOTIFICATIONTYPE$ Service Alert: $SERVICEDESC$ on $HOSTNAME$ State: $SERVICESTATE$ @ $LONGDATETIME$ **"