Kyle Morgan | 1 Aug 2012 23:14

Re: javax.mail.authenticationfailedexception Notification is not emailed. RESOLVED

Resolved.
 
Still not 100 percent sure what was wrong but I got it working.

Kyle Morgan
Information Systems Engineer
Rollx Vans
(952) 405-7769

> I am having trouble configuring email to send my notifications.
>
> Notifications have been turned on and both the admin account and
> the two user accounts in the destination path have valid email
> addresses.
>
> This is the error I have in notifd.log
>
> 2012-07-31 16:35:10,118 ERROR [Thread-465392]
> JavaMailNotificationStrategy: send: Error sending notification.
> org.opennms.javamail.JavaMailerException: Java Mailer messaging
> exception: javax.mail.AuthenticationFailedException
>       at
> org.opennms.javamail.JavaMailer.sendMessage(JavaMailer.java:453)    
>     at
> org.opennms.javamail.JavaMailer.mailSend(JavaMailer.java:246)      
>   at
> org.opennms.netmgt.notifd.JavaMailNotificationStrategy.send(JavaMailNo
> tificationStrategy.java:65)
>       at
> org.opennms.netmgt.notifd.ClassExecutor.execute(ClassExecutor.java:63)
>         at
> org.opennms.netmgt.notifd.NotificationTask.run(NotificationTask.java:2
> 60) Caused by: javax.mail.AuthenticationFailedException         at
> javax.mail.Service.connect(Service.java:319)         at
> org.opennms.javamail.JavaMailer.sendMessage(JavaMailer.java:440)    
>     ... 4 more
> Below is the javamailer-configuration.properties file.
>
> The changes I have made are in Red (I am not sure if color is an
> option, thus they are underlined as well) anything I needed to
> modify from default I left commented out and added a line, that
> didn't cause the issue as I had tried it differently before. I
> wanted to be able to see the defaults as I worked to figure it out
> this time.
>
> ######################################################################
> ########## # 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 <at> [127.0.0.1]
> #org.opennms.core.utils.fromAddress=root <at> [127.0.0.1]
> org.opennms.core.utils.fromAddress=TheEmailAddress   # # These
> properties define the SMTP Host. #
> #org.opennms.core.utils.mailHost=127.0.0.1
> org.opennms.core.utils.mailHost=smtp.gmail.com  
> #org.opennms.core.utils.mailer=smtpsend
> org.opennms.core.utils.transport=smtp
> #org.opennms.core.utils.debug=true
> org.opennms.core.utils.smtpport=25
> 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=false
> org.opennms.core.utils.authenticate=true  
> #org.opennms.core.utils.authenticateUser="opennms"
> org.opennms.core.utils.authenticateUser="TheEmailAddress"
> #org.opennms.core.utils.authenticatePassword="opennms"
> org.opennms.core.utils.authenticatePassword="ThePassword"  
> #org.opennms.core.utils.starttls.enable=false
> org.opennms.core.utils.starttls.enable=true   # # These properties
> configure message content #
> org.opennms.core.utils.messageContentType=text/plain
> org.opennms.core.utils.charset=us-ascii  
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
Löfgren Olof | 7 Aug 2012 08:37
Picon

1.10.4.1 doesnt start

After upgrading, found this in /var/log/opennms/daemon/output.log

Executing command: /usr/share/opennms/bin/runjava -r  -- -Djava.endorsed.dirs=/usr/share/opennms/lib/endorsed   -Dopenn$

[DEBUG] System property 'opennms.library.jicmp' set to '/usr/lib/jni/libjicmp.so.  Attempting to load jicmp library fro$

[INFO] Successfully loaded jicmp library.
[DEBUG] System property 'opennms.library.jicmp6' not set.  Attempting to load library using System.loadLibrary("jicmp6"$

[INFO] Successfully loaded jicmp6 library.
An error occurred while attempting to start the "OpenNMS:Name=Eventd" service (class org.opennms.netmgt.eventd.jmx.Even$

$r!/beanRefContext.xml]: Cannot resolve reference to bean 'commonContext' while setting constructor argument; nested ex$

        at com.sun.jmx

Regards

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
Les Mikesell | 7 Aug 2012 20:29
Picon

Which java version?

If you use yum to install opennms, it will pull a copy of java from
the opennms repository due to the jdk requirement.   However, 'runjava
-s' finds the version in your path, which will be openjdk if you have
installed that from your linux distribution.

Does it matter which one is used?

On Centos 6.3, the relevant versions are:
(stock)
java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (rhel-1.48.1.11.3.el6_2-x86_64)

(From Opennms repo)
/usr/java/latest/bin/java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

-- 
  Les Mikesell
    lesmikesell <at> gmail.com

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

David S Hustace | 19 Aug 2012 16:23
Favicon

Re: 1.10.4.1 doesnt start


On Aug 7, 2012, at 2:37 AM, Löfgren Olof <olof.lofgren <at> tullverket.se> wrote:

After upgrading, found this in /var/log/opennms/daemon/output.log

How did you do your installation?


David
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
Mehrnoosh Ansari | 19 Aug 2012 22:28
Picon

Error in running a QOS daemon

Dear All
I have tried to add qos deamon to opennms 1.8.14 and get the opennms start and running but encountered an error.
I persued all the steps mentioned in the qos document and  executed all script related to the qos.before running the related script qos, opennms is running, but after, opennms is not start. It seems that the document and configuration have been prepared for fedora 4 and previous versions of opennms in our project, we use fedora 15 and opennms 1.8.14, Is it possible that you guide me how to solve this problem?
the exception is it :
An error occurred while attempting to start the "OpenNMS:Name=Eventd" service (class org.opennms.netmgt.eventd.jmx.
Eventd).  Shutting down and exiting.
javax.management.RuntimeMBeanException: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [eventDaemonContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventDaemonContext' defined in URL [jar:file:/opt/opennms-1.8.14/source/target/opennms-1.8.14/lib/opennms-services-1.8.14.jar!/beanRefContext.xml
Unable to return specified BeanFactory instance: factory key [eventDaemonContext]
caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventDaemonContext' defined in URL
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commonContext' defined
......

best regards
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
Löfgren Olof | 20 Aug 2012 08:02
Picon

Re: 1.10.4.1 doesnt start

openNMS was install a couple of years ago on this machine. Since then many upgrades, so I'm not sure how installation was made.
Any clue?
 
Olof

Från: David S Hustace [mailto:david <at> opennms.com]
Skickat: den 19 augusti 2012 16:24
Till: Installation questions and help
Ämne: Re: [opennms-install] 1.10.4.1 doesnt start


On Aug 7, 2012, at 2:37 AM, Löfgren Olof <olof.lofgren <at> tullverket.se> wrote:

After upgrading, found this in /var/log/opennms/daemon/output.log

How did you do your installation?


David
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
Jarrod Friedland | 16 Aug 2012 02:57
Picon

OpenNMS/Centos 6

Morning All

Quick Question if I may, anyone got any advice or tricks or traps running openNMS / Centos6?

--
Thanks
Jarrod
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

saranya guna | 23 Aug 2012 20:09
Picon

(no subject)

Hi,

We are sending syslog messages from device . I made changes in opennms to parse syslog messages. I changed the below files :

i) Created a new event file and added that file in eventconf.xml
ii) Added the new event in drools-engine.xml and written rules in eventMappingRules.drl .

I restarted opennms . I got the below error in output.log ,

Caused by: java.lang.RuntimeException: Unable to initialize Drools engine ncs

        at org.opennms.netmgt.correlation.drools.config.RuleSet.constructEngine(RuleSet.java:909)

        at org.opennms.netmgt.correlation.drools.config.EngineConfiguration.constructEngines(EngineConfiguration.java:356)

        at org.opennms.netmgt.correlation.drools.DroolsCorrelationEngineBuilder$PluginConfiguration.constructEngines(DroolsCorrelationEngineBuilder.java:78)

        at org.opennms.netmgt.correlation.drools.DroolsCorrelationEngineBuilder.registerEngines(DroolsCorrelationEngineBuilder.java:128)

        at org.opennms.netmgt.correlation.drools.DroolsCorrelationEngineBuilder.onApplicationEvent(DroolsCorrelationEngineBuilder.java:231)

        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)

        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)

        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)

        ... 35 more

Caused by: org.drools.rule.InvalidRulePackage: Rule Compilation error :

I think the error was due to the new rules added.
 
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
Valentine, Michael | 23 Aug 2012 22:03
Picon
Favicon

SNMP v3 issues

Trying to configure SNMP v3 and getting these errors when I check OpenNMS:

SNMP data collection on interface xxx.xxx.xxx.xxx failed 
with 'Timeout retrieving SnmpCollectors for xxx.xxx.xxx.xxx 
for /xxx.xxx.xxx.xxx: SnmpCollectors for 
xxx.xxx.xxx.xxx: snmpTimeoutError for: /xxx.xxx.xxx.xxx'.

SNMP outage identified on interface xxx.xxx.xxx.xxx with 
reason code: SNMP poll failed, addr=xxx.xxx.xxx.xxx 
oid=.1.3.6.1.2.1.1.2.0.

Has anybody successfully setup SNMP v3 on OpenNMS?  Can someone provide a copy of their snmp-config.xml
file for comparison.  Might sheath a light on what I'm doing wrong.  I can successfully perform a snmpwalk
from several workstations to my switches but not from the OpenNMS box to the switches

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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


Gmane