Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
root@opm:~# apt-get install 'perl(Net::SSLeay)' 'perl(IO::Socket::SSL)'
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package perl(Net:
E: Unable to locate package perl(IO::Socket:
Do you have any official doc to configure email notification for nagios core? I am using Ubuntu 14.04. I had installed nagios by following this doc. https://support.nagios.com/kb/article.php?id=97
Pretty much, make sure notifications are enabled on a host / service, assign a contact, and then whatever command is assigned to that contact will be triggered upon a notification. The default contact 'nagiosadmin' is a good example, which will use the notify-host-by-email and notify-service-by-email commands by default. This however, would utilize sendmail and not an external SMTP server such as gmail or yahoo.
Now, look at how your notify-host-by-email, and notify-service-by-email, and adjust the path as needed, for example on my machine you can see /bin/mail is specified. -
If you are using the /bin/mail command, you will have to either install the postfix or sendmail daemon on your server and then use that to forward emails from the nagios server to gmail.
Can you post back if the server has sendmail or postfix installed on it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Actually it started working yesterday just after installing and configuring the postfix, but as the email was going to spam I didn't notice it. So, configuring sasl_passwd and main.cf is not required.