Bobcares

Forward Nagios Log Server to another Destination – How we do it

by | Dec 12, 2020

We can easily forward the Nagios log server to another destination by creating a new output in NLS.

Here at Bobcares, we have seen several such Nagios-related queries as part of our Server Management Services for web hosts and online service providers.

Today we’ll take a look at how to send Nagios core logs to the Nagios log server.

 

Know more about Nagios Log Server

Nagios Log Server is a powerful enterprise-class log monitoring and management application that allows organizations to view, sort, and configure logs.

Nagios Log Server systems are based on a clustering model. Each server in the cluster is called an Instance.

Usually, the log file is located at /usr/local/nagios/var/nagios.log or /var/log/nagios3/nagios.

By default, Nagios logs its events for the host and services in the /var/log/nagios/nagios path.

 

How we forward Nagios log server to another destination

Now let’s take a look at how our Support Engineers forward the Nagios log server to a different server. We can easily do it by creating a new output in NLS. Here are the steps that we follow.

1. First, in NLS, we navigate to Configure >> Global Config.
2. Next, we click on the Show Outputs button.
3. Here we select Add Output >> Custom.
forward nagios log server to another destination
4. Then we enter a name for the output.
5. After that, we enter a new output config as below:
udp {
host => ‘<ip of destination server>’
port => ‘514’
}
6. Finally, we click on the Save & Apply button.

This will take all of the information (as it is after it passes through the inputs/filters) and export it to <ip of destination server>:514 via UDP.

[Need any further assistance with Nagios queries? – We are here to help you]

 

Conclusion

In short, Nagios log server forwarding to another destination can be done by creating a new output in NLS. Today, we saw how the steps provided by our Support Engineers to forward Nagios log to another server.

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Speed issues driving customers away?
We’ve got your back!