How to Configure Manjaro Logs for Nagios Log Server

Picture of Steven Phan
Steven Phan
Manjaro Wallpaper 3_5_11zon

Nagios Log Server can provide centralized log management and real-time monitoring for Manjaro users. By aggregating logs from various sources, it enables efficient analysis and troubleshooting, helping users quickly identify and resolve issues. This centralized approach enhances system reliability and performance, making it easier to maintain a healthy IT environment. This guide can show instructions on installing and configuring Nagios Log Server on your Manjaro system.

Prerequisites

Before progressing with your setup, this is what you need for the following:

  • Manjaro System
  • Administrative Privileges
  • Nagios Log Server Instance
  • Internet connection to download packages

Step 1: Install rsyslog

Update your Manjaro system and Install rsyslog is on your Linux Mint system.

sudo pacman -Syu
sudo pacman -S rsyslog

He is an alternate command to install rsyslog if you encounter an issue installing.

sudo pacman -S syslog-ng

Install curl if you have not installed it on your device.

sudo pacman -Syu curl

Step 2: Configure rsyslog

Edit the rsyslog configuration file to forward logs to the Nagios Log Server. Open the configuration file with a text editor.

sudo nano /etc/rsyslog.conf

Add the following lines at the end of the file, replacing your-nagios-log-server-address with the actual IP address or hostname of your Nagios Log Server.

*.* @@<Nagios_Log_Server_IP>:5544

Step 3: Restart rsyslog

Restart the rsyslog service to apply the changes.

sudo systemctl restart rsyslog

Step 4: Add a New Log Source in Nagios Log Server

Log in to your Nagios Log Server webpage.

Nagios LS Login Manjaro
Nagios log Server Login

On the homepage, click the + Linux button or navigate to + Add Log Source and select Linux.

Homepage LS Manjaro
Log Server Homepage

Step 5: Download and Run the Setup Script

On the Linux Source Setup page, you’ll see a code block with a pre-configured command.

Linux Configure LS Manjaro 1
Linux Configuration Setup

Copy the commands from the box and execute the command to download and run the setup script.

curl -sS -O http://your-nagios-log-server-address/nagioslogserver/scripts/setup-linux.sh
sudo bash setup-linux.sh -s your-nagios-log-server-address -p 5544

Change your-nagios-log-server-address with the actual IP address or hostname of your Nagios Log Server.

Step 6: Verify the Script Execution

The script will configure rsyslog and establish a connection with the Nagios Log Server. You should see a message indicating that the rsyslog service has restarted successfully and that logs are being forwarded to the Nagios Log Server.

Verified Logs LS Manjaro
Verified Logs

Step 7: Confirm Log Reception

Navigate to the Dashboards section using the four squares icon in the left panel, and perform a query with the IP address of your Manjaro system to verify that logs are being received.

Dashboard LS Manjaro
Dashboard

Conclusion

By following this instruction, you will have successfully configured Manjaro for Nagios Log Server. You can now track and analyze logs from your Manjaro system on your Nagios Log Server, enabling efficient log management and real-time monitoring. If you have additional questions or other support-related questions, please visit us at our Nagios Support Forum, Nagios Knowledge Base, or Nagios Library.

Share: