<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Iam usig a plugin to check my syslogs.all 
remote hosts syslogs are redirect to my nagios server and on that sever iam 
running the check_log2.pl  script. if  i used that in command 
line its workign fine. but if i put that to nagios it gives no output error (iam 
cheking the "syslog" key word to just chek the result)</FONT></DIV>
<DIV><FONT face=Arial size=2>in my checkcomands.cfg i defined it as 
follws</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>define command {<BR>command_name 
check_log2<BR>command_line $USER1$/check_log2.pl -l /var/log/syslog -s /tmp/seek 
-p syslog</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in my services.cfg</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>define 
service{<BR>        
use                             
generic-service         ; Name of 
service template to use<BR>        
host_name                       
syslog-server<BR>        
service_description             
Syslog monitoring<BR>        
is_volatile                     
0<BR>        
check_period                    
24x7<BR>        
max_check_attempts              
1<BR>        
normal_check_interval           
1<BR>        
retry_check_interval            
1<BR>        
contact_groups                  
linux-admins<BR>        
notification_interval           
120<BR>        
notification_period             
24x7<BR>        
notification_options            
w,u,c,r<BR>        
check_command                   
check_log2<BR>        
}<BR></FONT> </DIV>
<DIV><FONT face=Arial size=2>it gives this output in nagios.log</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1109736316] SERVICE ALERT: syslog-server;Syslog 
monitoring;CRITICAL;SOFT;1;(No output!)<BR>[1109736356] SERVICE ALERT: 
syslog-server;Syslog monitoring;CRITICAL;SOFT;2;(No output!)<BR>[1109736416] 
SERVICE ALERT: syslog-server;Syslog monitoring;CRITICAL;HARD;3;(No 
output!)</FONT></DIV></FONT></DIV></FONT></DIV></BODY></HTML>