We have a setup with master and a few satellites.
The satellites are spread over South Africa, America , Europe.
We have implemented SMS notifications via a script that does the same as the mail-host-notification but instead of the mail command it uses the SMS command.
However, our master is in Europe which is fine, because to send SMSs in europe is not a problem, but sending them over other continentes it’s a bit expensive.
Is it not possible to make the local satellites send this notifications ?
sure, you can create notification apply rules and assign them exclusively to those satellite based objects. The scripts and modems must be connected to the instances in that specific zone then.
object Zone "south-africa" {
//...
}
apply Notification "sms-south-africa" to Service {
//...
assign where host.zone == "south-africa"
}
We use icinga director to deploy config.
I have managed to create a notification template , but now i receive notifications from both master and sattelite.
Below it’s the configuration .
Apply Notification "test-sattelite" to Service {
import "SMS Notification Satellite"
assign where host.zone == "satellite"
users = [ "user" ]
}
And only with this assignment you get notifications only from satellites ?
Because with this i get them from satellites but also from master, and i don’t want them from master.