Page 1 of 1

How to monitor remote devices log specific word?

Posted: Tue May 28, 2019 8:55 pm
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

Re: How to monitor remote devices log specific word?

Posted: Wed May 29, 2019 1:27 pm
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.

Re: How to monitor remote devices log specific word?

Posted: Fri May 31, 2019 11:42 am
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?

Re: How to monitor remote devices log specific word?

Posted: Fri May 31, 2019 1:28 pm
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.