Verifiquei sim, Wilson, mas está correto mesmo.
O estranho é que as outras variáveis ficam corretas, mas $DATETIME$ e
$OUTPUT$, não!
Agora atentei para uma coisa e vou testar.
Vi pelo seu exemplo, correspondente a Nagios 2.9 que estas variáveis são
chamadas de $LONGD
ATETIME$ e $HOSTOUTPUT$. Talvez seja esta a diferença, já que peguei este
arquivo de uma versão anterior do Nagios, na ocasião de uma migração.

Grato

Josival Júnior

Em 03/08/07, Jose Wilson A. do Nascimento <[EMAIL PROTECTED]> escreveu:
>
>
>         Verifique se o comando esta apenas em uma unica linha, no
> vi vc pode abrir o arquivo e executar /set number que ele ira informar o
> numero de linha.
>
> (linha)202         command_name    host-notify-by-email
> (linha)203         command_line    /usr/bin/printf "%b" "***** Nagios 2.9
> *****\n\nNotification Type: $NOTIFICATI
> ONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
> $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGD
> ATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!"
> $CONTACTEMAIL$
> (linha)204         }
>
> Conforme exemplo pode ser isso.
>
>
> > command_line    /usr/bin/printf "%b" "***** Nagios  *****\n\nTipo de
> > Notificação: $NOTIFICATIONTYPE$\n\nServiço: $SERVICEDESC$\nHost:
> > $HOSTALIAS$\nEndereço: $HOSTADDRESS$\nEstado:
> $SERVICESTATE$\n\nData/Hora:
> > $DATETIME$\n\nInformações Adicionais:\n\n$OUTPUT$" | /usr/bin/mail -s
> "**
> > $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$
> **"
> > $CONTACTEMAIL$
> >
> > }
> >
> > Todos outros valores, como $NOTIFICATIONTYPE$ e $HOSTADDRESS$ são
> mostrados
> > corretamente.
> >
> > Já procurei muito sobre isso e nada achei. Algum de vocês já teve esse
> > problema ou poderia ajudar?
> >
> > Muito grato
> >
> > Josival Júnior
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > --
> > [email protected] mailing list
> > https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> > Wiki: http://nagios-br.sf.net/wiki
> >
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> --
> [email protected] mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
-- 
[email protected] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki

Responder a