In a previous post I talked about how we could create custom notifications actions in Zenoss. Like a SMS notification, for example. In that post we required a valid cellphone number using a text field in the notification's content pane, as shown below:
In this post I want to change and improve this by using subscribers functionality instead. Similar to the e-mail (or pager) notification, which sends an e-mail to all the subscribed users using their e-mail address configured in their user settings. Since there is no SMS mobile number that we can configure in the user settings, we will have to use the Pager field instead.
The Pager Action
Using Zenoss Core 4's pager action's source code as reference is a good starting point, since we are going to use the pager field for SMS.
We can see that this action class implements a
executeOnTarget method instead of a
execute method we used in the previous post.