Hi Team 

 we are getting following  error icinga console while configure 
check_logfiles..UNKNOWN - (1 unknown) - could not find logfile 
/var/log/apache2/access.log 


define command{
     command_name  check_logfiles
command_line /usr/lib/nagios/plugins/check_logfiles --tag=ssh 
--logfile=/var/log/apache2/access.log  --criticalpattern="107.21.36.170" 
-noprotocol

please have look on this issue ...


________________________________
 From: Khaja Aziz <khaja_aziz_ud...@yahoo.com>
To: "icinga-users@lists.sourceforge.net" <icinga-users@lists.sourceforge.net> 
Sent: Thursday, September 5, 2013 12:54 AM
Subject: [icinga-users] cannot write status file        
/var/tmp/check_logfiles/check_logfiles._var_log_apache2_access.log.ssh!
 


HI Team 


 we are try to configure on icinga server check_logfiles we are getting one 
error ...please advise me on issue any solution to solve this error..


CRITICAL - (1 errors, 1 unknown in 
check_logfiles.protocol-2013-09-04-19-15-27) - cannot write status file 
/var/tmp/check_logfiles/check_logfiles._var_log_apache2_access.log.ssh! 
check your filesystem (permissions/usage/integrity) and disk devices 



step1: Define the service on localhost.cfg file .


define services{
       use                    local-service
      host_name              Evericinga
     service_description   apachelogfiles
     check_command         check_logfiles!/var/log/ apache2/error.log!warning! 
error!

}  

Here i have a doubt on last line is it right to mention total path of apache 
logfile(  /var/log/apache2/error.log) or we use only /var/log/apache2 
,please have a look once here.

step2:write command on commands.cfg file


define command{
     command_name  check_logfiles
     command_line $USER$/check_logfiles --logfile=$ARG1$ 
--warningpattern='$ARG2$' --criticalpattern='$ARG3$'
}
Please have a look and update us.

------------------------------------------------------------------------------
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=58040911&iu=/4140/ostg.clktrk
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users
------------------------------------------------------------------------------
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