RES: Use of check_mrtgtraf plugin

Jarbas Peixoto Junior Jarbas.Junior at planalto.gov.br
Wed Jun 4 20:52:20 CEST 2003


Itamar, a mensagem está aparentemente clara: o usuário "nagios" (que
normalmente roda Nagios) não está conseguindo abrir o arquivo de log. 
Faça um teste:
1)       logue-se como nagios (su - nagios)
2)       tente acessar o arquivo de log  (cat
/home/httpd/html/mrtg/10.0.24.1_7.log) 
 
Parece ser problema com a permissão dos aquivos/diretórios
 
[]s
-----Mensagem original-----
De: itamarf [mailto:itamarf at pbh.gov.br] 
Enviada em: quarta-feira, 4 de junho de 2003 15:03
Para: nagios-users at lists.sourceforge.net
Assunto: [Nagios-users] Use of check_mrtgtraf plugin
 
Hi ! 
I am trying to use the command check_mrtgtraf in my nagios management
system. I need some 
help to configure the 
*.cfg files. My configurations file are bellow. 
checkcommands.cfg file 
# 'check_mrtg_traf' command definition 
define command{ 
        command_name    check_mrtg_traf 
        command_line    $USER1$/check_mrtgtraf -F $LOGFILE$ -a $ARG1$ -w 
$ARG3$,$ARG4$ -c $ARG5$,$ARG6$ 
        } 
services.cfg 
# Service definition 
define service{ 
        use                             generic-service         ; Name of
service template to use 
        host_name                       prodabel-goias 
        service_description          TRAFEGO 
        is_volatile                         0 
        check_period                    24x7 
        max_check_attempts         3 
        normal_check_interval       1 
        retry_check_interval         1 
        contact_groups                  circuito-admins 
        notification_interval           240 
        notification_period             24x7 
        notification_options            c,r 
        check_command
check_mrtg_traf!10.0.24.1_7.log!MAX!200,210!225,230 
  
The mrtg log file is /home/httpd/html/mrtg/10.0.24.1_7.log. 
The message that I get is Unable to open MRTG log file 
Thanks ! 
Best regards ! 
Itamar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030604/91e854a4/attachment.html>


More information about the Users mailing list