How to monitor remote devices log specific word?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

How to monitor remote devices log specific word?

Post by xpertech »

How to monitor remote device log specific word?

where the log locate on--
1. the remote host's log
2. the Amazon Web Services(AWS) log
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to monitor remote devices log specific word?

Post by benjaminsmith »

Hi @xpertech,

There are a a few options available for monitoring logs.

1. You can use the check_log plugin that is part of the Nagios Plugins Project. This plugin scans a log file on the server and reports any new matches to the query provided.

Example:

Code: Select all

./check_log -F /var/log/messages -O /var/log/messages_old -q 'Error'
See: Log Checks on the Nagios Knowledgebase

2. There are quite few plugins on the Nagios Exchange for monitoring logs such as check_logfiles with additional features.

https://exchange.nagios.org/directory/Plugins/Log-Files

Lastly, we also have another product, Nagios Log Server, that is specifically designed for log management and analysis.

Let me know if you have any specific questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor remote devices log specific word?

Post by xpertech »

Does the NagiosXI default plugin Check_Log need to install both NRPE agent and Check_Log plugin on the remote monitored server? is there a steps document of install check_log?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to monitor remote devices log specific word?

Post by benjaminsmith »

Hello @xpertech,

The plugin check_log is part of the official Nagios Plugins, these are typically installed along with NRPE on the remote host.

To install NRPE along with the Nagios Plugins, the easiet method is to use the install script documented here:

NRPE - How to install NRPE

For instructions on installing just the Nagios Plugins, please see:

Nagios Plugins - Installing Nagios Plugins From Source

Let me know if you have any other questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked