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

new notification and monitoring plugin for smseagle (REST API v2) #5365

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

rmorandell-pgum
Copy link
Contributor

@rmorandell-pgum rmorandell-pgum commented Dec 20, 2024

Community contributors

Notification plugin

Notification plugin that can send SMS, ring-calls, voice-calls (Text To Speech normal and advanced) via smseagle REST API v2.

Notification plugin that can:

send SMS
https://www.smseagle.eu/docs/apiv2/#tag/Send-messages/operation/Messages::sms_post

ring calls
https://www.smseagle.eu/docs/apiv2/#tag/Make-a-call/operation/Call::ring_post

voice calls (Text To Speech normal and advanced)
https://www.smseagle.eu/docs/apiv2/#tag/Make-a-call/operation/Call::tts_post
https://www.smseagle.eu/docs/apiv2/#tag/Make-a-call/operation/Call::tts_advanced_post

Monitoringplugin

Monitoring plugin that monitors:

modem status
https://www.smseagle.eu/docs/apiv2/#tag/Modem/operation/Modem::status_get

signal strength
https://www.smseagle.eu/docs/apiv2/#tag/Modem/operation/Modem::signal_strength_get

sim status
https://www.smseagle.eu/docs/apiv2/#tag/Modem/operation/Modem::sim_status_get

sim registration status
https://www.smseagle.eu/docs/apiv2/#tag/Modem/operation/Modem::network_registration_status_get

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

The documentation of the API with example reponses.

https://www.smseagle.eu/docs/apiv2/

Here some of my responses:

success SMS or voice-alert

{
  "status": "queued",
  "message": "OK",
  "number": "123456789",
  "id": 1821
}

modem status:

{
  "modem_no": 1,
  "modem_enabled": true
}

sim status:

{
  "modem_no": 1,
  "sim_status": "Operational"
}

sim registration status

{
  "modem_no": 1,
  "sim_network_registration_status": "Registered Home"
}

signal strenth (%)

{
  "modem_no": 1,
  "signal_strength": 57
}

apisim.yaml.txt
modem status

Checklist

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (develop).
  • I have provide data or shown output displaying the result of this code in the plugin area concerned.

modem status
signal strength
sim status
sim registration status
voice calls
ring calls
send SMS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants