Le 23/06/2015 16:24, Arianna Avanzini a écrit :
Il 23/06/2015 16:09, Jérôme BERTHIER ha scritto:
[...]
2) ntopng.service status records a lot of message about rm :
Jun 23 15:07:40 myserver.mydomain.tld ntopng[4629]: /bin/rm: missing operand Jun 23 15:07:40 myserver.mydomain.tld ntopng[4629]: Try '/bin/rm --help' for
more information.

=> I noticed that the exec script searches only for "-G" option to find the pid
file but I set the "--pid" option. So, I modified the script this way :
#PID_FILE=$(cat /etc/ntopng/ntopng.conf | grep '\-G='|cut -d '=' -f 2)
PID_FILE=$(cat /etc/ntopng/ntopng.conf | grep -E "\-G=|--pid"|cut -d '=' -f 2)

=> See /etc/systemd/scripts/ntopng for this part.


3) last issue, not resolved for now, if I reboot the server, ntopng starts with
errors. The web UI is up but no data is available. If I restart the ntop
service, everything goes OK. :
Jun 23 15:00:23 myserver.mydomain.tld ntopng[3154]: [src/Redis.cpp:108] ERROR:
LOADING Redis is loading the dataset in memory
Jun 23 15:00:23 myserver.mydomain.tld ntopng[3154]: [src/Redis.cpp:1297] ERROR:
LOADING Redis is loading the dataset in memory
Jun 23 15:00:23 myserver.mydomain.tld ntopng[3154]: [src/Redis.cpp:125] ERROR:
LOADING Redis is loading the dataset in memory
Jun 23 15:00:23 myserver.mydomain.tld ntopng[3154]: [src/Redis.cpp:108] ERROR:
LOADING Redis is loading the dataset in memory


Have you tried to reset Redis with redis-cli flushall?

I just flushed the cache and reboot. Everything goes OK at restart.
So I guess that after a limit, redis takes too much time to read its cache.
ntopng should wait for a "ready" message from redis. Is it true ? So I just need to wait if the issue comes back ?



=> so I tried to modify the systemd unit ntopng.service to set it to start after
redis.service.
In file /etc/systemd/system/ntopng.service, add "redis.service" to the "After"
line :

That is a great idea, thanks for suggesting it.

You're welcome.

[...]

Regards,

--
Jérôme BERTHIER
DSI - SESI - Reseau
Inria Bordeaux - Sud-Ouest
05 24 57 40 50


Attachment: smime.p7s
Description: Signature cryptographique S/MIME

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to