Hi all,

I am trying to configure check_logfiles for monitoring access.log file  in
server, But its shows CRITICAL the status information is   connection
refused in icinga console ,The below steps are I used for
configuration.Please see any one and suggest me.


I had defined the command in command cfg file

define command{
check_name  check_logfiles
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c
check_logfiles

I had  defined the service in localhost cfg file

use                     local-service
service_description    apachelogfiles
check_command           check_nrpe!check_logfiles
host_name               Evericinga

I had edited the nrpe.cfg file with below command

command[check_logfiles]=/usr/lib/nagios/plugins/check_logfiles  --config
/etc/nagios-plugins/config/check_logfiles.cfg

after that i created a check_logfiles.cfg file in a given  location with
below content.


$seekfilesdir = ' /var/tmp/';
$protocolsdir = ' /var/tmp/';
$options = "report=long,maxlength=4096";
@searches = (
{
tag => 'ssh',
logfile => '/var/log/apache2/access.log',
criticalpatterns => '122.183.87.238',
options => 'noprotocol,perfdata,warningthreshold=1,criticalthreshold=5',
},

);


And then service icinga restart ok But console shows connection refused.

If any one knows please replay us.
-- 
M.KANAKAIAH
9959491677
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to