Search found 783 matches

by LHammonds
Tue Sep 24, 2019 4:24 pm
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Custom Plugin - Check ESXi Hardware

Custom Plugin - Check ESXi Hardware Reference: Original source I use this custom script to check the health of my ESXi servers. It is run directly from the Nagios server. This script requires the PyWBEM Python library. Here is how to install it: apt-get -y install python-pywbem You then need to add...
by LHammonds
Tue Sep 24, 2019 4:23 pm
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Custom Plugin - Check APT MotD

Custom Plugin - Check APT MotD Reference: Original source This plugin is a bit different from the built-in APT check for Linux servers. This plugin was designed to give the same kind of messages that you get when you login to an Ubuntu console. One thing this script will catch that the built-in APT...
by LHammonds
Tue Sep 24, 2019 4:22 pm
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Custom Plugin - Check HTTPS

Custom Plugin - Check HTTPS On one of my Linux servers, I have a web mail service that I wanted to keep an eye on. However, the check_http did not work because the server only uses SSL (HTTPS) on port 443. I did not see a check_https command so I tried my hand at making one and it works like a cham...
by LHammonds
Tue Sep 24, 2019 4:22 pm
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Monitoring MariaDB/MySQL Server

Monitoring MariaDB/MySQL Server The script will be executed on the remote Linux server so we will be making use of NRPE. On the remote MariaDB/MySQL server, install the Nagios plugins, NRPE server and NRPE plugin as mentioned earlier for remote Linux servers. An extra step to allow the check_mysql ...
by LHammonds
Wed Sep 18, 2019 9:31 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Monitoring Remote Linux Servers

Monitoring Remote Linux Servers Since there are other Linux boxes that need to be monitored, the NRPE plugin and NRPE service will be installed on each Linux box. Setup the remote Linux server to be monitored: Create the Nagios user and group: groupadd --system --gid 9000 nagios adduser --system --...
by LHammonds
Wed Sep 18, 2019 9:30 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Monitoring Remote Windows Servers

Monitoring Remote Windows Servers Monitoring Windows Servers and Workstations will requiring installing a service if you need data better than a simple ping. For this, we will be using NSClient++ . In particular, we will be downloading the Win32 and x64 "zip" files for version 0.5.2.35. The reason ...
by LHammonds
Wed Sep 18, 2019 9:29 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Managing User Accounts

Managing User Accounts It is recommended to replace the nagiosadmin with a different account and here is how you do it. We are going to add 3 administrators with the same level of access as the nagiosadmin. ID / Password: lhammonds / abc123 ID / Password: ddiggler / jigglier69 ID / Password: jdoe /...
by LHammonds
Wed Sep 18, 2019 9:29 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

More Sample Configs

Configuration - Sample Network Switch Config File Here is my basic shell for a switch: NOTE: The MIB codes are specific to the hardware, you probably will need to research the MIB that matches your hardware. ############################################################################### # Switches....
by LHammonds
Wed Sep 18, 2019 9:28 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Sample Configs

Configuration - Sample Ubuntu Server Config File Here is my basic shell for an Ubuntu server: /etc/nagios/servers/srv-php.cfg ############################################################################### # # HOST DEFINITION # #######################################################################...
by LHammonds
Wed Sep 18, 2019 9:27 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Custom Sounds

Configuration - Custom Sounds Nagios allows custom WAV sounds to be played as alerts on the web page but does not come with any (that I could tell). So I went through my audio collection and pulled out a few clips I thought would work good for the various event types. Each audio clip was converted ...
by LHammonds
Wed Sep 18, 2019 9:27 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Templates

Configuration - Templates The file is also fairly straight-forward. You can use what is defined in there or make changes to them or add new templates as I have done. In case you spotted references to them in earlier examples, I will share some of the custom ones here (this is only part of the entir...
by LHammonds
Wed Sep 18, 2019 9:26 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Timeperiods

Configuration - Timeperiods The /etc/nagios/objects/timeperiods.cfg file is fairly straight-forward. You can make adjustments to what is defined as "work hours" and leave it at that or add in some custom settings depending on your situation. #########################################################...
by LHammonds
Wed Sep 18, 2019 9:25 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Contacts

Configuration - Contacts It would be a good idea to define contact groups and associate services to them. Further down, define your contacts and what contact groups they belong to. This will make it easier to maintain, even if you have a small shop or grow to a large shop, maintenance is primarily ...
by LHammonds
Wed Sep 18, 2019 9:25 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Host Groups

Configuration - Host Groups I group all of my objects according to how I like to see them separated. This is done using "hostgroups" when defining a host. I keep all of these hostgroups defined in a single configuration file. The file is referenced in /etc/nagios/nagios.cfg with the following line:...
by LHammonds
Wed Sep 18, 2019 9:24 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Configuration Framework

Configuration Framework The 1st thing I like to do is the creation of the folder structure I plan to use and then copy or rename all example configuration files to unused text files. This ensures the originals are preserved as a reference. sudo mkdir -p /etc/nagios/servers sudo mkdir -p /etc/nagios...
by LHammonds
Wed Sep 18, 2019 9:22 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Plugins

Nagios Plugin Prerequisites Base requirements: sudo apt install -y libmcrypt-dev dc build-essential Nagios Plugin Requirements for check_snmp: perl -MCPAN -e 'install Net::SNMP' Configure as much as possible automatically? yes sudo apt -y install snmp Requirements for check_mysql: (NOTE: For my sit...
by LHammonds
Wed Sep 18, 2019 9:20 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Build and Install Nagios from Source

Build and Install Nagios from Source Download Nagios software (NOTE: You can use newer links once new versions become available): cd /usr/local/src wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.5.tar.gz Build and install Nagios Core: tar -xzvf /usr/local/src/nagios-4.4.5.t...
by LHammonds
Wed Sep 18, 2019 8:54 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Nagios Prerequisites

Nagios Prerequisites Install the required programs: sudo apt -y install autoconf gcc libc6 make apache2 php7.2 libapache2-mod-php7.2 libgd-dev wget unzip Disable default web sites: sudo a2dissite 000-default sudo a2dissite default-ssl sudo systemctl restart apache2 Create users and groups: mkdir -p...
by LHammonds
Wed Sep 18, 2019 8:49 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

Install Ubuntu Server

Install Ubuntu Server The Ubuntu Server Long-Term Support (LTS) is free but we have the option of buy support and that is the main reason this server was selected. The steps for setting up the base server are covered in this article: How to install and configure Ubuntu Server It is assumed that the...
by LHammonds
Wed Sep 18, 2019 8:45 am
Forum: Tutorials
Topic: How to install Nagios Core 4.4.5 on Ubuntu Server 18.04
Replies: 22
Views: 27248

How to install Nagios Core 4.4.5 on Ubuntu Server 18.04

------------- WORK-IN-PROGRESS ------------- Greetings and salutations, I hope this thread will be helpful to those who follow in my foot steps as well as getting any advice based on what I have done / documented. To discuss this thread, please participate here: >> INSERT UBUNTU FORUMS LINK HERE <<...