Mailing List Archive

CentOS 7 / nprobe / startup-up
I'm trying to persuade nprobe to start at boot and struggling over several points.

VERSIONS
Ganesh# nprobe -v

Welcome to nProbe v.7.2.160323 (r4473) for x86_64-unknown-linux-gnu
with native PF_RING acceleration.
Copyright 2002-15 ntop.org

Build OS: CentOS Linux release 7.1.1503 (Core)
SystemID: B6B0840C000207D0
Edition: nProbe Standard
License: 41B7335B7D03F2A512C87A7E36F50DE314900160119E898E5E [valid license]
License Type: Permanent License
Maintenance: Until Mon Mar 20 06:20:11 2017 [359 days left]

Ganesh# ntopng -V
v.2.2.160323 [Professional Edition]
GIT rev: 2.2-stable:06306079a9f31f95143756e855b99ac968415763:20160323
Pro rev: r524
System Id: B6B0840C000207D0
Built on: CentOS Linux release 7.1.1503 (Core)

ganesh]# cat /etc/system-release
CentOS Linux release 7.2.1511 (Core)



MANUAL SUCCESS

I can start nprobe manually as follows:

Ganesh# nprobe --syslog ganesh --zmq="tcp://*:5556" -i none -n none -b 2 --collector-port 6343 --redis localhost --local-networks 10.0.0.8

And I see results on the ntopng GUI


TROUBLES
(1)
But if I add "-daemon-mode", ntopng no longer displays information


? Do other people use -daemon-mode? Or do you just start nprobe with "&" to detacth from the console?


(2)
And if I attempt to run nprobe use the config file, ntopng no longer displays information (i.e. no longer presents real-time updates)

Ganesh# nprobe /etc/nprobe/nprobe.conf
Ganesh# cat nprobe.conf
--syslog ganesh
--zmq="tcp://*:5556" -i none -n none -b 2
--collector-port=6343
--redis=localhost
--local-networks=10.0.0.0/8,192.168.0.0/16
Ganesh#


? Is anyone using /etc/nprobe/nprobe.conf successfully? If so, would you be willing to share your nprobe.conf file?


(3)
The start-up script installed in /etc/init.d does not start nprobe:

ganesh# ./nprobe start
ganesh#

In syslog, I see:
Mar 25 07:28:18 ganesh stuartk: nprobe start

But none of the other nprobe start-up messages ... nor is nprobe in the process table.

Poking briefly at /etc/init.d/nprobe, I do not anywhere see where it looks for "/etc/nprobe/nprobe.conf"


? If you are running CentOS 7, would you be willing to share your init.d startup script? And also your /etc/system/system/nprobe.service file

--sk