I have setup an alert to send to SMS, and I can see that there is a option called "Can Submit Commands" on the Alert Settings
But I cant find anything about setting this up so the user can reply to the SMS and acknowledge the alert, the company I am using for the SMS do have the ability to forward on the replies - what do I need to do next?
Acknowledge Alerts Via SMS
Re: Acknowledge Alerts Via SMS
There is no built-in way to do this currently and it will likely take a bit of work to get it functioning, here is a good article about this but it deals with having an actual SMS modem for the functionality:
https://www.linuxjournal.com/article/10605
Who is your SMS provider? Do you have a SMS modem that your XI server uses or is it just sending it to the [email protected] email address?
If you are only using the [email protected] notification method then it really depends on how your SMS carrier forwards them, are they just forwarded as an email?
The reason I say this is because those forwards need to get to your XI server for processing somehow, you would need to make sure that those forwards get through your mail server and are delivered to the XI server OR setup your XI server with a mail server that is publicly available (not-recommended for security reasons) OR you could setup a cron job or another check in XI that would go out to your current mailserver and check the mailbox that the replies would be sent to. Regardless of the method, you will also need to write (or find) a script to do some sort of processing to include the username/etc (you would likely want to include the username in the notification so that you can parse it out) so you could make sure that the logs show the user who acknowledged it and have your job/plugin/event handler process the acknowledgement.
Once we get more information we can point you in the right direction.
Thank you
https://www.linuxjournal.com/article/10605
Who is your SMS provider? Do you have a SMS modem that your XI server uses or is it just sending it to the [email protected] email address?
If you are only using the [email protected] notification method then it really depends on how your SMS carrier forwards them, are they just forwarded as an email?
The reason I say this is because those forwards need to get to your XI server for processing somehow, you would need to make sure that those forwards get through your mail server and are delivered to the XI server OR setup your XI server with a mail server that is publicly available (not-recommended for security reasons) OR you could setup a cron job or another check in XI that would go out to your current mailserver and check the mailbox that the replies would be sent to. Regardless of the method, you will also need to write (or find) a script to do some sort of processing to include the username/etc (you would likely want to include the username in the notification so that you can parse it out) so you could make sure that the logs show the user who acknowledged it and have your job/plugin/event handler process the acknowledgement.
Once we get more information we can point you in the right direction.
Thank you
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Acknowledge Alerts Via SMS
Yes we are using an external product for this so we forward to an email address
It has a feature whereby it can send an email in the event someone replies to the sms
I guess i can change the inbound email into a API command - what is the best way to acknowledge an alert automatically?
It has a feature whereby it can send an email in the event someone replies to the sms
I guess i can change the inbound email into a API command - what is the best way to acknowledge an alert automatically?
Re: Acknowledge Alerts Via SMS
There is not currently an API endpoint to acknowledge alerts, you would have to use these external commands:
https://assets.nagios.com/downloads/nag ... mand_id=39
https://assets.nagios.com/downloads/nag ... mand_id=40
https://assets.nagios.com/downloads/nag ... mand_id=39
https://assets.nagios.com/downloads/nag ... mand_id=40