OpenNMS on Debian Woody HOWTO v2.0 - 2004-03-20 Ian B. MacDonald (IMac) opennms.netstatz.com This document has been created to help individuals and institutions deploy OpenNMS on Debian Woody, i386 based, servers. It was originally written as an administrative guide to clarify use of Debian specific commands and packages. Now, it has been extended to include the installation process as well as references to existing configuration and troubleshooting information. For information on the configuration files for discovery, polling and notification please read the HOWTOs posted at OpenNMS.org. This document attempts to overlap as little as possible with the existing OpenNMS HOWTOs and there are many links to the online FAQ and mailing-list archives. It is recommended that the HTML version is viewed in order that links to the online knowledge base can be used directly . This document can be used to help take a basic IDE/SCSI based system from cold iron to an operational OpenNMS solution with very little Debian-specific knowledge. About this Document Revision History

0.1 - 2002-11-01 - Ian B. MacDonald - Initial Staging and Debian Operations Manual based on RPMs aliened to .debs

1.0 - 2003-01-28 - iMac - Initial Publication, ONMS v1.02-2

1.1 - 2003-04-03 - iMac- Updates, including DB purge, ONMS v1.11-1

1.2 - 2003-06-24 - iMac - Conversion to LinuxDOC SGML, FAQ and email, updates from Debian ONMS Downgrade HOWTO, ONMS v1.11-5woody

1.3 - 2003-06-25 - iMac - First public release on opennms.netstatz.com with minor layout changes and some additions

1.4 - 2003-07-14 - iMac - Used It on a box from cold iron. Some refinements, typo-repair and purging of quotes. Increased .

1.5 - 2003-10-15 - iMac - Second pubic release, new sources, new packages, new links to devices, troubleshooting mailing-list archives (*1.6 Now broken). Added vim, hdparm, snmp, GetOPT packages...

2.0 Draft a 2004-01-28 - iMac - Full 1.1.2 support, New mailing list includes, all new links (to match opennms.org changes), upgrade from 1.1.1-5 process, new supplemental utilities

2.0 Draft b 2004-03-11 - iMac - More 1.1.2 test implementations + Debian Woody R2

2.0 2004-03-20 - iMac - Finally a readable document that is useful and tested (grin)

Acknowledgements and Thanks

I would like to acknowledge the following individuals and groups for their valuable contributions that resulted in the creation of this document:

Tarus Balog for his commitment to OpenNMS from the ground up and positive guidance to anyone interested in using this great tool. The OpenNMS team, Sortova Consulting Group and Oculan for their efforts. This includes Andreas Kerl, Ben Reed, Bill Ayres, Brian Weaver, David Miller, Derek Gillden, Eric Evans, Jacinta Remedios, Jason Johns, Jim Doble, Jose Vicente, Nunez Zuleta, Larin Hennessy, Larry Karnowski, Marshall Christy, Michael Huot, Mike Davidson, Mike Johnson, Nick Wesselman, Oli M., Robert Berkowitz, Seth Leger, Shane O'Donnell, Sowmya Nataraj, Volker Seebode, Wrolf Courtney. The many contributions to the OpenNMS mailing list from all across the globe. Tony Simone and Eric Evans for Debianizing this great tool to the FHS standard. Netstatz clients that use and promote OpenNMS with enthusiasm. Dan Peachey for great feedback and notes on Debian. Steve Moyer, Justin Hammond, Micheal baker and others who submitted code snippets via the mailing list. Blast Internet, and their continued support of Tarus and the OpenNMS solution. All the people I missed, particularly while distracted with other projects in the nine months prior to v2.0

The acknowledgement section is both difficult and important. Previous releases of this document left out many of the core OpenNMS contributors by name, even though I was communicating with them via the discuss mailing list. My apologies to the gang. Hopefully this release is a little more complete.

Copyright Information

This document is Copyright 2003 by Ian B. MacDonald. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at .

Copyright of documentation seems to be a standard. The goal of this section is to promote dissemination of this knowledge through as many channels as possible and also to be notified of any plans to redistribute the HOWTO so that I can keep people apprised of new versions.

If someones toes are being stepped on, let me know. Basically if someone is part of the OpenNMS.org team, I am going to tell them that they can do as they wish with this doc. Everybody else, let me know.

OpenNMS is a trademark of Sortova Consulting Group, Inc. OpenNMS is a registered trademark of Blast Internet Services Inc. OpenNMS is also referred to as ONMS in this document.

Netstatz is a trademark of Netstatz. To find out more visit . Or track down my personal homepage. From the Release Notes, the following copyrights are relevant to OpenNMS code and referenced documentation:

Copyright 2002-2004 Blast Internet Services, Inc. All rights reserved.

Copyright 2003 Tavve Software Company, Inc. All rights reserved.

Copyright 2003 Networked Knowledge Systems, Inc. All rights reserved.

Copyright 2002 Scott McCrory

Copyright 1999-2001 Oculan Corp. All rights reserved.

Copyright 1996-2001 PostgreSQL, Inc.

Copyright 1994 Regents of California, Inc.

Copyright 1994-2001 Sun Microsystems, Inc

Copyright 1994-2001 IBM Corporation

Copyright 2001 Microsoft Corporation

Copyright 2001 Netscape

Copyright 2001 Red Hat, Inc.

Copyright 1999-2001 ExoLab Group

Copyright 1999-2001 Apache Software Foundation

Copyright 1998-2001 The Mozilla Organization

How this document was created

This document was created using Lyx 1.3.2 and the LinuxDOC article (SGML) template. Every once in a while I clicked View->HTML and View->PDF and the rest was history. My desktop system at the time was a Sun Blade 100* running the Debian Sid GNU/Linux (Sparc) distribution. Anyone who would like to create documents easily, and uses Debian, should have a look at the following packages. (Or just apt-get install everything like I did.)

apt-get install docbook docbook-doc docbook-defguide docbook-dsssl docbook-dsssl-doc docbook-utils docbook-xml docbook-xsl jade jadetex openjade ldp-docbook-dsssl ldp-docbook-xsl linuxdoc-tools linuxdoc-tools-text linuxdoc-tools-info linuxdoc-tools-latex sgml-data sgml-base sgmltools-lite sgmlspl sgmls-doc latex2html latex2rtf gv html2text gnuhtml2latex imagemagick

apt-get install lyx

The only trick is to install lyx last, as debconf will help it run a ./configure to build the ˜/.lyx directory. If ˜/.lyx already exists then lyx will not integrate with new SGML tools (i.e. will not automagically reconfigure). If ./lyx does not exist on startup, it is automatically recreated. Thus one can always delete ˜/.lyx to reconfigure lyx for use with new document template and publishing packages.

*The publishing computer was running Debian Sid(unstable) on a VIA/AMD i386 architecture box for >v1.4. It looked and worked exactly the same on big-endian and little-endian architecture. Props to the package maintainers that make Debian Sid fun and powerful on almost any file system architecture. As of v2.0, we now use Lyx 1.3.4 and have only been apt-get upgradeing from the above package set. Debian PowerPC (Mac) users will probably find the same package set produces similar results.

Feedback and comments

Please send any feedback to Ian B. MacDonald . I'm surprised someone didn't rant about the silly typos in some commands and URLs in early versions of this doc. Negative feedback is often the positive feedback, so hit me hard. I would like to enhance the readability and mood/tone of my documents and work towards a style that is consistent with the types of documents people enjoy and benefit from.

Why Debian Linux and this Document template?

Why use ? One of the great things about Debian is superior package management. Debian stable is one of the most robust, secure and stable Linux distributions. Netstatz promotes and supports Debian and ONMS with enthusiasm, as they are best of breed tools in a changing open source world. In our experience deploying Linux solutions at Netstatz, Debian has proven to be the easiest distribution to maintain and configure. Nothing is forever, and hopefully other distributions will begin to adapt the security, stability and ease of management that Debian has maintained for some time. There are now over 8710 packages in the Debian stable distribution.

Why use this Lyx/SGML format? LinuxDoc SGML is the closest to DocBook XML that requires nothing more than "apt-get install xxx" to create and maintain with Debian. When the Lyx template for DocBook XML is working via packages (or someone shows us what we are missing) we will use that. DocBook XML is the standard according to many authors of document processing HOWTOs at the . LinuxDoc SGML meets the current requirements for submissions to the LDP and is the basis for many current HOWTOs.

Using Debian Woody vs. Debian Sid or Debian Sarge