Srst_only separate srst_gates_jtag srst_open_drain Trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain Info : only one transport option autoselect 'jtag' Warn : Adapter driver 'buspirate' did not declare which transports it allows assuming legacy JTAG-only Connect Buspirate'c USB port to your USB port and start openocd on Terminal #1: Download docstar.cfg and change the start of the config fromĥ. MSGU=$( perl -p -e 's/()/sprintf("%%%02X", ord($1))/seg' $TMP )Ĭurl -G -s " Nagios configuration should look like this:Ĭommand_line /usr/local/bin/smssend $CONTACTPAGER$ 'Host: $HOSTNAME$\nState: $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$'Ĭommand_line /usr/local/bin/smssend $CONTACTPAGER$ 'Service: $SERVICEDESC$\nHost: $HOSTNAME$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nTime: $LONGDATETIME$' So I endedd up with a simple wrapper script, which does the URLencoding only where it is needed. Kannel expets the message in "text=messagetobesent" format in the url, but data-urlencode encodes "text=" to "text%3D" which kannel does not understand. It means that it has a very useful argument -data-urlencode which URLencodes the text given to this parameter preceeding an "&". ![]() ![]() curl is a very nice tool to connect to http interfaces, but it is too smart in this case.Kannel has a web interface which expects the text to be sent urlencoded.Nagios accepts only an "one-liner" command to send notifications (command_line parameter of command object).Sending notifications from nagios via sms through kannel is not as trivial as it looks first.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |