Ola Marcio

Os parametros que voce passou no services.cfg estao diferentes dos que voce
passou na mao...

Nao me lembro da macro $USER7$ mas ela me parfece estar sobrando...

Eu criaria um command_line assim, pra refletir o que voce mandou na mão. Mas
não sei se os parametros do plugin estão OK...:
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C public
-o $ARG1$

Verifique tambem as permissoes, isto é, se o usuario que está rodando o
nagios (geralmente o nagios) tem permissão de execucao no check_snmp...

[]s


2011/1/6 marcio xavier <mrcxav...@gmail.com>

> Pessoal,
>
> Estou com probleminha chato, não estou conseguindo monitorar meu firewall,
> ele é um Freebsd-(Pfsense) que roda o bsnmpd.
> O problema é o seguinte, se eu rodar o /usr/lib/nagios/plugins/check_snmp
> -H 192.168.0.1 -C public -o .1.3.6.1.2.1.1.5.0 manualmente ou somente o
> snmpget consigo o retorno sem problemas, mas na página no Nágios está
> apresentando a mensagem "load problem - No data received from host".
>
> Meu commands,cfg está assim:
>
>
> # 'check_snmp' command definition
> define command{
>        command_name    check_snmp
>        command_line    /usr/lib/nagios/plugins/check_snmp -H
> '$HOSTADDRESS$' $USER7$  -w :'$ARG2$',:'$ARG3$',:'$ARG4$' -c
> :'$ARG5$',:'$ARG6$',:'$ARG7$' -l load
>        }
>
>
> E meu services.cfg:
>
> define service {
>        host_name                       teste
>        service_description             Check Hostname
>        check_command                   check_snmp!.1.3.6.1.2.1.1.5.0
>        max_check_attempts              1
>        check_interval                  1
>        retry_interval                  1
>        check_period                    24x7
>        notification_interval           60
>        notification_period             24x7
>        notification_options            w,c,r
>        contact_groups                  tecnicos
>        }
>
>
> Muito Obrigado
>
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any
> company
> that requires sensitive data to be transmitted over the Web.   Learn how to
> best implement a security strategy that keeps consumers' information secure
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> --
> Nagios-users-br@lists.sourceforge.net mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>



-- 
Abraços

José Geraldo de Oliveira
Linux user #492561
Certified LPIC-1
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki

Responder a