wiki.ipfire.org

The community-maintained documentation platform of IPFire

User Tools

Site Tools


addons:nagios:start

Nagios Addon

Stop! The Nagios Addon package was discontinued as of Core Update 118

Nagios is used to monitor complex IT infrastructure. It offers a collection of modules for monitoring of networks, hosts and specific services and has a web interface to display and query the data collected.

The name Nagios is a recursive acronym, which refers to the original name of the software: “Nagios Ain't Gonna Insist On Sainthood”.

Configuration

The Nagios-Addon are delivered with a default password, it should absolutely be replaced with your own. The command to change the password over the Console is:

htpasswd -c /etc/nagios/htpasswd.users nagiosadmin

Now we can log in with the following data.

http://IPFireIP:1008/nagios/

FIXME to english screenshoot

The username is nagiosadmin, the password (default=nagios), as above mentioned change the password to prevent security risks.

Adding Hosts

To include external hosts into the Nagios control mechanism, the files in /etc/nagios/objects needs to be edited.

For testing purposes a second (external) IPFire was added, which is connected via a VPN connection to the local IPFire, the external host was registered into the file localhost.cfg .

<box 95% round green|File: /etc/nagios/objects/localhost.cfg>

# Define a host for external machine
define host{
      use                     linux-server      
      host_name               ipfire.KANZLEI       ;Name des externen IPFire
      alias                   HRSTB-Server         
      address                 192.168.1.254        ;IP-Adresse des externen IPFire
      }

</box>

Now, after a

/etc/init.d/nagios reload

the external IPFire is also be seen in Nagios.

Miscellaneous

addons/nagios/start.txt · Last modified: 2018/10/07 03:18 by Jon