Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support local SMS modem #27

Open
craftbyte opened this issue Oct 4, 2017 · 4 comments
Open

Support local SMS modem #27

craftbyte opened this issue Oct 4, 2017 · 4 comments

Comments

@craftbyte
Copy link

Since we are monitoring internet connectivity as well in prometheus, we need to always be able to send an alert to our on duty sysadmins. For that we were thinking of using a USB 3G modem, which would allow for sending texts from a prepaid SIM. Would it be possible to implement the protocols for a USB 3G modem or support for gosms?

@samwierema
Copy link
Contributor

@craftbyte thanks for opening an issue.

It would be great to see an implementation of this, although I'm not exactly sure how we'd label the provider ("modem" maybe?). Would you be willing to make a proof-of-concept (or a full implementation) using the library mentioned?

@craftbyte
Copy link
Author

As you can see, the library itself just uses a REST API. Calling the provider gosms and allowing to also configure a remote URL would probably be the best idea. I am not really fluent in GoLang yet, so I cannot create one.

@craftbyte
Copy link
Author

You can see the way that the modem itself is implemented here: https://github.com/haxpax/gosms/blob/master/modem/modem.go
It just uses a serial port and then sends commands.

@ipsecguy
Copy link

I am using a local smstools installation and a small cgi script on the very same machine that puts a file with in the correct folder for smstools (http://smstools3.kekekasvi.com/) to process. That way everything can run event without internet (be careful about any DNS dependency...).

I'd vote against having a local device and OS dependencies here. Maybe better a generic URL provider (something I hacked together but currently not being proud of) would solve that better.

Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants