|
Map Your Network
Continued from page: 2
Wednesday, April 07, 2004
OPENNMS:TO MAP AND MONITOR
In the Map your Network story we have talked about using software meant specifically for mapping networks. But, software such as OpenNMS, are more broad based and can be deployed for other aspects of network management. OpenNMS does mapping and monitoring, but does not have the alerting functionality. Its front-end Web interface can be accessed through
Tomcat from anywhere in the network. It is an open-source network-management solution that works on
SNMP.
To install, take a PCQLinux 2004 full install and first check that PostgreSQL, JDK 1.4 and Tomcat 4 are installed. If you need assistance in installing them, check our September 2002 issue. The latest OpenNMS can be downloaded from http://public. planetmirror.com/pub/opennms/releases/latest/linux-i386-redhat-8/RPM. You need the following (or newer) files in the /home folder of the Linux machine you are installing Open NMS on.
rrdtool-1.0.35-0.onms.1.i386.rpm
sharutils-4.2.1-7.i386.rpm
metamail-2.7-25.i386.rpm
opennms-1.1.1-1.i386.rpm
opennms-webapp-1.1.1-1.i386.rpm
Now, open a terminal window.
#cd /home
#rpm –ivh rrdtool-1.0.35-0.onms.1.i386.rpm
#rpm –ivh sharutils-4.2.1-7.i386.rpm
#rpm –ivh metamail-2.7-25.i386.rpm
Check whether PostgreSQL Server is running by issuing:
#/etc/init.d/postgresql status
If the response is “Postmaster is stopped”, start PostgreSQL server
#/etc/init.d/postgresql start
Now start Tomcat server.
#/etc/init.d/tomcat start
You need to give rights to the PostgreSQL database to create a database. For this open the ‘/var/lib/pgsql/data/pg_hba.conf’ file and remove the ‘#’ symbols before the following lines.
local all trust
host all 127.0.0.1 255.255.255.255 trust
Now install OpeNMS by issuing:
#rpm –ivh opennms-1.1.1-1.i386.rpm
#rpm –ivh opennms-webapp-1.1.1-1.i386.rpm
This will automatically create the database in PostgreSQL database.
To run OpenNMS, you have to create the environment for it. To do this, open the file /var/tomcat4/conf/ server.xml and add the following lines below ‘Tomcat Examples Context’
reloadable=”true” crossContext=”true”>
homeDir=”/opt/OpenNMS/” />
Now restart Tomcat.
#/etc/init.d/tomcat4 restart
Now open the /opt/OpenNMS/etc /discovery-configuration.xml file and add the network subnet range that you want OpenNMS to monitor. For example,
172.16.1.1
172.16.1.254
Then go the /opt/OpenNMS/bin directory from a terminal and issue
#sh opennms.sh start
To access OpenNMS interface, open any browser on the same machine and point it to 127.0.0.1:8080/ opennms (or through the IP address of the machine , from another client). It will prompt you for authentication. Give the username and password of OpenNMS (admin/admin). [See previous articles in PCQuest (www.pcquest.com) on how to configure and use
OpenNMS.] Page(s) 1 2 3
|