Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ntopng doesn't recognize the -c option on startup - Complied from source #9018

Open
uc-labs-llc opened this issue Mar 3, 2025 · 4 comments
Assignees
Labels

Comments

@uc-labs-llc
Copy link

I'm running Ubuntu 24.10 and have complied NTOPNG twice and each time it doesn't recognize the -c option for a ntopng.conf file. It states -c option ignored?

Also it doesn't seem to make the ntopng-config program as well.

I can run run NTOPNG okay just that it starts with defults and no way to change anything.

@uc-labs-llc
Copy link
Author

This is the ntopng configuration:

C Compiler : gcc
C Flags : -g -O2 -I/home/cliff/Downloads/ntopng -I/home/cliff/Downloads/ntopng/include -Wall -I/usr/local/include
C++ Compiler : g++
C++ Flags : -g -O2 -I/home/cliff/Downloads/ntopng -I/home/cliff/Downloads/ntopng/include -Wno-address-of-packed-member -Wno-unused-function -I/usr/local/include
Preprocessor : gcc -E
Preprocessor Flags :
Linker Flags: :
System Libs : -lsnmp -lresolv -latomic -lsodium -L/usr/local/lib -lcap -lldap -llber -lrt -lz -ldl -lcurl
nDPI Lib: : ../nDPI/src/lib/libndpi.a
JSON Lib: : -ljson-c
SSL Lib: : -lssl -lssl -lcrypto
SNMP Lib : -lsnmp
Expat Lib : -lexpat
SQLite Lib : -lsqlite3
MySQL Lib :
PCAP Lib : -lpcap
ZMQ Lib : -lzmq
libprotobuf-mutator :
protobuf Lib :
Install path : /usr/local

You are now ready to compile typing 'make'

Please do not forget to download GeoIP databases from either https://maxmind.com or https://db-ip.com

@MatteoBiscosi
Copy link
Member

@uc-labs-llc How do you start ntopng?

@uc-labs-llc
Copy link
Author

sudo /usr/local/bin/ntopng -c /usr/local/etc/ntopng/ntopng.conf -i wlp4s0

@MatteoBiscosi
Copy link
Member

The command you use to run ntopng is not correct.
If you want to run it in foreground, there are two ways:

  • Adding all the options at startup (e.g. sudo ./ntopng -i wlo1 -F clickhouse -i lo)
  • Adding all the options in a configuration file (e.g. sudo ./ntopng /etc/ntopng/ntopng.conf

So remove the -i option from the starting line and put it into the ntopng.conf file. Then when starting ntopng -c is not an option, you just need:
sudo /usr/local/bin/ntopng /usr/local/etc/ntopng/ntopng.conf

Lastly, if you installed ntopng from packages, i'd suggest running it as a service (the service automatically reads the /usr/local/etc/ntopng/ntopng.conf for the options)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants