Dan McGurk | 14 May 2013 17:00
Picon
Favicon

Trouble with step 2 of installation Debian

Adding the OpenNMS PGP Key to APT


wget -O - http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add -
 
 
returns
Saving to: aSTDOUTa
 
Cannot write to a-a  (and both 'a' have the ^ above them).
 
 
Any ideas?
 
Thanks,
Dan
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
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
LJ Chong | 9 May 2013 10:26
Picon

Installaton Issue

Hi, I hope someone can help me with this error when I am starting OpenNMS:

An error occurred while attempting to start the 

"OpenNMS:Name=Reportd" service (
class 

org.opennms.netmgt.daemon.SimpleSpringContextJmxServi

ceDaemon).  Shutting
down and exiting.
javax.management.RuntimeMBeanException: 

org.springframework.beans.factory.access
.BootstrapException: Unable to return specified 

BeanFactory instance: factory ke
y [reportdContext], from group with resource name 

[classpath*:beanRefContext.xml
]; nested exception is 

org.springframework.beans.factory.BeanCreationExcepti

on:
Error creating bean with name 'reportdContext' 

defined in URL [jar:file:/D:/Prog
ram%20Files/OpenNMS/lib/opennms-reportd-

1.10.9.jar!/beanRefContext.xml]: Instant
iation of bean failed; nested exception is 

org.springframework.beans.BeanInstant
iationException: Could not instantiate bean class 

[org.springframework.context.s
upport.ClassPathXmlApplicationContext]: Constructor 

threw exception; nested exce
ption is 

org.springframework.beans.factory.BeanCreationExcepti

on: Error creating
 bean with name 'daemonListener' defined in class 

path resource [META-INF/opennm
s/applicationContext-reportd.xml]: Cannot resolve 

reference to bean 'daemon' whi
le setting bean property 'annotatedListener'; nested 

exception is org.springfram
ework.beans.factory.BeanCreationException: Error 

creating bean with name 'daemon
' defined in class path resource [META-

INF/opennms/applicationContext-reportd.xm
l]: Initialization of bean failed; nested exception 

is java.lang.NoClassDefFound
Error: javax/mail/MessagingException
        at 

com.sun.jmx.interceptor.DefaultMBeanServerInterceptor

.rethrow(Default
MBeanServerInterceptor.java:856)
        at 

com.sun.jmx.interceptor.DefaultMBeanServerInterceptor

.rethrowMaybeMBe
anException(DefaultMBeanServerInterceptor.java:869)
        at 

com.sun.jmx.interceptor.DefaultMBeanServerInterceptor

.invoke(DefaultM
BeanServerInterceptor.java:838)
        at 

com.sun.jmx.mbeanserver.JmxMBeanServer.invoke

(JmxMBeanServer.java:761
)
        at org.opennms.netmgt.vmmgr.Invoker.invoke

(Invoker.java:316)
        at 

org.opennms.netmgt.vmmgr.Invoker.invokeMethods

(Invoker.java:239)
        at org.opennms.netmgt.vmmgr.Starter.start

(Starter.java:245)
        at 

org.opennms.netmgt.vmmgr.Starter.startDaemon

(Starter.java:116)
        at org.opennms.netmgt.vmmgr.Controller.start

(Controller.java:190)
        at org.opennms.netmgt.vmmgr.Controller.main

(Controller.java:162)
        at 

sun.reflect.NativeMethodAccessorImpl.invoke0(Native 

Method)
        at 

sun.reflect.NativeMethodAccessorImpl.invoke

(NativeMethodAccessorImpl.
java:39)
        at 

sun.reflect.DelegatingMethodAccessorImpl.invoke

(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke

(Method.java:597)
        at org.opennms.bootstrap.Bootstrap$3.run

(Bootstrap.java:346)
        at java.lang.Thread.run(Thread.java:662)
Caused by: 

org.springframework.beans.factory.access.BootstrapExc

eption: Unable t
o return specified BeanFactory instance: factory key 

[reportdContext], from grou
p with resource name [classpath*:beanRefContext.xml]; 

nested exception is org.sp
ringframework.beans.factory.BeanCreationException: 

Error creating bean with name
 'reportdContext' defined in URL 

[jar:file:/D:/Program%20Files/OpenNMS/lib/openn
ms-reportd-1.10.9.jar!/beanRefContext.xml]: 

Instantiation of bean failed; nested
 exception is 

org.springframework.beans.BeanInstantiationException: 

Could not in
stantiate bean class 

[org.springframework.context.support.ClassPathXmlAppl

icatio
nContext]: Constructor threw exception; nested 

exception is org.springframework.
beans.factory.BeanCreationException: Error creating 

bean with name 'daemonListen
er' defined in class path resource [META-

INF/opennms/applicationContext-reportd.
xml]: Cannot resolve reference to bean 'daemon' while 

setting bean property 'ann
otatedListener'; nested exception is 

org.springframework.beans.factory.BeanCreat
ionException: Error creating bean with name 'daemon' 

defined in class path resou
rce [META-INF/opennms/applicationContext-

reportd.xml]: Initialization of bean fa
iled; nested exception is 

java.lang.NoClassDefFoundError: 

javax/mail/MessagingEx
ception
        at 

org.springframework.beans.factory.access.SingletonBea

nFactoryLocator.
useBeanFactory(SingletonBeanFactoryLocator.java:409)
        at 

org.opennms.core.utils.BeanUtils.getBeanFactory

(BeanUtils.java:51)
        at 

org.opennms.core.utils.BeanUtils.getFactory

(BeanUtils.java:93)
        at 

org.opennms.netmgt.daemon.AbstractSpringContextJmxSer

viceDaemon.init(
AbstractSpringContextJmxServiceDaemon.java:97)
        at 

sun.reflect.GeneratedMethodAccessor58.invoke(Unknown 

Source)
        at 

sun.reflect.DelegatingMethodAccessorImpl.invoke

(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke

(Method.java:597)
        at 

com.sun.jmx.mbeanserver.StandardMBeanIntrospector.inv

okeM2(StandardMB
eanIntrospector.java:93)
        at 

com.sun.jmx.mbeanserver.StandardMBeanIntrospector.inv

okeM2(StandardMB
eanIntrospector.java:27)
        at 

com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM

(MBeanIntrospector.j
ava:208)
        at 

com.sun.jmx.mbeanserver.PerInterface.invoke

(PerInterface.java:120)
        at 

com.sun.jmx.mbeanserver.MBeanSupport.invoke

(MBeanSupport.java:262)
        at 

com.sun.jmx.interceptor.DefaultMBeanServerInterceptor

.invoke(DefaultM
BeanServerInterceptor.java:836)
        ... 13 more
Caused by: 

org.springframework.beans.factory.BeanCreationExcepti

on: Error creati
ng bean with name 'reportdContext' defined in URL 

[jar:file:/D:/Program%20Files/
OpenNMS/lib/opennms-reportd-

1.10.9.jar!/beanRefContext.xml]: Instantiation of be
an failed; nested exception is 

org.springframework.beans.BeanInstantiationExcept
ion: Could not instantiate bean class 

[org.springframework.context.support.Class
PathXmlApplicationContext]: Constructor threw 

exception; nested exception is org
.springframework.beans.factory.BeanCreationException: 

Error creating bean with n
ame 'daemonListener' defined in class path resource 

[META-INF/opennms/applicatio
nContext-reportd.xml]: Cannot resolve reference to 

bean 'daemon' while setting b
ean property 'annotatedListener'; nested exception is 

org.springframework.beans.
factory.BeanCreationException: Error creating bean 

with name 'daemon' defined in
 class path resource [META-

INF/opennms/applicationContext-reportd.xml]: Initiali
zation of bean failed; nested exception is 

java.lang.NoClassDefFoundError: javax
/mail/MessagingException
        at 

org.springframework.beans.factory.support.Constructor

Resolver.autowir
eConstructor(ConstructorResolver.java:288)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.autowireConstructor

(AbstractAutowireCapableBeanFactory.java:1003)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.createBeanInstance

(AbstractAutowireCapableBeanFactory.java:907)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.doCreateBean

(AbstractAutowireCapableBeanFactory.java:485)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.createBean

(AbstractAutowireCapableBeanFactory.java:456)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory$1.getOb
ject(AbstractBeanFactory.java:291)
        at 

org.springframework.beans.factory.support.DefaultSing

letonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory.doGetBe
an(AbstractBeanFactory.java:288)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory.getBean
(AbstractBeanFactory.java:194)
        at 

org.springframework.context.support.AbstractApplicati

onContext.getBea
n(AbstractApplicationContext.java:1079)
        at 

org.springframework.beans.factory.access.SingletonBea

nFactoryLocator.
useBeanFactory(SingletonBeanFactoryLocator.java:397)
        ... 25 more
Caused by: 

org.springframework.beans.BeanInstantiationException: 

Could not insta
ntiate bean class 

[org.springframework.context.support.ClassPathXmlAppl

icationCo
ntext]: Constructor threw exception; nested exception 

is org.springframework.bea
ns.factory.BeanCreationException: Error creating bean 

with name 'daemonListener'
 defined in class path resource [META-

INF/opennms/applicationContext-reportd.xml
]: Cannot resolve reference to bean 'daemon' while 

setting bean property 'annota
tedListener'; nested exception is 

org.springframework.beans.factory.BeanCreation
Exception: Error creating bean with name 'daemon' 

defined in class path resource
 [META-INF/opennms/applicationContext-reportd.xml]: 

Initialization of bean faile
d; nested exception is 

java.lang.NoClassDefFoundError: 

javax/mail/MessagingExcep
tion
        at 

org.springframework.beans.BeanUtils.instantiateClass

(BeanUtils.java:1
41)
        at 

org.springframework.beans.factory.support.SimpleInsta

ntiationStrategy
.instantiate(SimpleInstantiationStrategy.java:108)
        at 

org.springframework.beans.factory.support.Constructor

Resolver.autowir
eConstructor(ConstructorResolver.java:280)
        ... 35 more
Caused by: 

org.springframework.beans.factory.BeanCreationExcepti

on: Error creati
ng bean with name 'daemonListener' defined in class 

path resource [META-INF/open
nms/applicationContext-reportd.xml]: Cannot resolve 

reference to bean 'daemon' w
hile setting bean property 'annotatedListener'; 

nested exception is org.springfr
amework.beans.factory.BeanCreationException: Error 

creating bean with name 'daem
on' defined in class path resource [META-

INF/opennms/applicationContext-reportd.
xml]: Initialization of bean failed; nested exception 

is java.lang.NoClassDefFou
ndError: javax/mail/MessagingException
        at 

org.springframework.beans.factory.support.BeanDefinit

ionValueResolver
.resolveReference

(BeanDefinitionValueResolver.java:328)
        at 

org.springframework.beans.factory.support.BeanDefinit

ionValueResolver
.resolveValueIfNecessary

(BeanDefinitionValueResolver.java:106)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.applyPropertyValues

(AbstractAutowireCapableBeanFactory.java:1325)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.populateBean

(AbstractAutowireCapableBeanFactory.java:1086)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.doCreateBean

(AbstractAutowireCapableBeanFactory.java:517)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.createBean

(AbstractAutowireCapableBeanFactory.java:456)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory$1.getOb
ject(AbstractBeanFactory.java:291)
        at 

org.springframework.beans.factory.support.DefaultSing

letonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory.doGetBe
an(AbstractBeanFactory.java:288)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory.getBean
(AbstractBeanFactory.java:190)
        at 

org.springframework.beans.factory.support.DefaultList

ableBeanFactory.
preInstantiateSingletons

(DefaultListableBeanFactory.java:580)
        at 

org.springframework.context.support.AbstractApplicati

onContext.finish
BeanFactoryInitialization

(AbstractApplicationContext.java:895)
        at 

org.springframework.context.support.AbstractApplicati

onContext.refres
h(AbstractApplicationContext.java:425)
        at 

org.springframework.context.support.ClassPathXmlAppli

cationContext.<i
nit>(ClassPathXmlApplicationContext.java:139)
        at 

org.springframework.context.support.ClassPathXmlAppli

cationContext.<i
nit>(ClassPathXmlApplicationContext.java:105)
        at 

sun.reflect.NativeConstructorAccessorImpl.newInstance

0(Native Method)

        at 

sun.reflect.NativeConstructorAccessorImpl.newInstance

(NativeConstruct
orAccessorImpl.java:39)
        at 

sun.reflect.DelegatingConstructorAccessorImpl.newInst

ance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance

(Constructor.java:513)
        at 

org.springframework.beans.BeanUtils.instantiateClass

(BeanUtils.java:1
26)
        ... 37 more
Caused by: 

org.springframework.beans.factory.BeanCreationExcepti

on: Error creati
ng bean with name 'daemon' defined in class path 

resource [META-INF/opennms/appl
icationContext-reportd.xml]: Initialization of bean 

failed; nested exception is
java.lang.NoClassDefFoundError: 

javax/mail/MessagingException
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.doCreateBean

(AbstractAutowireCapableBeanFactory.java:527)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.createBean

(AbstractAutowireCapableBeanFactory.java:456)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory$1.getOb
ject(AbstractBeanFactory.java:291)
        at 

org.springframework.beans.factory.support.DefaultSing

letonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory.doGetBe
an(AbstractBeanFactory.java:288)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory.getBean
(AbstractBeanFactory.java:190)
        at 

org.springframework.beans.factory.support.BeanDefinit

ionValueResolver
.resolveReference

(BeanDefinitionValueResolver.java:322)
        ... 56 more
Caused by: java.lang.NoClassDefFoundError: 

javax/mail/MessagingException
        at java.lang.Class.getDeclaredConstructors0

(Native Method)
        at 

java.lang.Class.privateGetDeclaredConstructors

(Class.java:2389)
        at java.lang.Class.getDeclaredConstructors

(Class.java:1836)
        at 

org.springframework.beans.factory.annotation.Autowire

dAnnotationBeanP
ostProcessor.determineCandidateConstructors

(AutowiredAnnotationBeanPostProcessor
.java:227)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.determineConstructorsFromBeanPostProcessors

(AbstractAutowireCapableBeanF
actory.java:930)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.createBeanInstance

(AbstractAutowireCapableBeanFactory.java:903)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.doCreateBean

(AbstractAutowireCapableBeanFactory.java:485)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.createBean

(AbstractAutowireCapableBeanFactory.java:456)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory$1.getOb
ject(AbstractBeanFactory.java:291)
        at 

org.springframework.beans.factory.support.DefaultSing

letonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory.doGetBe
an(AbstractBeanFactory.java:288)
        at 

org.springframework.beans.factory.support.AbstractBea

nFactory.getBean
(AbstractBeanFactory.java:190)
        at 

org.springframework.beans.factory.support.BeanDefinit

ionValueResolver
.resolveReference

(BeanDefinitionValueResolver.java:322)
        at 

org.springframework.beans.factory.support.BeanDefinit

ionValueResolver
.resolveValueIfNecessary

(BeanDefinitionValueResolver.java:106)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.applyPropertyValues

(AbstractAutowireCapableBeanFactory.java:1325)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.populateBean

(AbstractAutowireCapableBeanFactory.java:1086)
        at 

org.springframework.beans.factory.support.AbstractAut

owireCapableBean
Factory.doCreateBean

(AbstractAutowireCapableBeanFactory.java:517)
        ... 62 more
Caused by: java.lang.ClassNotFoundException: 

javax.mail.MessagingException
        at java.net.URLClassLoader$1.run

(URLClassLoader.java:202)
        at 

java.security.AccessController.doPrivileged(Native 

Method)
        at java.net.URLClassLoader.findClass

(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass

(ClassLoader.java:306)
        at java.net.FactoryURLClassLoader.loadClass

(URLClassLoader.java:627)
        at java.lang.ClassLoader.loadClass

(ClassLoader.java:247)
        ... 79 more

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
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
Stefan Warman | 1 May 2013 14:31

Problem Detecting Outages of Custom HTTP Service Monitor

Hello,

I'm having trouble getting a custom poller to log outages to the events 
list. I've set up a new service in capsd:

<protocol-plugin protocol="MyCustomTest" 
class-name="org.opennms.netmgt.capsd.plugins.HttpPlugin" scan="on">
<property key="port" value="80" />
<property key="timeout" value="30000" />
<property key="retry" value="1" />
<property key="url" value="/testpage.php"/>
</protocol-plugin>

This appears to work fine. The service shows up in my node's service 
list. Once I'd done that I noticed it was set to "Not Monitored" so 
after some reading I realised I needed a poller service for the 
monitoring to work. As such I added the following to my 
poller-configuration:

<service name="MyCustomTest" interval="300000" user-defined="false" 
status="on">
<parameter key="retry" value="1" />
<parameter key="timeout" value="30000" />
<parameter key="port" value="80" />
<parameter key="url" value="/testpage.php" />
<parameter key="response-text" value="~.*THE PAGE CONTENT.*"/>
<parameter key="rrd-repository" value="/opt/opennms/share/rrd/response" />
<parameter key="rrd-base-name" value="switch-customtest" />
<parameter key="ds-name" value="switch-customtest" />
</service>

Once I'd restarted opennms my service showed up as 100% available. So 
next I tried stopping the webserver on the node. This caused the default 
HTTP and HTTPS services to show up in the Recent Outage list but my 
custom service did nothing. I've been fiddling about with it for a long 
time and whatever I do I can't get the custom service to show as offline 
in the openNMS UI.

Is there something obvious I'm missing here? If not how can I debug this 
issue?

Thanks,

Stefan

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
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

PG | 24 Apr 2013 12:30

Tivoli Omnibus integration.

Hello

my name is Paolo Giorgi,

I'm testing opennms for use in a mid size network (800 network device), in last year I've used Opennms to monitor some critical interfaces.

Now I'm testing the integration with tivoli Omnibus following the instructions at http://www.opennms.org/wiki/Integrating_OpenNMS_with_IBM/Micromuse_Netcool_OMNIbus_and_Webtop

I had to correct the expression at line 94 and 104.

descrString = event.descr.replaceAll("<.*>", " ").replaceAll("\\s+", " ");

The opennms version is 1.10
at the moment the sistem startup with the modified scriptd-configuration.xml file, but not traps are sent to omnibus.

Has Anyone had success integrating opennms with omnibus?
There is any change to apply on the script?

Best Regards
Paolo Giorgi




 

 

 
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
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
bernd.riedel | 4 Apr 2013 00:36
Picon
Favicon

Re: OpenNMS 1.10.8 installation problem on Debian 3.2.39-2 x86_64

Sehr geehrte Damen und Herren,

vielen Dank für Ihre eMail! Ich bin erst wieder ab dem 08.04.2013  im Büro erreichbar. Ihre eMail bleibt
zunächst ungelesen.

In dringenden Fragen senden Sie bitte eine eMail an support <at> edvkon.de.

Diese E-Mail wird nicht weitergeleitet!

Mit freundlichen Grüßen
Bernd Riedel

EDVKON GmbH
Berliner Str. 51
64546 Mörfelden-Walldorf

Fon: 06105 279007
Fax: 06105 279006
mobil: 0151 5855 8916
email: info <at> edvkon.de
web: http://www.edvkon.de

HRB 87771, Amtsgericht Darmstadt, Geschäftsführer: Bernd Riedel, Sitz der Gesellschaft: Mörfelden-Walldorf

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
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
Salih Selcuk OZEN | 4 Apr 2013 00:34
Picon

OpenNMS 1.10.8 installation problem on Debian 3.2.39-2 x86_64

Hello,

I've been stuck installing OpenNMS 1.10.8 on Debian 3.2.39-2 x86_64, using PostgreSQL v9.1. Any help will be appreciated.

All installation requirements have been confined,

all installation attempts have been tried both with sun java version "1.6.0_43" and java version "1.7.0_17". liquibase 2.0.1(included with opennms), 2.0.5 and 3.0.0(beta) versions have been tried independently but problem persists.

PostgreSQL access grants are confirmed, both on localhost cli and debugging installation procedure, liquibase is watched to update lock table and then deleteing the record it updated.(This is done to confirm, if actually access has been successfully achieved by the installation process).

opennms database has been created by the installer successfully, and postgres user can logon w/o password. Dropping opennms results successfully creation of same db by the installer. Deleting all rows in table databasechangeloglock changes error to no rows returned.

This is an attempt for a  full fresh install, for all postgresql, opennms and java. I have searched mailing lists but couldnt get any to work for this situation.


 Following log output is where I'm got stuck:

* using 'postgres' as the PostgreSQL user for OpenNMS
* using 'opennms' as the PostgreSQL database name for OpenNMS
- checking if database "opennms" is unicode... ALREADY UNICODE
- Checking for old import files in /usr/share/opennms/etc... DONE
- Running migration for changelog: URL [jar:file:/usr/share/java/opennms/org.opennms.core.schema-1.10.8-liquibase.jar!/changelog.xml]
DEBUG 04.04.2013 01:19:liquibase: Unable to load/access Apache Derby driver class org.apache.derby.tools.sysinfo to check version: org.apache.derby.tools.sysinfo
DEBUG 04.04.2013 01:19:liquibase: Connected to opennms <at> jdbc:postgresql://localhost:5432/opennms
DEBUG 04.04.2013 01:19:liquibase: Executing QUERY database command: SELECT LOCKED FROM databasechangeloglock WHERE ID=1
DEBUG 04.04.2013 01:19:liquibase: Lock Database
DEBUG 04.04.2013 01:19:liquibase: Executing UPDATE database command: UPDATE databasechangeloglock SET LOCKED = TRUE, LOCKEDBY = 'fe80:0:0:0:217:31ff:fe2d:e35b%2 (fe80:0:0:0:217:31ff:fe2d:e35b%2)', LOCKGRANTED = '2013-04-04 01:19:47.677' WHERE ID = 1 AND LOCKED = FALSE
INFO 04.04.2013 01:19:liquibase: Successfully acquired change log lock
DEBUG 04.04.2013 01:19:liquibase: Executing QUERY database command: SELECT MD5SUM FROM databasechangelog WHERE MD5SUM IS NOT NULL
INFO 04.04.2013 01:19:liquibase: Reading from databasechangelog
DEBUG 04.04.2013 01:19:liquibase: Executing QUERY database command: SELECT FILENAME,AUTHOR,ID,MD5SUM,DATEEXECUTED,ORDEREXECUTED,TAG,EXECTYPE FROM databasechangelog ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC
DEBUG 04.04.2013 01:19:liquibase: Release Database Lock
DEBUG 04.04.2013 01:19:liquibase: Executing UPDATE database command: UPDATE databasechangeloglock SET LOCKED = FALSE, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1
INFO 04.04.2013 01:19:liquibase: Successfully released change log lock
Exception in thread "main" org.opennms.core.schema.MigrationException: unable to migrate the database
        at org.opennms.core.schema.Migrator.migrate(Migrator.java:473)
        at org.opennms.install.Installer.install(Installer.java:255)
        at org.opennms.install.Installer.main(Installer.java:949)
Caused by: java.lang.NullPointerException
        at liquibase.database.AbstractDatabase.getRanChangeSetList(AbstractDatabase.java:855)
        at liquibase.database.AbstractDatabase.checkDatabaseChangeLogTable(AbstractDatabase.java:441)
        at liquibase.Liquibase.checkDatabaseChangeLogTable(Liquibase.java:535)
        at liquibase.Liquibase.update(Liquibase.java:108)
        at org.opennms.core.schema.Migrator.migrate(Migrator.java:471)

Any suggestions will be very helpful, and thank you in advance.

Best regards,

Selcuk

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
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
Joel Dodson | 1 Apr 2013 10:05
Picon
Favicon

FreeSWITCH integration?

Hi all,

I'm very new to OpenNMS and SNMP in general.  I've been digging through the docs and wiki but I seem to be stuck.   

We currently have OpenNMS (1.10.8) installed and successfully monitoring several hosts getting basic system information (e.g., disk usage, CPU, memory, network IO).   It's working great and has even alerted us to some high CPU usage. 

We also have FreeSWITCH installed on one of those servers we're already successfully monitoring for system type SNMP variables.  We've built and are running mod_snmp in FreeSWITCH and doing an snmpwalk I can actually get the information back regarding calls and session with to/from numbers...  That implies to me we have FreeSWITCH SNMP configured and running correctly. 

However, we're not seeing any of the FreeSWITCH related data showing up at our OpenNMS system.

We've added the following line near the end of datacollection-config.xml:

    <include-collection dataCollectionGroup="FreeSWITCH"/>

And in the datacollection directory, there's a file name freeswitch.xml with the following contents:

<?xml version="1.0"?>
<datacollection-group name="FreeSWITCH">

    <resourceType name="fsChanType" label="FreeSWITCH Channel Type"
                 resourceLabel="${fsChanTypeName}">
       <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
      <storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
        <parameter key="sibling-column-name" value="fsChanTypeName" />
                <parameter key="replace-all" value="s/\s+//" />
      </storageStrategy>
    </resourceType>

      <!-- Derived from FREESWITCH-MIB (for which smilint prints warnings and errors) -->
      <group name="core" ifType="all">
        <mibObj oid=".1.3.6.1.4.1.27880.1.1.1" instance="0" alias="fsVersion"           type="string" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.1.2" instance="0" alias="fsCoreUuid"                  type="string" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.1" instance="0" alias="fsUptime"            type="Timeticks" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.2" instance="0" alias="fsTotalSessions"             type="Counter32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.3" instance="0" alias="fsActiveSessions"            type="Gauge32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.4" instance="0" alias="fsMaxSessions"               type="Gauge32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.5" instance="0" alias="fsActiveCalls"               type="Gauge32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.6" instance="0" alias="fsSessionsPerSecond"         type="Gauge32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.7" instance="0" alias="fsMaxSessionsPerSecond"      type="Gauge32" />

      </group>

      <systemDef name="FreeSWITCH Core">
        <sysoidMask>.1.3.6.1.4.1.27880.1</sysoidMask>
        <collect>
          <includeGroup>core</includeGroup>
        </collect>
      </systemDef>

</datacollection-group>

The OIDs are from the opennms/contrib/mibparser/dist/parseMib.sh with the FREESWITCH-MIB.  The resourceType I copied from an asterisk file.  That wasn't there initially so I tried adding it but it didn't seem to help. 

I'm pretty sure the snmp-config.xml is correct because we're already getting information from that host.  Also, I see a lot of .jrb files in opennms/rrd/snmp/9 (the node Id of our FreeSWITCH host).  I don't see anything for any of the fs* variables though. 

I've cranked up capsd and collectd logging in log4j.properties and am not seeing any errors when trying to contact that host.  Here's one of the lines the trouble shooting docs say to look for:

2013-04-01 07:07:52,040 INFO  [Main] CollectdPackage: interfaceInPackage: Interface xxx.xxx.xxx.xxx passed filter and specific/range for package example1?: true

With all the changes I've been making I have been restarting opennms with:

sudo service opennms restart

I'm assuming that'll pick up any new configuration changes (it picked up the logging changes I made). 

I hope you'll see I really did try to do my homework before coming to the list with this.  I'd be thrilled if someone out there has successfully consumed FreeSWITCH SNMP information and could give me some pointers. 

thanks,
Joel



------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
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
Ibtissam Hamoussi | 18 Mar 2013 09:34
Picon

error during installing

Hi , i met a problem installing OpenNMS

I did all steps write here: http://www.opennms.org/wiki/Installation:Yum

But i have this errorwhen i write this command  " root # yum -y install openNMS "  on the Installing OpenNMS part :

Loaded plugins: security
Setting up Install Process
No package openNMS available.
Nothing to do

I  downloaded this package at first  "wget http://yum.opennms.org/repofiles/opennms-repo-stable-rhel5.noarch.rpm"
and then i execute this " rpm -Uvh opennms-repo-stable-rhel5.noarch.rpm " and it was ok .
 
This is my linux distribution :
Red Hat Enterprise Linux Server release 5.6 (Tikanga)


Help please

--
Cordialement,

Hamoussi Ibtissam

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
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
Ashok P | 12 Mar 2013 14:37
Picon

Not able to installed openNMS on window XP

Dear Team,

i have downloaded openNMS (standalone-opennms-installer-1.10.8-1) from the download link.
using setup32.exe i am trying to installed the openNMS into my machine but at step 3 (JDK path).
i have select the valid JDK path but still i am facing the same issue.

for more details please find the attached screenshot.

Please help me out to resolve this issue.

==================

i have download the source code and trying to run on local machine using eclipse tomcat server 7.
while bring up the server the below exception thrown.
i have configure "configuration.properties" and only web apps files (remaing files are in lib folder (jar files))
opennms.home=D:/Projects/workspace/openNMS

Please also help me on this issue.


SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [daoContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoContext' defined in URL [jar:file:/D:/AshokWork/Ashok/Projects/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/openNMS/WEB-INF/lib/opennms-dao-1.8.5.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: ${opennms.home}\etc\model-importer.properties (The system cannot find the path specified)
    at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409)
    at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:358)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:193)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoContext' defined in URL [jar:file:/D:/AshokWork/Ashok/Projects/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/openNMS/WEB-INF/lib/opennms-dao-1.8.5.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: ${opennms.home}\etc\model-importer.properties (The system cannot find the path specified)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:993)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:897)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1049)
    at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
    ... 13 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: ${opennms.home}\etc\model-importer.properties (The system cannot find the path specified)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:107)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:277)
    ... 23 more
Caused by: org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: ${opennms.home}\etc\model-importer.properties (The system cannot find the path specified)
    at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:640)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:615)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:405)
    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(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
    ... 25 more
Caused by: java.io.FileNotFoundException: ${opennms.home}\etc\model-importer.properties (The system cannot find the path specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
    at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:124)
    at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181)
    at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)
    at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)
    ... 35 more


Thanks in advance
Ashok Parmar



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
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
tom frassrand | 12 Mar 2013 19:10

Syslog-ng Installing Issue

 

We are wanting to use opennms, amongst other things, as a syslog server for messages. I have installed opennms and it is running but I cannot figure out where the “parser” information goes. I have added the destination to destination protion of the syslog-ng.conf file as wells as the log portion.

 

I am getting an error in the configuration file “unresolved source reference source=’s_all”

 

Any help is really appreciated.

 

Tom

 

 

Integration with syslog-ng

To integrate with syslog-ng, you have two options to add your syslog-ng configuration:

parser="org.opennms.netmgt.syslogd.SyslogNGParser"

destination opennms {udp("127.0.0.1" port(10514));};

log {source(s_all);destination(opennms);};



 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
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
tom frassrand | 12 Mar 2013 19:18

Problems Installing Syslog-NG

We are wanting to use opennms, amongst other things, as a syslog server for messages. I have installed opennms and it is running but I cannot figure out where the “parser” information goes. I have added the destination to destination protion of the syslog-ng.conf file as wells as the log portion.

 

I am getting an error in the configuration file “unresolved source reference source=’s_all”

 

Any help is really appreciated.

 

Tom

 

 

Integration with syslog-ng

To integrate with syslog-ng, you have two options to add your syslog-ng configuration:

parser="org.opennms.netmgt.syslogd.SyslogNGParser"

destination opennms {udp("127.0.0.1" port(10514));};

log {source(s_all);destination(opennms

 

 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
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