Ad

elijah
asked Mar 30 2019
edited Mar 30 2019
Answer
The error might occur due to missing the following packages on a server for accessing the Logo of NTOP package. So need to install the following package on a server
yum install pango-devel

linuxhelp
asked Mar 30 2019
Unit ntopng.service entered failed state
I have installed NTOP on CentOS 7.6, I changed the following values on conf file of NTOP package as /etc/ntopng/ntopng.conf for using the NTOP application as Community edition (line no 10)
-G=/var/run/ntopng.pid --community
I'm getting an error while restarting the service. after I have made the changes as follow
[root@squid globalt]# systemctl status ntopng ● ntopng.service - ntopng high-speed web-based traffic monitoring and analysis tool Loaded: loaded (/usr/lib/systemd/system/ntopng.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2019-03-19 06:45:18 IST; 24s ago Process: 1377 ExecStopPost=/bin/sh -c /bin/echo "$(/bin/date) ntopng StopPost" >> /var/log/ntop-systemd.log (code=exited, status=0/SUCCESS) Process: 1375 ExecStopPost=/bin/rm -rf /run/ntopng.conf (code=exited, status=0/SUCCESS) Process: 1302 ExecStartPost=/bin/sh -c /bin/echo "$(/bin/date) ntopng StartPost" >> /var/log/ntop-systemd.log (code=exited, status=0/SUCCESS) Process: 1301 ExecStart=/usr/local/bin/ntopng /run/ntopng.conf (code=exited, status=127) Process: 1297 ExecStartPre=/bin/sh -c /bin/sed "/^[ ]*-e.*$\|^[ ]*-G.*\|^[ ]*--daemon.*\|^[ ]*--pid.*/s/^/#/" /etc/ntopng/ntopng.conf > /run/ntopng.conf (code=exited, status=0/SUCCESS) Process: 1287 ExecStartPre=/bin/sh -c /usr/bin/ntopng-utils-manage-config -a check-restore && /usr/bin/ntopng-utils-manage-config -a restore || true (code=exited, status=0/SUCCESS) Process: 1282 ExecStartPre=/bin/sh -c /bin/echo "$(/bin/date) ntopng StartPre" >> /var/log/ntop-systemd.log (code=exited, status=0/SUCCESS) Main PID: 1301 (code=exited, status=127) Mar 19 06:45:15 squid.domain systemd[1]: Starting ntopng high-speed web-based traffic monitoring and analysis tool... Mar 19 06:45:15 squid.domain systemd[1]: Started ntopng high-speed web-based traffic monitoring and analysis tool. Mar 19 06:45:18 squid.domain ntopng[1301]: /usr/local/bin/ntopng: symbol lookup error: /lib64/libpango-1.0.so.0: undefined symbol: g_log_structured_standard Mar 19 06:45:18 squid.domain systemd[1]: ntopng.service: main process exited, code=exited, status=127/n/a Mar 19 06:45:18 squid.domain systemd[1]: Unit ntopng.service entered failed state. Mar 19 06:45:18 squid.domain systemd[1]: ntopng.service failed.