Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_logs2

Rating
0 votes
Favoured:
0
Hits
144239
Files:
FileDescription
check_logs.plcheck_logs2.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_logs.pl improvement. Added dynamic array ref to support global configuration file
Added dynamic array ref on script to read array from
configuration file base on hostname. Wanted to add this existing
project \\\\\\\"check_logs.pl\\\\\\\", but I see no place to upload the file.

eg config file:

$seek_file_template=\\\\\\\'/$log_file.seek\\\\\\\'
@server1 = ( {\\\\\\\'file_name\\\\\\\' => \\\\\\\'/var/log/messages\\\\\\\', \\\\\\\'reg_exp\\\\\\\' => \\\\\\\'error\\\\\\\'} );
@server2 = ( { \\\\\\\'file_name\\\\\\\' => \\\\\\\'/var/log/http/access.log\\\\\\\', \\\\\\\'reg_exp\\\\\\\' => \\\\\\\'404\\\\\\\'} );

The idea is that you want a config file for all host you want to monitor log files with and Not all hosts have the same path to log files.