Alarm notification: an interface for sending messages to SMS cats on Android phones [http mode]

Source: Internet
Author: User

The title is very broad ~ Interesting content ~


We recommend you to use an Android phone to simulate the SMS function. This is still stable. I heard from my friends that they used an android SMS cat made of a low-end smartphone to send an alarm to nagios. The number of emails has reached 7000, there were two problems because the mobile phone was too bad. There is also a problem in concurrency, but it can also be solved. We can make the interface into the queue mode.

It's not cheap to buy a SMS cat.

Interesting application ~ If your company does not provide text message interfaces, but you want to use these interfaces, you can use this solution. Find an Android phone and apply for a super cost-effective SMS card at taobao. I only tested a few items myself, but I didn't have a lot of tests. After all, I had a dime. Several friends have sent thousands of emails. Still stable ~


Of course, security is also a problem. For fear of calls by others, you can install a droid wall firewall on your mobile phone to restrict ip addresses.

You can refer to the design scheme of my previous notification platform and add the mobile phone interface. You can also extend the queue here. After all, you don't know the programming on the mobile phone end, so write another interface, let all traffic go out of this interface.

Http://rfyiamcool.blog.51cto.com/1030776/1332160


Yes:

Download: https://play.google.com/store/apps/details from google play? Id = unibilling. smsmodem


API documentation:


Http: // android_wifi_IP: 5555/send? Callee = p1 & sms = p2


Parameters are described as follows:


P1: a short message will be sent to the target mobile phone number.

P2: content of the short message to be sent


Note: The values of p1 and p2 must be UTF-8 encoded.


Meaning of the http request return code:


0: send ok-1: send fail-2: app exception-3: callee empty-4: message empty-5: callee coding error-6: message coding error


Example:


192.168.1.105: 5555/send? Calle= 1866 xxxxxxx & sms = test + test


This URL sends the short message content "test" to the mobile phone number 186 xxxxxxx



I tested it at home and used the company's phone number on duty ~

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140103/002334A09-0.jpg "title =" good_meitu_1.jpg "alt =" wKioOVLC3QmS2kGVAAA_2smvJRs040.jpg "/>






650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140103/0023345327-1.jpg "title =" 8c4f45eb4aa84cc516e72cfb4443d256.jpg "alt =" wKioJlLC24PyxP13AABpAQtCGYU390.jpg "/>


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/140103/00233443I-2.jpg "title =" 586f40f48e09b364425479abbdaa2d09.jpg "alt =" wKioOVLEKczwnxV8AAB3osBGSHs851.jpg "/>


Happy New Year ~

This article is from "Fengyun, it's her ." Blog, declined to reprint!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.