Adagios is an open-source web-based Nagios configuration interface that makes it easier to manage your Nagios configuration files. In this tutorial, we will guide you through the process of installing Adagios on the latest version of Fedora CoreOS.
Before we proceed with the installation, ensure that you have the following:
First, update the system's package list by running the following command.
sudo dnf update
Next, install the required dependencies for Adagios:
sudo dnf install epel-release
sudo dnf install python3-pip httpd mod_wsgi nagios nagios-plugins-all nagios-plugins-nrpe nagios-plugins-perl nagios-plugins-ssh nagios-plugins-mysql
Once the dependencies are installed, it's time to install Adagios. We will install it using pip package manager.
sudo pip3 install adagios
We need to configure Apache to serve Adagios web interface. Create a new Apache configuration file for Adagios.
sudo vi /etc/httpd/conf.d/adagios.conf
Add the following configuration:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/adagios
<Directory /var/www/html/adagios>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/adagios_error.log
CustomLog ${APACHE_LOG_DIR}/adagios_access.log combined
WSGIDaemonProcess adagios user=apache group=apache processes=2 threads=5 python-path=/usr/local/lib/python3.6/site-packages
WSGIScriptAlias / /var/www/html/adagios/adagios.wsgi
<Directory /var/www/html/adagios>
WSGIProcessGroup adagios
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
Save and exit the file by pressing Esc, followed by :wq.
Next, restart Apache for the configuration changes to take effect.
sudo systemctl restart httpd
By default, Adagios uses Nagios's htpasswd authentication mechanism. We will first create a new user and then use it to log in to Adagios.
Run the following command to create a new user named adagiosadmin:
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users adagiosadmin
Enter and confirm the password for the new user when prompted.
We have successfully installed and configured Apache and created a new user account. Now, it's time to configure Adagios.
Create a new Adagios configuration file by copying the sample configuration file.
sudo cp /usr/local/adagios/etc/adagios.conf-sample /usr/local/adagios/etc/adagios.conf
Edit the configuration file and update the following settings.
vim /usr/local/adagios/etc/adagios.conf
Update Nagios Bin Path
Nagios Bin Path: /usr/sbin/nagios
Set Authentication Settings
Authentication Settings:
users_file /usr/local/nagios/etc/htpasswd.users
group_file /usr/local/nagios/etc/group.cfg
contact_groups_file /usr/local/nagios/etc/contactgroups.cfg
enable_auto_auth false
Set Nagios Configuration Path
Nagios Configuration Path: /usr/local/nagios/etc/nagios.cfg
Save and exit the file using :wq.
To generate the Adagios configuration files, run the following command.
sudo adagios generate
You can now log in to Adagios using your web browser by visiting the following URL.
http://your-server-ip/adagios
Enter the username and password for the Adagios user account to log in.
In this tutorial, you learned how to install Adagios on the latest version of Fedora CoreOS. With a few simple steps, you now have a web-based interface that makes it easy to manage your Nagios configuration files.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!