Nagios

Quickstart Notes - openSUSE


Up To: Contents
See Also: Quickstart Installation Guide

Introduction

If you're installing Nagios on openSUSE, there are a few things that you'll need to do differently than described in the quickstart installation guide. This document is intended to act as a supplement to the quickstart guide and only contains the portions of the guide that differ for openSUSE. That means you'll have to use this document in conjunction with the quickstart.

These instructions were written based on an openSUSE 10.2 installation.

The installation notes for openSUSE differ from the quickstart installation guide because of the following:

Commands and file names that differ from the quickstart installation guide are highlighted in red. Only sections of the quickstart that differ for openSUSE are included below.

Required Packages

Make sure you've installed the following packages on your openSUSE installation before continuing. You can use yast to install packages under openSUSE.

1) Create Account Information

Become the root user.

su -l

Create a new nagios user account and give it a password.

/usr/sbin/useradd nagios
passwd nagios

Create a new nagios group. Add the nagios user to the group.

/usr/sbin/groupadd nagios
/usr/sbin/usermod -G nagios nagios

Create a new nagcmd group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group.

/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -G nagcmd nagios
/usr/sbin/usermod -G nagcmd wwwrun

5) Configure the Web Interface

Copy the sample web config file to the Apache conf.d directory.

cp sample-config/httpd.conf /etc/apache2/conf.d/nagios.conf

Create a nagiosadmin account for logging into the Nagios web interface. Remember the password you assign to this account - you'll need it later.

htpasswd2 -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

Restart Apache to make the new settings take effect.

service apache2 restart

9) Modify SELinux Settings

openSUSE doesn't ship with SELinux (Security Enhanced Linux), so you don't need to modify enforcement settings as described in the quickstart guide.

10) Other Modifications

Make sure your machine's firewall rules are configured to allow access to the web server if you want to access the Nagios interface remotely.

You can do this by:

Configuring email notifications is out of the scope of this documentation. Refer to your system documentation, search the web, or look to the NagiosCommunity.org wiki for specific instructions on configuring your openSUSE system to send email messages to external addresses.