andybrr
(usa RedHat)
Enviado em 08/09/2006 - 19:43h
Ola pessoal,
Estou precisando de uma pequena ajuda com o script que criei. Faz o seguinte: caso o servidor esteja down/up, envia um email alertando. Quando eu rodo esse script na mao tipo sh.meuscript funciona normal sem problemas. Agora quando coloco pra rodar pelo cron, fica aparecendo a mensagem no maillog o seguinte:
Sep 8 18:41:39 srv01 postfix/smtpd[6084]: connect from unknown[127.0.0.1]
Sep 8 18:41:39 srv01 postfix/smtpd[6084]: 9DD0617F6C4: client=unknown[127.0.0.1]
Sep 8 18:41:39 srv01 postfix/cleanup[6163]: 9DD0617F6C4: message-id=<200609082241.k88Mf0el009010@localhost.localdomain>
Sep 8 18:41:39 srv01 postfix/nqmgr[19805]: 9DD0617F6C4: from=<root@localhost.localdomain>, size=874, nrcpt=1 (queue active)
Sep 8 18:41:39 srv01 sendmail[9010]: k88Mf0el009010: to=root, ctladdr=root (0/0), delay=00:00:39, xdelay=00:00:00, mailer=relay, pri=30202, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 9DD0617F6C4)
Sep 8 18:41:39 srv01 postfix/smtpd[6084]: disconnect from unknown[127.0.0.1]
Sep 8 18:41:39 srv01 postfix/smtp[6162]: 9DD0617F6C4: to=<root@localhost.localdomain>, relay=none, delay=0, status=bounced (Name service error for localhost.localdomain: Host not found)
Sep 8 18:41:39 srv01 postfix/cleanup[6163]: B0E7717F6C5: message-id=<20060908224139.B0E7717F6C5@fw-iris.bemol.com.br>
Sep 8 18:41:39 srv01 postfix/nqmgr[19805]: B0E7717F6C5: from=<>, size=2580, nrcpt=1 (queue active)
Sep 8 18:41:39 srv01 postfix/smtp[6162]: B0E7717F6C5: to=<root@localhost.localdomain>, relay=none, delay=0, status=bounced (Name service error for localhost.localdomain: Host not found)
Alguem?!?
Valeu,
Anderson