DemonidZe Posted April 5, 2013 Posted April 5, 2013 (edited) root@gate:/var/www/billing# cat config/billing.ini | grep ping PING=/bin/ping -W 600 root@gate:/var/www/billing# /bin/ping -W 600 -i 0.01 -c 10 192.168.180.44 PING 192.168.180.44 (192.168.180.44) 56(84) bytes of data. 64 bytes from 192.168.180.44: icmp_req=1 ttl=127 time=0.154 ms 64 bytes from 192.168.180.44: icmp_req=2 ttl=127 time=0.176 ms 64 bytes from 192.168.180.44: icmp_req=3 ttl=127 time=0.190 ms 64 bytes from 192.168.180.44: icmp_req=4 ttl=127 time=0.211 ms 64 bytes from 192.168.180.44: icmp_req=5 ttl=127 time=0.202 ms 64 bytes from 192.168.180.44: icmp_req=6 ttl=127 time=0.223 ms 64 bytes from 192.168.180.44: icmp_req=7 ttl=127 time=0.202 ms 64 bytes from 192.168.180.44: icmp_req=8 ttl=127 time=0.440 ms 64 bytes from 192.168.180.44: icmp_req=9 ttl=127 time=2.71 ms 64 bytes from 192.168.180.44: icmp_req=10 ttl=127 time=0.803 ms Пинг с консоли все ок... а вот через веб дальше та же ситуация.- пусто Или для пинга еще где-то надо поправить ? вы тут правили ? /etc/sudoers root@gate:/etc# cat /etc/sudoers | grep ping PING=/bin/ping -W 600 root@gate:/etc# sudo /etc/init.d/isc-dhcp-server restart sudo: >>> /etc/sudoers: syntax error near line 31 <<< sudo: parse error in /etc/sudoers near line 31 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin Редактируем /etc/sudoers User_Alias BILLING = www-data BILLING ALL = NOPASSWD: ALL Эт в факах есть Edited April 5, 2013 by DemonidZe
TrEK Posted April 5, 2013 Posted April 5, 2013 вот собственно мой /etc/sudoers root@gate:/etc# cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d User_Alias BILLING = www-data BILLING ALL = NOPASSWD: ALL #PING=/bin/ping -W 600 что-то здесь еще должно быть кроме того что написано в ФАКе ?
DemonidZe Posted April 5, 2013 Posted April 5, 2013 вот собственно мой /etc/sudoers root@gate:/etc# cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d User_Alias BILLING = www-data BILLING ALL = NOPASSWD: ALL #PING=/bin/ping -W 600 что-то здесь еще должно быть кроме того что написано в ФАКе ? достаточно если нету чего нить типа как в centos сиелинукс или как оно там зовется
TrEK Posted April 13, 2013 Posted April 13, 2013 Все равно не работает попингатор. Оно ведь должно пробовать пропинговать тот адрес, который какбы выдало ?... делаю все на рабочем шлюзе.. потому там щас отключен htb и дшцп. Видимо надо на отдельной машине все поднять, и протестить нормально. а потом перенести.
nightfly Posted April 13, 2013 Posted April 13, 2013 Все равно не работает попингатор. Значит у вас все равно не работает адекватно sudo
TrEK Posted April 14, 2013 Posted April 14, 2013 Все равно не работает попингатор. Значит у вас все равно не работает адекватно sudo Можно еще раз, что должно быть прописано в sudoers относительно ПИНГА ?
felixio_01 Posted April 15, 2013 Posted April 15, 2013 (edited) вот кусочек моего sudoers Defaults env_reset root ALL=(ALL) ALL admin ALL=(ALL) ALL User_Alias BILLING = www-data BILLING ALL = NOPASSWD: ALL %sudo ALL=(ALL) ALL и ещё, в billing.ini путь до ping правильно прописан? должно быть что то типа: PING=/bin/ping Edited April 15, 2013 by felixio_01
TrEK Posted April 15, 2013 Posted April 15, 2013 root@gate:/etc# cat /var/www/billing/config/billing.ini | grep PING PING=/bin/ping root@gate:/etc# cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d User_Alias BILLING = www-data BILLING ALL = NOPASSWD: ALL
dummy Posted May 2, 2013 Posted May 2, 2013 (edited) обнаружил небольшую проблемку: при включенной опции ReconnectOnTariffChange = yes при смене тарифа скрипты OnDisconnect и OnConnect отрабатывают с интервалом около 0.1 сек, у меня получается, что дисконнект еще не доработал, а коннект уже запустился, что не очень хорошо. стоит ExecutersNum = 4. может дисконнект-коннект отрабатываются разными процессами ? вылечил командой sleep 1 в начале каждого скрипта. хотя сейчас, утром, таких накладок не наблюдаю посмотрим, что будет в час пик Edited May 2, 2013 by dummy
madf Posted May 2, 2013 Author Posted May 2, 2013 обнаружил небольшую проблемку: при включенной опции ReconnectOnTariffChange = yes при смене тарифа скрипты OnDisconnect и OnConnect отрабатывают с интервалом около 0.1 сек, у меня получается, что дисконнект еще не доработал, а коннект уже запустился, что не очень хорошо. стоит ExecutersNum = 4. может дисконнект-коннект отрабатываются разными процессами ?... Именно! Если поставить ExecutersNum=1 т будут выполняться одним процессом последовательно.
dummy Posted May 2, 2013 Posted May 2, 2013 обнаружил небольшую проблемку: при включенной опции ReconnectOnTariffChange = yes при смене тарифа скрипты OnDisconnect и OnConnect отрабатывают с интервалом около 0.1 сек, у меня получается, что дисконнект еще не доработал, а коннект уже запустился, что не очень хорошо. стоит ExecutersNum = 4. может дисконнект-коннект отрабатываются разными процессами ?... Именно! Если поставить ExecutersNum=1 т будут выполняться одним процессом последовательно. та раньше и стояло =1, просто, после перезапуска стг, очень долго приходилось ждать, пока подключатся все пользователи. поэтому и поставил =4 но пока было ReconnectOnTariffChange = no, было все ок. а с ReconnectOnTariffChange = yes - пошли проблемы.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now