<br><font size=2 face="sans-serif"><b>People</b>,</font>
<br>
<br><font size=2 face="sans-serif">        Sorry
to bring this subject up again, but i still cannot solve it...</font>
<br>
<br><font size=2 face="sans-serif">        Problem:
check_log does not send notifications</font>
<br><font size=2 face="sans-serif">        </font>
<br><font size=2 face="sans-serif">        Description:
i'm checking a local a file (/var/log/auth.log), i have chmoded it to be
readable by others. i have set old file to be same to a place where nagios
has write permissions. The web interface shows the correct info (it shows
ok state when nothing happens, and it shows critical state when my pattern
is found). I have used complex patterns at first, and then change to simple
patterns, like "BAD" (without the quotes), and still not working.
Something that i noticed is that /var/log/maillog is not even touched when
this service reaches critical state. Marc has already tried to help, changing
the printf command to echo, but it doesn't solved the problem...</font>
<br>
<br><font size=2 face="sans-serif">        Files:</font>
<br>
<br><font size=2><tt>#<br>
# CYCLOPE<br>
#<br>
define host{<br>
    use                
                generic-host<br>
    host_name              
            cyclope<br>
    alias                
              Cyclope<br>
    address              
              96.1.1.22<br>
}<br>
<br>
services.cfg<br>
------------<br>
<br>
#<br>
# CYCLOPE AUTH LOG<br>
#<br>
define service{<br>
    use                
                generic-service<br>
    host_name            
               
               
               
       cyclope<br>
    service_description            
    AUTH_LOG<br>
    contact_groups          
               
               
        producao<br>
    <br>
check_command              
               
               
    check_log!/var/log/auth.log!/var/tmp/auth.log.nagios!'.*BAD.*\|.*FAIL.*\|.*REFUSED.*'<br>
}<br>
<br>
checkcommands.cfg<br>
------------------<br>
<br>
# 'check_log' command definition<br>
define command{<br>
                
command_name                
check_log<br>
                
command_line                
$USER1$/check_log -F $ARG1$ -O $ARG2$ -q $ARG3$<br>
                
}<br>
<br>
misccommands.cfg<br>
------------------<br>
<br>
# 'notify-by-email' command definition<br>
define command{<br>
                
command_name                
notify-by-email<br>
                
command_line                
/usr/bin/printf "%b" "***** Nagios  *****\n\nNotification
<br>
Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: <br>
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
<br>
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "**
<br>
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$
**" <br>
$CONTACTEMAIL$<br>
                
}</tt></font>
<br>
<br><font size=2 face="sans-serif">        Info:</font>
<br><font size=2 face="sans-serif">         
      Operating System: FreeBSD 4.9 Stable Release</font>
<br><font size=2 face="sans-serif">         
      Nagios version: 1.1 (from ports collection)</font>
<br><font size=2 face="sans-serif">         
      Nagio plugins version: 1.3.0 (from ports collection)</font>
<br>
<br><font size=2 face="sans-serif">Any help apreciatted<br>
</font><font size=3><br>
Obrigado,<br>
</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:andre@peixoto.com.br><font size=3 color=blue><b><u>André
Luiz de Lemos Barros</u></b></font></a><font size=3><b><br>
3218-5617/9102-0145<br>
Equipe de Suporte</b></font><font size=3 color=blue><u><br>
</u></font><a href=http://www.peixoto.com.br/><font size=3 color=blue><b><u>Peixoto</u></b></font></a>