Search found 660 matches

by LHammonds
Wed Sep 18, 2019 9:31 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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
Wed Sep 18, 2019 9:30 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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
Wed Sep 18, 2019 9:29 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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
Wed Sep 18, 2019 9:29 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

Monitoring MySQL Server

Monitoring MySQL Server The script will be executed on the remote Linux server so we will be making use of NRPE. On the remote 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 plugin to work i...
by LHammonds
Wed Sep 18, 2019 9:28 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

Contacts

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 handled at the c...
by LHammonds
Wed Sep 18, 2019 9:27 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

Samples continued

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.cfg # # Last Mod...
by LHammonds
Wed Sep 18, 2019 9:27 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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. mkdir -p /etc/nagios/servers mkdir -p /etc/nagios/printers ...
by LHammonds
Wed Sep 18, 2019 9:26 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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:25 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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:25 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

Custom Sounds

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 to WAV format an...
by LHammonds
Wed Sep 18, 2019 9:24 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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:22 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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 on Ubuntu Server 18.04
Replies: 15
Views: 39

Build and Install Nagios

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 on Ubuntu Server 18.04
Replies: 15
Views: 39

Nagios Prerequisites

Nagios Prerequisites Install the required programs: 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 /etc...
by LHammonds
Wed Sep 18, 2019 8:49 am
Forum: Tutorials
Topic: How to install Nagios on Ubuntu Server 18.04
Replies: 15
Views: 39

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 on Ubuntu Server 18.04
Replies: 15
Views: 39

How to install Nagios 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 <<...
by LHammonds
Fri Sep 13, 2019 12:15 pm
Forum: Tutorials
Topic: How to Install MariaDB 10.4.x on Ubuntu Server 18.04 LTS
Replies: 15
Views: 403

Graphical User Interfaces

NOTE: I have not tested any of these since I tend to use the command-line Web-based interfaces There are a few web-based tools you can get for a GUI front-end to MariaDB. It is not recommended to install a web server on your database server if it is a dedicated database server....instead, install t...
by LHammonds
Fri Sep 13, 2019 11:54 am
Forum: Tutorials
Topic: How to Install MariaDB 10.4.x on Ubuntu Server 18.04 LTS
Replies: 15
Views: 403

Additional Security Measures

Rename root For increased security, you can rename the root account to something else with the following commands: USE mysql; UPDATE USER SET User='NewSecretRoot' WHERE User='root'; FLUSH PRIVILEGES; Review User Accounts SELECT User,Host,Password FROM mysql.user; Make sure everyone has a password s...
by LHammonds
Fri Sep 13, 2019 11:53 am
Forum: Tutorials
Topic: How to Install MariaDB 10.4.x on Ubuntu Server 18.04 LTS
Replies: 15
Views: 403

Fail2Ban

Fail2Ban If you have Fail2Ban installed and protecting SSH as part of the base install. You can add these few changes to also watch for database login failures. vi /etc/fail2ban/jail.local Add the following to the bottom. If your data path is different, be sure to update "logpath" [DEFAULT] ## 127....
by LHammonds
Fri Sep 13, 2019 11:51 am
Forum: Tutorials
Topic: How to Install MariaDB 10.4.x on Ubuntu Server 18.04 LTS
Replies: 15
Views: 403

Crontab Schedule

Crontab Schedule I would not advise anyone to ever "edit" a live crontab schedule by typing "crontab -e" but rather edit a saved schedule file and then load the schedule file. This will allow you to make backups of the schedule so you can always go back to a known-good schedule or at least back to ...