OpenNMS

17 Mar

OpenNMS gathers data on your network.

OpenNMS-webapp is a separate program that allows you to view the data via a Tomcat server.

You need Postgres for OpenNMS and you need to allow TCPIP connections in /var/lib/pgsql/data/postgres.conf and /var/lib/pgsql/data/pg_hba.conf.

You might need to edit /etc/tomcat4/server.xml and change the server port, default is 8080.

You will need to edit /opt/OpenNMS/etc/discovery-configuration.xml and edit the range of the network that is to be scanned

You will NEED an openNMS entry in /etc/tomcat4/server.xml – this should be done by the RPM, but if you have messed up the RPM install order it can be problematic.

++++If you get the following error:
>-bash-2.05b$ sudo /etc/init.d/opennms start
>Starting OpenNMS: ERROR: Either your JDK is too old, or I was unable to find
>echo lib/tools.jar in your JAVA_HOME directory. Please make
>sure you have a Java2-compliant compiler and JVM. JDK
>versions earlier than 1.3 may work with OpenNMS on some
>platforms, but are not supported.
> [FAILED]

You just need to do an: export JAVA_HOME=”/usr/java/j2sdk1.4.1_07/”

++++If you get the following problem when installing:
>Configures PostgreSQL tables, users, and other miscellaneous settings.
>DBI connect(‘dbname=template1′,’postgres’,…) failed: FATAL: IDENT >authentication
> failed for user “postgres” at /opt/OpenNMS/bin/install.pl line 250
>*** Unable to connect to the database!! ***
>Be sure PostgreSQL is started and running correctly
>before running this install script!
>FATAL: IDENT authentication failed for user “postgres”

You need to allow TCPIP connections (see above).

Configuration:
You need to edit /opt/OpenNMS/etc/discovery-configuration.xml to specify the range of your hosts, e.g.:

10.20.96.1
10.20.111.254

You also need to edit /opt/OpenNMS/etc/pollers-configurtation.xml to specify the range of your hosts, e.g.:

GOTCHAS:
I installed OpenNMS 1.0.2 from the lynx install script for RedHat 9 – you would think this would work, but in /opt/OpenNMS/logs/collectd.log i had these errors:
>”/opt/OpenNMS/lib/libjrrd.so.1.0.2:
> /opt/OpenNMS/lib/libjrrd.so.1.0.2: undefined symbol: rrd_test_error”

Turns out that the libjrrd.so they ship DOES NOT WORK on Red Hat 9 – i had to download OpenNMS 1.1.2 (unstable) and manually extract the libjrrd.so file and replace them..

Too many log files? too big? change /opt/OpenNMS/etc/log4j.properties from DEBUG to INFO or NOTICE

If config files appear all on one line it is because you have edited them via the web-gui which can’t do proper output. To fix it run: /opt/OpenNMS/bin/xml.reader.pl -w /opt/OpenNMS/etc/capsd-configuration.xml

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: