GQЦитата: Если libpacap, то изменения в iptables не нужны, зато data source должен быть
я всё понимаю, конечно, но всё что мог я и так прочитал и в руководстве и в howto и на форумах... Лучше посмотрим на полезные советы
Цитата: set -x
Цитата: сюда не надо
именно [more=сюда]router:~# head -2 /etc/init.d/netams
#!/bin/sh
set -x
router:~# ps aux|grep netams
root 6241 0.0 0.1 3324 776 pts/0 S+ 00:21 0:00 grep netams
router:~# invoke-rc.d netams start
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/netams
+ NAME=netams
+ DESC=NeTAMS daemon
+ LOGDIR=/var/log/netams
+ PIDFILE=/var/run/netams.pid
+ test -x /usr/sbin/netams
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ true
+ DAEMON_OPTS=
+ DIETIME=10
+ LOGFILE=/var/log/netams/netams.log
+ [ -f /etc/default/netams ]
+ . /etc/default/netams
+ RUN=yes
+ DAEMON_OPTS=-l -q
+ [ xyes != xyes ]
+ set -e
+ log_daemon_msg Starting NeTAMS daemon netams
+ [ -z Starting NeTAMS daemon ]
+ log_daemon_msg_pre Starting NeTAMS daemon netams
+ :
+ [ -z netams ]
+ echo -n Starting NeTAMS daemon: netams
Starting NeTAMS daemon: netams+ log_daemon_msg_post Starting NeTAMS daemon netams
+ :
+ running
+ [ ! -f /var/run/netams.pid ]
+ return 1
+ start_server
+ start_daemon -p /var/run/netams.pid /usr/sbin/netams -l -q
+ local force nice pidfile exec i args
+ force=0
+ nice=0
+ pidfile=/dev/null
+ OPTIND=1
+ getopts fn:p: opt
+ pidfile=/var/run/netams.pid
+ getopts fn:p: opt
+ shift 2
+ [ /usr/sbin/netams = -- ]
+ exec=/usr/sbin/netams
+ shift
+ args=--start --nicelevel 0 --quiet --oknodo
+ [ 0 = 1 ]
+ [ /var/run/netams.pid ]
+ /sbin/start-stop-daemon --start --nicelevel 0 --quiet --oknodo --chdir /root --exec /usr/sbin/netams --oknodo --pidfile /var/run/netams.pid -- -l -q
+ running
+ [ ! -f /var/run/netams.pid ]
+ return 1
+ log_end_msg 1
+ [ -z 1 ]
+ retval=1
+ log_end_msg_pre 1
+ :
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput setaf 1
+ RED=
+ /usr/bin/tput setaf 3
+ YELLOW= + /usr/bin/tput op
+ NORMAL= + [ 1 -eq 0 ]
+ [ 1 -eq 255 ]
+ /bin/echo -e
failed!
failed! + log_end_msg_post 1
+ :
+ return 1
invoke-rc.d: initscript netams, action "start" failed.
router:~# [/more]! (о великое МОРЕ, даже разукрасил как в терминале...) Ну и заодно [more=/var/log/netams.log]NeTAMS 3.4.5 (3490.1) gq@vice / Tue 27 Jul 2010 19:20:09 +0400
10.06.2011 00:21:58.3109 <..>:0 [INFO]: Becoming a daemon...
10.06.2011 00:21:58.3270 main:0 [INFO]: initializing service server:0
10.06.2011 00:21:58.3279 main:0 [INFO]: server login permitted from localhost only
10.06.2011 00:21:58.3280 main:0 [INFO]: server listen port set to 20001
10.06.2011 00:21:58.3280 main:0 [INFO]: server maximum connections number is set to 6
10.06.2011 00:21:58.3280 main:0 [INFO]: initializing service processor:0
10.06.2011 00:21:58.3303 main:0 [INFO]: initializing service storage:1
10.06.2011 00:21:58.3332 main:0 [INFO]: initializing service data-source:0
10.06.2011 00:21:58.3348 main:0 [INFO]: initializing service quota:0
10.06.2011 00:21:58.3389 main:0 [INFO]: initializing service alerter:0
10.06.2011 00:21:58.3416 main:0 [INFO]: initializing service html:0
10.06.2011 00:21:58.3417 main:0 [INFO]: initializing service scheduler:0
10.06.2011 00:21:58.3429 main:0 [INFO]: initializing service monitor:0
10.06.2011 00:21:58.3444 main:0 [INFO]: starting service main:0
10.06.2011 00:21:58.3444 main:0 [INFO]: starting service server:0
10.06.2011 00:21:58.3446 main:0 [INFO]: service server:0 thread started
10.06.2011 00:21:58.3446 main:0 [INFO]: starting service processor:0
10.06.2011 00:21:58.3447 main:0 [INFO]: service processor:0 thread started
10.06.2011 00:21:58.3447 main:0 [INFO]: starting service storage:1
10.06.2011 00:21:58.3448 main:0 [INFO]: service storage:1 thread started
10.06.2011 00:21:58.3448 main:0 [INFO]: starting service data-source:0
10.06.2011 00:21:58.3449 main:0 [INFO]: service data-source:0 thread started
10.06.2011 00:21:58.3449 main:0 [INFO]: starting service quota:0
10.06.2011 00:21:58.3450 main:0 [INFO]: service quota:0 thread started
10.06.2011 00:21:58.3450 main:0 [INFO]: starting service alerter:0
10.06.2011 00:21:58.3451 main:0 [INFO]: service alerter:0 thread started
10.06.2011 00:21:58.3451 main:0 [INFO]: starting service html:0
10.06.2011 00:21:58.3452 main:0 [INFO]: service html:0 thread started
10.06.2011 00:21:58.3452 main:0 [INFO]: starting service scheduler:0
10.06.2011 00:21:58.3453 main:0 [INFO]: service scheduler:0 thread started
10.06.2011 00:21:58.3453 main:0 [INFO]: starting service monitor:0
10.06.2011 00:21:58.3454 data-source:0 [INFO]: IP tree created
10.06.2011 00:21:58.3455 data-source:0 [INFO]: FLOW HASH initialized with size 65536
10.06.2011 00:21:58.3455 data-source:0 [INFO]: Flow engine started
10.06.2011 00:21:58.3456 data-source:0 [INFO]: BW HASH initialized with size 16384
10.06.2011 00:21:58.3507 storage:1 [INFO]: storage:1 working with mysql
10.06.2011 00:21:58.3508 alerter:0 [INFO]: service alerter:0 processing queue
task 08FFFF modified
task 08FFFF action set: html
task 08FFFF time set: 10min, exec in 600 sec
scheduled to: 10.06.2011 00:31:58
10.06.2011 00:21:58.3511 scheduler:0 [INFO]: service scheduler:0 processing queue
10.06.2011 00:21:58.3512 processor:0 [INFO]: will use storage 1 for SUMMARY data
10.06.2011 00:21:58.3556 server:0 [INFO]: server is listening
10.06.2011 00:21:58.3558 ds_ipq:0 [ERR]: linux ipq handle failed: Unable to bind netlink socket!
10.06.2011 00:21:58.3581 ds_ipq:0 [ERR]: Data-source data-source:0 error starting child thread
10.06.2011 00:21:58.3837 quota:0 [INFO]: Restoring units quota
10.06.2011 00:21:58.3837 quota:0 [DEBUG]: service quota:0 checking every processor delay: 30 seconds
10.06.2011 00:21:59.3461 data-source:0 [INFO]: Shutting down service ds_ipq:0
10.06.2011 00:21:59.3462 data-source:0 [INFO]: destroying service ds_ipq:0
10.06.2011 00:21:59.3462 data-source:0 [INFO]: cancelling service data-source:0, flushing 0 messages
10.06.2011 00:21:59.3463 data-source:0 [INFO]: service data-source:0 thread cancelled[/more].