Search found 699 matches

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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: 14258

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 <<...
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: 16
Views: 9768

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: 16
Views: 9768

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: 16
Views: 9768

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: 16
Views: 9768

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 ...
by LHammonds
Fri Sep 13, 2019 11:49 am
Forum: Tutorials
Topic: How to Install MariaDB 10.4.x on Ubuntu Server 18.04 LTS
Replies: 16
Views: 9768

Migration

Migrate Database from Old Server You can use the full backup automatically made by the "db-backup.sh" script (/bak/mysql/db-all.sql) if you have that already running or you can create a manual backup. The steps below will document how to do it manually but you could just as easily use your existing...