Problemas com Sarg [RESOLVIDO]

1. Problemas com Sarg [RESOLVIDO]

Eric
emcarpanezi

(usa Ubuntu)

Enviado em 25/04/2016 - 13:27h

Boa tarde Galera, estou com um problema com os relatorios do Sarg, esta no cron os comando tudo certinho porem, no syslog ele registra que foi executado, quando vou no site verificar ele nao gerou nada de relatorio, ele so gera o relatorio se fiz na mão!

as configuração do Cron
# m h dom mon dow command
*/1 * * * * root sarg-reports today
00 00 * * * root sarg-reports daily
00 01 * * * root sarg-reports weekly
30 02 * * * root sarg-reports monthly


Os log


Apr 25 13:14:40 srv-internet dhcpd: DHCPREQUEST for 172.16.0.15 from 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:14:40 srv-internet dhcpd: DHCPACK on 172.16.0.15 to 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:15:01 srv-internet CRON[3223]: (root) CMD (root sarg-reports today)
Apr 25 13:15:01 srv-internet CRON[3222]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:16:02 srv-internet CRON[3262]: (root) CMD (root sarg-reports today)
Apr 25 13:16:02 srv-internet CRON[3261]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:17:02 srv-internet CRON[3265]: (root) CMD (root sarg-reports today)
Apr 25 13:17:02 srv-internet CRON[3264]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:17:02 srv-internet CRON[3266]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Apr 25 13:18:01 srv-internet CRON[3269]: (root) CMD (root sarg-reports today)
Apr 25 13:18:01 srv-internet CRON[3268]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:19:01 srv-internet CRON[3271]: (root) CMD (root sarg-reports today)
Apr 25 13:19:01 srv-internet CRON[3270]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:19:40 srv-internet dhcpd: DHCPREQUEST for 172.16.0.15 from 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:19:40 srv-internet dhcpd: DHCPACK on 172.16.0.15 to 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:20:01 srv-internet CRON[3273]: (root) CMD (root sarg-reports today)
Apr 25 13:20:01 srv-internet CRON[3272]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:21:01 srv-internet CRON[3312]: (root) CMD (root sarg-reports today)
Apr 25 13:21:01 srv-internet CRON[3311]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:21:51 srv-internet named[978]: error (network unreachable) resolving 'cedexis.net/DS/IN': 2001:dc3::35#53
Apr 25 13:21:51 srv-internet named[978]: error (network unreachable) resolving 'akamai.net/DS/IN': 2001:7fe::53#53
Apr 25 13:22:01 srv-internet CRON[3314]: (root) CMD (root sarg-reports today)
Apr 25 13:22:01 srv-internet CRON[3313]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:23:01 srv-internet CRON[3316]: (root) CMD (root sarg-reports today)
Apr 25 13:23:01 srv-internet CRON[3315]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:24:01 srv-internet CRON[3318]: (root) CMD (root sarg-reports today)
Apr 25 13:24:01 srv-internet CRON[3317]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:24:40 srv-internet dhcpd: DHCPREQUEST for 172.16.0.15 from 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:24:40 srv-internet dhcpd: DHCPACK on 172.16.0.15 to 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:25:01 srv-internet CRON[3320]: (root) CMD (root sarg-reports today)
Apr 25 13:25:01 srv-internet CRON[3319]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:26:01 srv-internet CRON[3322]: (root) CMD (root sarg-reports today)
Apr 25 13:26:01 srv-internet CRON[3321]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:27:01 srv-internet CRON[3361]: (root) CMD (root sarg-reports today)
Apr 25 13:27:01 srv-internet CRON[3360]: (CRON) info (No MTA installed, discarding output)

~
~
~
~


  


2. Re: Problemas com Sarg [RESOLVIDO]

André Romero Alves de Souza
arasouza

(usa Debian)

Enviado em 25/04/2016 - 13:52h

emcarpanezi escreveu:

Boa tarde Galera, estou com um problema com os relatorios do Sarg, esta no cron os comando tudo certinho porem, no syslog ele registra que foi executado, quando vou no site verificar ele nao gerou nada de relatorio, ele so gera o relatorio se fiz na mão!

as configuração do Cron
# m h dom mon dow command
*/1 * * * * root sarg-reports today
00 00 * * * root sarg-reports daily
00 01 * * * root sarg-reports weekly
30 02 * * * root sarg-reports monthly


Os log


Apr 25 13:14:40 srv-internet dhcpd: DHCPREQUEST for 172.16.0.15 from 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:14:40 srv-internet dhcpd: DHCPACK on 172.16.0.15 to 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:15:01 srv-internet CRON[3223]: (root) CMD (root sarg-reports today)
Apr 25 13:15:01 srv-internet CRON[3222]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:16:02 srv-internet CRON[3262]: (root) CMD (root sarg-reports today)
Apr 25 13:16:02 srv-internet CRON[3261]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:17:02 srv-internet CRON[3265]: (root) CMD (root sarg-reports today)
Apr 25 13:17:02 srv-internet CRON[3264]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:17:02 srv-internet CRON[3266]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Apr 25 13:18:01 srv-internet CRON[3269]: (root) CMD (root sarg-reports today)
Apr 25 13:18:01 srv-internet CRON[3268]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:19:01 srv-internet CRON[3271]: (root) CMD (root sarg-reports today)
Apr 25 13:19:01 srv-internet CRON[3270]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:19:40 srv-internet dhcpd: DHCPREQUEST for 172.16.0.15 from 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:19:40 srv-internet dhcpd: DHCPACK on 172.16.0.15 to 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:20:01 srv-internet CRON[3273]: (root) CMD (root sarg-reports today)
Apr 25 13:20:01 srv-internet CRON[3272]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:21:01 srv-internet CRON[3312]: (root) CMD (root sarg-reports today)
Apr 25 13:21:01 srv-internet CRON[3311]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:21:51 srv-internet named[978]: error (network unreachable) resolving 'cedexis.net/DS/IN': 2001:dc3::35#53
Apr 25 13:21:51 srv-internet named[978]: error (network unreachable) resolving 'akamai.net/DS/IN': 2001:7fe::53#53
Apr 25 13:22:01 srv-internet CRON[3314]: (root) CMD (root sarg-reports today)
Apr 25 13:22:01 srv-internet CRON[3313]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:23:01 srv-internet CRON[3316]: (root) CMD (root sarg-reports today)
Apr 25 13:23:01 srv-internet CRON[3315]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:24:01 srv-internet CRON[3318]: (root) CMD (root sarg-reports today)
Apr 25 13:24:01 srv-internet CRON[3317]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:24:40 srv-internet dhcpd: DHCPREQUEST for 172.16.0.15 from 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:24:40 srv-internet dhcpd: DHCPACK on 172.16.0.15 to 08:00:27:f1:53:e3 (pc_01) via eth1
Apr 25 13:25:01 srv-internet CRON[3320]: (root) CMD (root sarg-reports today)
Apr 25 13:25:01 srv-internet CRON[3319]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:26:01 srv-internet CRON[3322]: (root) CMD (root sarg-reports today)
Apr 25 13:26:01 srv-internet CRON[3321]: (CRON) info (No MTA installed, discarding output)
Apr 25 13:27:01 srv-internet CRON[3361]: (root) CMD (root sarg-reports today)
Apr 25 13:27:01 srv-internet CRON[3360]: (CRON) info (No MTA installed, discarding output)

~
~
~
~


Blz, etnão deixa apenas "sarg" no cron, e verifique os arquivos de configuração, só uma duvida: "so qando gera não mão"? ou seja se vc executar no terminal os comandos ele gera todos os relatórios solicitados? today weekly etc...


3. Re: Problemas com Sarg

Eric
emcarpanezi

(usa Ubuntu)

Enviado em 25/04/2016 - 14:00h

Isso ele só executa se eu for no terminal e fazer manual. no caso ficaria assim?

# m h dom mon dow command
*/1 * * * * sarg
00 00 * * * sarg
00 01 * * * sarg
30 02 * * * sarg




4. Re: Problemas com Sarg [RESOLVIDO]

André Romero Alves de Souza
arasouza

(usa Debian)

Enviado em 26/04/2016 - 05:15h

emcarpanezi escreveu:

Isso ele só executa se eu for no terminal e fazer manual. no caso ficaria assim?

# m h dom mon dow command
*/1 * * * * sarg
00 00 * * * sarg
00 01 * * * sarg
30 02 * * * sarg


Assim, adicionando o user q irá executar e confirma se o binário do sarg está em /usr/bin/, faz o teste e vê se dá certo.
30 02 * * * root /usr/bin/sarg






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts