Re: RV: Configuracion Nagios
Acabo de añadir la cuenta de correo como pones, y sigue sin enviar. De: Juan Antonio [mailto:push...@limbo.ari.es] Enviado el: jueves, 21 de julio de 2011 13:31 Para: debian-user-spanish@lists.debian.org Asunto: Re: Configuracion Nagios El 21/07/11 13:06, J.B escribió: Hola a tod@s, Alguien que me pueda decir que revisar en la configuración de Nagios para lo grar que me envie notificaciones al correo cuando se cae un servicio ó un servidor. La versión de Nagios es 3.2.2 Un saludo y gracias. Hola, basicamente defines un comando en commands.cfg define command{ command_namenotify-service-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** tucuentadecor...@tudominio.com } y lo asignas a los contactos que te interesen en templates.cfg define contact{ [ ] service_notification_commands notify-service-by-email, ... host_notification_commands notify-host-by-email, [.] } Un saludo. -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4e280e11.4040...@limbo.ari.es
Re: RV: Configuracion Nagios
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 J.B escribió: Acabo de añadir la cuenta de correo como pones, y sigue sin enviar. Buenas Por favor no hagas topposting [1]. Has probado con el script en perl que te indique [2]? Sino debes tener el servidor de correo configurado en la maquina para que este te deje enviar. [1] http://en.wikipedia.org/wiki/Posting_style#Top-posting [2] http://elaqueldeaquellar.es/blog/2009/02/enviar-notificaciones-via-email-con-nagios/ Un saludo - -- Si los tontos volaran, el cielo se oscurecería No me envié correos en formatos propietarios http://www.gnu.org/philosophy/no-word-attachments.es.html -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOKCBDAAoJEOWNzQnqy+fzpmoH/iChZY7LcjBba0LlDPxizJ/L duhhcTyCbsVTSKrzqneEDF6GrD7RQTDYhkHFcAMOnmNvB6qKvNoXRKz+QVPctu2t mA+KH8X9t4wY+n7kh5fKRYST0JD+y2/o+DHUZLhPeqOEX1RAzK5xO8H/eD2IwQqz /xJ2ewrxD6bNVjEgRJb8yC6GhVFPOKeDNVpWdHZIUsRnNWHnZi/Ll4wcF465gjy9 1vYFcezVIkbMEVWuyOPfcwsJssN9BVDrlucfRGJMLLYYayMY+x989a5wEvep1C+7 KXg+bekAd0TY1N4QISbnV0cNMMr4SUlTWDQ0je/mTt/2qW5bWNzDXjtGtBnahd4= =2r45 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/blu0-smtp99e5581317c43bcabf11bbb1...@phx.gbl