nginxinc / nginx-amplify-agent

NGINX Amplify Agent
BSD 2-Clause "Simplified" License
23 stars 9 forks source link

centos 7 ? nixstatsagent: ping: socket: Operation not permitted #9

Open centminmod opened 7 years ago

centminmod commented 7 years ago

On just installed CentOS 7.3 64bit server the connectivity has stopped with error in /var/log/messages

nixstatsagent: ping: socket: Operation not permitted
ls -lah /var/run/amplify-agent
total 4.0K
drwxr-xr-x  2 nginx nginx  60 Jun 13 23:16 .
drwxr-xr-x 31 root  root  900 Jun 13 20:51 ..
-rw-r--r--  1 nginx nginx   5 Jun 13 23:16 amplify-agent.pid
systemctl status nginx-amplify-agent -l
● amplify-agent.service - LSB: start and stop nginx-amplify-agent daemon
   Loaded: loaded (/etc/rc.d/init.d/amplify-agent; bad; vendor preset: disabled)
   Active: active (running) since Tue 2017-06-13 23:16:55 UTC; 4min 12s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3077 ExecStop=/etc/rc.d/init.d/amplify-agent stop (code=exited, status=0/SUCCESS)
  Process: 3122 ExecStart=/etc/rc.d/init.d/amplify-agent start (code=exited, status=0/SUCCESS)
 Main PID: 3163 (amplify-agent)
   Memory: 29.8M
   CGroup: /system.slice/amplify-agent.service
           └─3163 amplify-agent                                                                                                                              

Jun 13 23:16:54 host.domain.com systemd[1]: Starting LSB: start and stop nginx-amplify-agent daemon...
Jun 13 23:16:54 host.domain.com runuser[3141]: pam_unix(runuser:session): session opened for user nginx by (uid=0)
Jun 13 23:16:55 host.domain.com runuser[3141]: pam_unix(runuser:session): session closed for user nginx
Jun 13 23:16:55 host.domain.com amplify-agent[3122]: Starting nginx-amplify-agent: [  OK  ]
Jun 13 23:16:55 host.domain.com systemd[1]: PID file /var/run/amplify-agent/amplify-agent.pid not readable (yet?) after start.
Jun 13 23:16:55 host.domain.com systemd[1]: Started LSB: start and stop nginx-amplify-agent daemon.
/etc/rc.d/init.d/amplify-agent configtest

Config file /etc/amplify-agent/agent.conf is OK

nginx -V nginx version: nginx/1.13.1 built by gcc 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC) built with OpenSSL 1.0.2l 25 May 2017 TLS SNI support enabled configure arguments: --with-ld-opt='-ljemalloc -lpcre -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --add-dynamic-module=../ngx_pagespeed-1.12.34.2-beta --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0 --add-module=../set-misc-nginx-module-0.31 --add-module=../echo-nginx-module-0.60 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-dynamic-module=../lua-nginx-module-0.10.9rc5 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-module=../headers-more-nginx-module-0.32 --with-pcre=../pcre-8.40 --with-pcre-jit --with-zlib=../zlib-1.2.11 --with-http_ssl_module --with-http_v2_module --add-module=../http2-push-nginx-module --with-openssl=../openssl-1.0.2l

dedm commented 7 years ago

Hi @centminmod!

The agent doesn't work at all, right? May I ask you to share /var/log/amplify-agent/agent.log?

centminmod commented 7 years ago

Could it be conflict i have nixstats agent installed as well as amplify

i am seeing

2017-06-14 02:12:17,932 [3163] nginx_meta nginx_meta failed to collect: find_packages raised ValueError