Re: Mail settings and Error Log help request
"Courtney, Wrolf" <[email protected]> Fri, 11 Apr 2014 12:39:04 +0000
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <C22DA43300E0E24F8BCA9A53CE460F2E22CB0455@NYCT2BWYEXMB21.transit.nyct.com> |
Try:
telnet ssrs.reachmail.net 587
to make sure your DNS and mail server is working. I get:
220 ssrs.reachmail.net rmsmtp 3.1.0a b70a4b5df9
That should separate out whether you have an e-mail problem or an OpenNMS problem.
Wrolf
From: Chris Tallerico [mailto:[email protected]]
Sent: Thursday, April 10, 2014 8:09 PM
To: Installation questions and help
Subject: Re: [opennms-install] Mail settings and Error Log help request
Hello all-
Thanks for the replies both on and off list....I REALLY appreciate it and owe a few of you lunch (or good scotch).
I've tried removing the #.....confirming all ports...Even tried a different SMTP relay just in case...same errors :( Won't send to the SMTP relay.
Thinking about taking a drive out to the Golden Gate at this point! LOL
I'm wide open to suggestions and direction.
Thanks again!
CT
Chris Tallerico
Sr. Consultant
[cid:[email protected]]
Technology Manager for Premier Commercial Buildings Nationally
Office 866.824.8362 | Cell 415.509.0567 | [email protected]<mailto:[email protected]>
From: Courtney, Wrolf [mailto:[email protected]]
Sent: Thursday, April 10, 2014 12:02 PM
To: Installation questions and help
Subject: Re: [opennms-install] Mail settings and Error Log help request
Chris:
If you want the mailHost etc. settings to work you have to take the # off the beginning of the line. The # marks the line as a comment, these lines are just there to show you the syntax and the defaults.
You may also want to use port 25 (the default) instead of port 587, unless you are absolutely sure the mail administrators want you to use 587. You can try "telnet ssrs.reachmail.net 587" to test it, you should get a "220" back, then you can "quit".
Most people probably use sendmail or postfix running on 127.0.0.1 port 25, and let sendmail or postfix (an MTA) handle retransmitting mail if it gets backed up. This does require configuring your MTA, in postfix typically all you have to do is set relayhost in /etc/postfix/main.cf.
Not sure that this is your problem though, I would not have expected notifd to throw exceptions if your mailHost is not set correctly.
Wrolf
From: Chris Tallerico [mailto:[email protected]]
Sent: Thursday, April 10, 2014 1:15 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [opennms-install] Mail settings and Error Log help request
I know everyone is crazy busy but I'm stuck bad! LOL Any help is greatly appreciated. I'm seriously struggling with getting mail to send via SMTP relay. Here are my latest errors...
[cid:[email protected]]
Chris Tallerico
Sr. Consultant
[cid:[email protected]]
Technology Manager for Premier Commercial Buildings Nationally
Office 866.824.8362 | Cell 415.509.0567 | [email protected]<mailto:[email protected]>
From: Chris Tallerico
Sent: Wednesday, April 9, 2014 8:29 AM
To: '[email protected]'
Subject: Mail settings and Error Log help request
Trying to get email working and have the following errors:
[root@montgomertech daemon]# vi notifd.log
at org.opennms.netmgt.notifd.BroadcastEventProcessor.scheduleNoticesForEvent(BroadcastEventProcessor.java:592)
at org.opennms.netmgt.notifd.BroadcastEventProcessor.onEvent(BroadcastEventProcessor.java:184)
at org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl$EventListenerExecutor$2.run(EventIpcManagerDefaultImpl.java:173)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at org.opennms.core.concurrent.LogPreservingThreadFactory$2.run(LogPreservingThreadFactory.java:90)
at java.lang.Thread.run(Thread.java:662)
2014-04-09 07:42:54,211 ERROR [Notifd:BroadcastEventProcessor-Thread] BroadcastEventProcessor: notice not scheduled due to error:
java.lang.NumberFormatException: For input string: "null"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
at java.lang.Float.valueOf(Float.java:388)
at java.lang.Float.<init>(Float.java:489)
at org.opennms.core.utils.TimeConverter.convertToMillis(TimeConverter.java:120)
at org.opennms.netmgt.notifd.BroadcastEventProcessor.processEscalations(BroadcastEventProcessor.java:857)
at org.opennms.netmgt.notifd.BroadcastEventProcessor.scheduleNoticesForEvent(BroadcastEventProcessor.java:592)
at org.opennms.netmgt.notifd.BroadcastEventProcessor.onEvent(BroadcastEventProcessor.java:184)
at org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl$EventListenerExecutor$2.run(EventIpcManagerDefaultImpl.java:173)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at org.opennms.core.concurrent.LogPreservingThreadFactory$2.run(LogPreservingThreadFactory.java:90)
at java.lang.Thread.run(Thread.java:662)
2014-04-09 07:46:20,044 ERROR [Notifd:BroadcastEventProcessor-Thread] BroadcastEventProcessor: notice not scheduled due to error:
java.lang.NumberFormatException: For input string: "null"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
at java.lang.Float.valueOf(Float.java:388)
at java.lang.Float.<init>(Float.java:489)
at org.opennms.core.utils.TimeConverter.convertToMillis(TimeConverter.java:120)
at org.opennms.netmgt.notifd.BroadcastEventProcessor.processEscalations(BroadcastEventProcessor.java:857)
at org.opennms.netmgt.notifd.BroadcastEventProcessor.scheduleNoticesForEvent(BroadcastEventProcessor.java:592)
at org.opennms.netmgt.notifd.BroadcastEventProcessor.onEvent(BroadcastEventProcessor.java:184)
at org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl$EventListenerExecutor$2.run(EventIpcManagerDefaultImpl.java:173)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at org.opennms.core.concurrent.LogPreservingThreadFactory$2.run(LogPreservingThreadFactory.java:90)
at java.lang.Thread.run(Thread.java:662)
This is my current mail setting:
################################################################################
# This file is the configuration for the the JavaMailer class. It is used to
# specify the details of the JavaMailer system properties
################################################################################
#
# Properties are defined but commented out indicating the default values.
#
#
# This property defines system sender account.
#
# The default setting is root@[127.0.0.1<mailto:root@[127.0.0.1>]
#[email protected]<mailto:#[email protected]>
#
# These properties define the SMTP Host.
#
#org.opennms.core.utils.mailHost=ssrs.reachmail.net
#org.opennms.core.utils.mailer=smtpsend
#org.opennms.core.utils.transport=smtp
#org.opennms.core.utils.debug=true
#org.opennms.core.utils.smtpport=587
#org.opennms.core.utils.smtpssl.enable=false
#org.opennms.core.utils.quitwait=true
#
# This property controls the use of the JMTA
# if it is true, mailHost will be ignored
org.opennms.core.utils.useJMTA=false
#
# These properties define the Mail authentication.
#
#org.opennms.core.utils.authenticate=plain
#org.opennms.core.utils.authenticateUser=(myusername)
#org.opennms.core.utils.authenticatePassword=(mypassword)
#org.opennms.core.utils.starttls.enable=false
"javamail-configuration.properties" 41L, 1391C
Chris Tallerico
Sr. Consultant
[cid:[email protected]]
Technology Manager for Premier Commercial Buildings Nationally
Office 866.824.8362 | Cell 415.509.0567 | [email protected]<mailto:[email protected]>
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-install mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
image001.jpg
(image/jpeg, 2.6 KB) - not displayed
image002.png
(image/png, 19.5 KB) - not displayed