Nagios Log Server To Monitor A New Log Source

Are you trying to configure Nagios log server to monitor a new log source?

This guide is for you.

Nagios Log Server is a premier solution that's perfectly designed for security and network auditing.

Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to fix Nagios related errors.

In this context, we shall look into the steps to set up Nagios Log Server To Monitor A New Log Source.

How to add a Linux log source in relation to Nagios log server?

To set up Nagios log server to monitor a new log source we will be using the Linux log source here though there are multiple other sources

Steps to follow are:

1. First log in to Nagios Log Server and then click on the + Linux button. Alternatively, we can click the + Add Log Source button on the navigation bar and then click on the Linux button.

2. After taking Linux Source Setup, we can see a code block with instructions on how to download and run the script.

3. This script will automatically configure rsyslog to send syslogs to Nagios Log Server. Also, a code block will populate with the address and port of the Nagios Log Server.

4. Copy the code to the clipboard and open the command prompt on the Linux machine that we want to configure to send logs to the Nagios Log server as the root user.

5. Now paste the code that has been copied into the clipboard into the terminal session, this will download the script and run it.

A successful run of the script is given below:

[root@centos16 ~]# curl -sS -O
[root@centos16 ~]# sudo bash -s -p 5544
Detected rsyslog 5.8.10
Detected rsyslog work directory /var/lib/rsyslog
Destination Log Server:
Creating /etc/rsyslog.d/99-nagioslogserver.conf...
rsyslog configuration check passed.
Restarting rsyslog service with 'service'...
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
Rsyslog is running with the new configuration.
Visit your Nagios Log Server dashboard to verify that logs are being received.

6. Once we get similar output from the setup script, go to the Dashboard page to verify that we are receiving logs (click Dashboards on the top navigation bar).

7. Then perform a query using the IP address of the logs from the server that we ran the script on.

8. To force a log entry to be sent, execute the following command on Linux machine:

logger This is a test log entry

The actual location of the script "" on Nagios Log Server instance is:


We can see the test log entry, this confirms that Nagios Log Server is receiving logs from the Linux machine.

[Need urgent assistance in working with Nagios log server? We are available to help you!]


This article will guide you through the steps to need to take to configure Nagios log server to monitor a new log source.

For Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on

Also for Tech related tips, Visit or General Technical tips on