install nagios in Opensuse 11.x

Nagios is a popular open source computer system and network monitoring software application. It watches hosts and services, alerting users when things go wrong and again when they get better.
Nagios was originally designed to run under Linux, but also runs well on other Unix variants. It is free software, licensed under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Before to start, if you want to install Nagios in fedora ,RHEL,centos and Ubuntu please read our previous tutorials.

Nagios Install on openSUSE 11.3

OpenSUSE 11.3 has Nagios 3.2.1 in the default repositories.

Nagios Required Components

1. Linux operating system and Opensuse 11.1
2. C compiler – installed in Opensuse by default
3. Apache – we will install this component

Opensuse 11.1 Components

1. nagios – The Nagios install package
2. nagios-www – The Web server for Nagios
3. nagios-plugins – The main plug-in package

Install Nagios on Opensuse 11.3
I will show three methods on how to install Nagios on Opensuse 11.3.
Method 1: Yast Gui Install
1. Type the command listed below on a command line:
yast2
2. Go to the software manager

3. Search for Nagios
4. Install the following packages:

* nagios
* nagios-www
* nagios-plugins

5. Type the command listed below on a command in order to set password:
htpasswd2 -c /etc/nagios/htpasswd.users nagiosadmin

6. Restart Apache by typing the command listed below on a command line:
service apache2 restart

7. Restart Nagios by typing the command listed below on a command line:
service nagios restart

Method 2: Yast Command Line Install

1.Type the command listed below on a command line in order to install nagios:
yast –install nagios; yast –install nagios-www; yast –install nagios-plugins

2.Type the command below on a command line to set the password for nagiosadmin user:
htpasswd2 -c /etc/nagios/htpasswd.users nagiosadmin

3. Restart Apache by typing the command listed below on a command line:
service apache2 restart

4. Restart Nagios by typing the command listed below on a command line:
service nagios restart

Methode3 3: Zypper Command Line Install

1. Type on a command listed below on a command line to install nagios with zypper:
zypper install nagios; zypper install nagios-www; zypperinstall nagios-plugins

2. Type the command below on a command line to set the password for nagiosadmin user:
htpasswd2 -c /etc/nagios/htpasswd.users nagiosadmin

3. Restart Apache by typing the command listed below on a command line:
service apache2 restart

4. Restart Nagios by typing the command listed below on a command line:
service nagios restart
Nagios with openSUSE 11.3

Suse has changed some directories to make Nagios fit with the distro.

Nagios directory is /etc/nagios

The Nagios object directory is /etc/nagios/objects

The Nagios plugin directory /usr/lib/nagios/plugins

The Nagios check command works with the command  listed below:
nagios -v /etc/nagios/nagios.cfg

after  the  install  open  your  browser  http://hostname/nagios   or   http://ip/nagios   and  insert  the  login and  password  and  Enjoy  🙂