On 09.09.2013 10:16, Kanakaiah wrote: > 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
like the host's address (which is uses in your check_nrpe command_line) refuses to accept the incoming request. try to manually test the plugin - details on the icinga wiki. > > 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. -- DI (FH) Michael Friedrich mail: michael.friedr...@gmail.com twitter: https://twitter.com/dnsmichi jabber: dnsmi...@jabber.ccc.de irc: irc.freenode.net/icinga dnsmichi icinga open source monitoring position: lead core developer url: https://www.icinga.org ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and globalize service processes across IT 3. Implement zero-touch automation to replace manual, redundant tasks http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users