I am trying to configure Nagios to send notifications through the Amazon SNS service.
I have set up aws cli on the server where Nagios runs:
When I launch a message with this command, it works correctly:
But when I send a manual notification from the Nagios interface I have this error in the log:
These are the commands that I have configured, I have simplified the commands to debug:
Code: Select all
define command {
command_name notify-host-by-sns
command_line aws sns publish --topic-arn arn:aws:sns:us-east-1:618665696336:nagios-notifications --message “Prueba host”
}
define command {
command_name notify-service-by-sns
command_line aws sns publish --topic-arn arn:aws:sns:us-east-1:618665696336:nagios-notifications --message “Prueba servicio”
}
I appreciate your help, greetings!