Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have downloaded and configured nagios to moniter some services. I want nagios to notify me by my e-mail (blabla@yahoo.com) or what ever. There is a plugin that says it can do that but i do not know what to make of it. http://exchange.nagios.org/directory...mailer/details
I put the .pl file in the libexec dir and copied and pasted the command.cfg stuff in to the command.cfg file and did the same for contacts. At the bottom of his page it says ".... rest of contact details .... "
What does that mean
All i really want is an e-mail setting in my personal e-mail account notifing me of stuff.
Last edited by edwardcode; 06-01-2010 at 09:58 AM.
As indicated on the page you're referring to, this script is a replacement for the basic Nagios emailer. Nagios without any extra script already sends emails on alerts, warnings etc. Have you tried the basic Nagios emailer? I'm assuming you're just missing a MTA (Mail Transfer Agent) like Postfix or Sendmail. The simplest is Postfix in my opinion. You can easily configure it to relay all mails to your mail account.
But you'll have to be aware that if you're planning on sending to Yahoo or GMail, that you'll have to do some extra tweaking since they don't accept relaying from dynamic IP.
I can try Can you tell me what distro you're using so can I provide the correct commands? I imagine if you installed Nagios that you have root console access or sudo and that you're acquainted with working at console level. I usually install Postfix, so if you know how to install that for your distro then go ahead and do so.
OK, do you have a RHN subscription or do you have external repositories set up? Do you think you can install Postfix? (I'm not so familiar with RedHat itself, mostly Debian, some CentOS).
If you're just going to relay mails to another mail server then it's not that difficult. Can I ask to what sort of server you want to relay too? Yahoo, GMail, your own mail.domain.com, other? If you're going to relay to the Yahoo,Gmail kind, is your server behind a fixed IP or a dynamic one? Does your ISP block ports to your knowledge?
No experience with Yahoo, but let's try. Do you know to what port you send you're outgoing mail? In other words what's the port of the smtp server of Yahoo? If you can find that out, then you can try telnetting to it and see if you get a response.
You know, if you think it will be easier you can just coppy and past you configuration files and there locations and I can make some ajustments so it can fit my needs.
Last edited by edwardcode; 06-02-2010 at 06:14 AM.
The only file you normally have to edit is /etc/postfix/main.cf (that's in Debian, your main.cf might be located in another place). What I had to put in was this:
and all mail from this server gets redirected to our GMail for enterprises. I have similar setup on all our other servers (LAN and/or VPN) that need mail enabled but in those configs the mydestination parameter only holds the name hostname.mydomain.es. Worth mentioning is that we have fixed IP. I didn't even have to put in SASL authentication which might be necessary in other cases. Hope this helps you out.
Kind regards,
Eric
PS: Sorry for the delay but I had to teach class, followed by meeting and lunch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.