2016-04-27 15:54 GMT-03:00, Tiago Ribeiro <sha...@gmail.com>: > >> Em 27 de abr de 2016, à(s) 11:45, Paulo Henrique <paulo.rd...@bsd.com.br> >> escreveu: >> >> Em 27 de abril de 2016 11:24, Tiago Ribeiro <sha...@gmail.com> escreveu: >> >>> >>>> Em 26 de abr de 2016, à(s) 22:09, Paulo Henrique >>>> <paulo.rd...@bsd.com.br> >>> escreveu: >>>> >>>> 2016-04-26 17:49 GMT-03:00 Tiago Ribeiro <sha...@gmail.com>: >>>> >>>>> Ontem fui instalar um zabbix proxy via ports e estava dando um erro que >>> vou >>>>> passar mais a frente, e hoje após fazer um pkg update , que atualizou >>> pro >>>>> zabbix24-proxy-2.4.7_1 começou o mesmo erro. >>>>> >>>>> Segue o erro: >>>>> >>>>> /usr/local/etc/rc.d/zabbix_proxy: ERROR: USAGE: get_pidfile_from_conf >>>>> string file (zabbix_proxy) >>>>> >>>>> Após modificar o arquivo /usr/local/etc/rc.d/zabbix_proxy, que estava >>>>> desta forma: >>>>> >>>>> find_pidfile() >>>>> { >>>>> if get_pidfile_from_conf PidFile ${zabbix_agentd_config}; then >>>>> pidfile="$_pidfile_from_conf" >>>>> else >>>>> pidfile="/tmp/${name}.pid" >>>>> fi >>>>> >>>>> # This shouldn't be necessary with pidfile, but empirically it >>> was >>>>> the >>>>> # only way to reap the parent PID instead of all PIDs from >>>>> # check_process, which may leak SysV IPC objects and prevent >>>>> restart >>>>> # and/or race condition on restart. >>>>> rc_pid=$(check_pidfile ${pidfile} ${command}) >>>>> } >>>>> >>>>> Deixando da seguinte da forma funciona: >>>>> >>>>> find_pidfile() >>>>> { >>>>> pidfile="/tmp/${name}.pid" >>>>> >>>>> # This shouldn't be necessary with pidfile, but empirically it >>> was >>>>> the >>>>> # only way to reap the parent PID instead of all PIDs from >>>>> # check_process, which may leak SysV IPC objects and prevent >>>>> restart >>>>> # and/or race condition on restart. >>>>> rc_pid=$(check_pidfile ${pidfile} ${command}) >>>>> } >>>>> >>>>> >>>>> — >>>>> http://www.bsdjf.com.br >>>>> >> >> Cria o diretorio /var/run/zabbix >> #mkdir /var/run/zabbix >> De a permissão desse diretorio para o usuario zabbix. >> #chown -R zabbix:zabbix /var/run/zabbix >> No arquivo de configuração do zabbix_proxy.conf altere o parametro PidFile >> conforme abaixo: >> PidFile=/var/run/zabbix/zabbix_proxy.pid >> >> Caso, normalmente não ocorre se o zabbix não criar o arquivo >> zabbix_proxy.pid sozinho e reclamar então cria o arquivo manualmente. >> #touch /var/run/zabbix/zabbix_proxy.pid >> Não esquece as permissões, o arquivo tem que ser do zabbix >> #chown zabbix:zabbix /var/run/zabbix/zabbix_proxy.pid >> >> Att. >> >> — > > > Mesmo problema, por hora a solução está sendo remover as linhas, mesmo > sabendo > que terei problemas futuramente, mas ai reinstalo o zabbix_proxy, apagando o > arquivo do rc.d .
https://bugs.freebsd.org/bugzilla !!! IRC? #bsdports@efnet, #zabbix@freenode, ... -- Vinícius Zavam keybase.io/egypcio/key.asc ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd