meta data de esta página
Diferencias
Muestra las diferencias entre dos versiones de la página.
Próxima revisión | Revisión previa | ||
seguridad:monitorizacion:zabbix2:correo [2015/03/06 12:18] – creado luisca | seguridad:monitorizacion:zabbix2:correo [2023/01/18 14:46] (actual) – editor externo 127.0.0.1 | ||
---|---|---|---|
Línea 4: | Línea 4: | ||
< | < | ||
- | And that's it! We can now start sending e-mails using the " | + | Creamos un enlace simbólico |
- | What Are Symbolic Links and How To Create One | + | < |
- | Symbolic links (symlink) are files which consist of a reference to another, existing file. | + | Editamos el fichero /etc/mail.rc |
- | Some monitoring scripts and applications might use " | + | < |
- | Below, we are creating a symbolic link for "mail" to execute "mailx". | + | Añadimos las siguientes líneas dependiendo de nuestra configuración al final del fichero. Para gmail sería : |
+ | < | ||
+ | set smtp-use-starttls | ||
+ | set ssl-verify=ignore | ||
+ | set smtp-auth=login | ||
+ | set smtp=smtp:// | ||
+ | set from="usuario@gmail.com" | ||
+ | set smtp-auth-user=usuario@gmail.com | ||
+ | set smtp-auth-password=micontraseña | ||
+ | set ssl-verify=ignore | ||
+ | set nss-config-dir=/ | ||
+ | </ | ||
- | In order to create | + | < |
+ | < | ||
+ | < | ||
+ | < | ||
- | $ ln -s /bin/mailx /bin/email | + | Para comprobar que funciona |
+ | < | ||
- | How to Set an External SMTP Server to Relay E-Mails | + | === Configurar Zabbix para enviar alertas === |
+ | Para activar en zabbix la alertas por correo debemos de ir a Administration-> Media Types y modificamos el modelo que aparece como email con la configuración de nuestro servidor de correos | ||
+ | {{: | ||
- | Using this lean solution, as mentioned above, can mean that some of your e-mails might hit the spam folder. As you are aiming for a simple application for alerts, this should not be an issue. However, if you want increased delivery rates (i.e. to your inbox) you can opt to relay your messages through external SMTP servers (i.e. your e-mail provider' | + | Una vez habilitado el nuevo medio debemos ir al usuario, en nuestro caso el administrador, y en la configuración del mismo en la pestaña media, añadir uno del tipo email que acabamos de crear |
+ | {{: | ||
+ | {{: | ||
- | In order to set up a SMTP server [configuration] for " | ||
- | Open up " | + | En Configuration-> |
- | + | ==== Enviar alertas | |
- | $ nano / | + | http://www.elmundoenbits.com/2013/02/zabbix-log-alerts.html |
- | + | ||
- | Below you can find an example SMTP settings, which you will need to modify to match your provider' | + | |
- | + | ||
- | Example: | + | |
- | + | ||
- | # set smtp=smtp://smtp.server.tld: | + | |
- | set smtp=smtp://smtp.example.com: | + | |
- | # tell mailx that it needs to authorise | + | |
- | set smtp-auth=login | + | |
- | # set the user for SMTP | + | |
- | # set smtp-auth-user=user@domain.tld | + | |
- | set smtp-auth-user=user.name@example.com | + | |
- | # set the password for authorisation | + | |
- | set smtp-auth-password=enter-password-here-1234 | + | |
+ | ==== Enviar alertas por twitter ==== | ||
+ | http:// | ||
+ | ==== Referencias ==== | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * http:// |