The problem was solved calling a script , and the mrtg command put in this script. I knew it wasn't caused by the user because I did all task with root user. Thanks everybody,
Thomaz Portella Arquitetura de InfraEstrutura - Tel.: 11 23936908 Corporação Porto Seguro - http://www.portoseguro.com.br De: "McDonald, Daniel (Dan)" <[email protected]> Para: "[email protected]" <[email protected]> Data: 15/07/2016 17:44 Assunto: Re: [mrtg] I still couldn't execute mrtg using cron. Enviado por: "mrtg" <[email protected]> More than likely, you are running from the command line with a different user than cron, so the cron user doesn’t have the same permissions as the logged in user. From: mrtg <[email protected]> on behalf of thomaz portella <[email protected]> Date: Thursday, July 14, 2016 at 12:40 PM To: "[email protected]" <[email protected]> Subject: [mrtg] I still couldn't execute mrtg using cron. I still couldn't executing mrtg using machine cron. I supposed cron wasn't running, but I put a simple script and worked. I didn't put the mrtg command itself, but instead I made a script with the command, changed the file to be executable, and put the name of this file in the crontab. But doesn't run . To ensure the script was right, tiping by cmd line, it works. Anyone knows what is wrong? Thanks _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg As informações contidas nesta mensagem e no(s) arquivo(s) anexo(s) são endereçadas exclusivamente à(s) pessoa(s) e/ou instituição(ões) acima indicada(s) e podem conter informações confidenciais e/ou privilegiadas. Se você não for o destinatário ou a pessoa autorizada a recebê-la, queira, por favor, retorná-la ao remetente e em seguida apagá-la definitivamente. Qualquer uso, cópia ou divulgação das informações nela contidas, na íntegra ou parcialmente, são proibidas e serão tratadas conforme legislação vigente.
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
