Hello, how are you doing ?
So, I've installed metricbeat in my ubuntu server ( Ubuntu 20.04.5 LTS ) and I enabled three modules:
root@SBG5PC4:~# metricbeat modules list
Enabled:
mysql
nginx
system
I have been working with this modules in another server ( same ubuntu version, however, metricbeat 8.5.3), however, only here I got this error:
Jan 20 16:57:21 SBG5PC4 metricbeat[2695441]: {"log.level":"info","@timestamp":"2023-01-20T16:57:21.871Z","log.logger":"monitoring","log.origin":{"file.name":"log/log.go","file.line":195},"message":"Total metrics","service.name":"metricbeat","monitoring":{"metrics":{"beat":{"cgroup":{"cpu":{"cfs":{"period":{"us":100000},"quota":{"us":0}},"id":"metricbeat.service","stats":{"periods":0,"throttled":{"ns":0,"periods":0}}},"cpuacct":{"id":"metricbeat.service","total":{"ns":315535463}},"memory":{"id":"metricbeat.service","mem":{"limit":{"bytes":9223372036854771712},"usage":{"bytes":39575552}}}},"cpu":{"system":{"ticks":80,"time":{"ms":80}},"total":{"ticks":310,"time":{"ms":310},"value":310},"user":{"ticks":230,"time":{"ms":230}}},"handles":{"limit":{"hard":524288,"soft":1024},"open":8},"info":{"ephemeral_id":"778fbb06-7915-4d97-aeab-73795ef55667","name":"metricbeat","uptime":{"ms":188},"version":"8.6.0"},"memstats":{"gc_next":22217816,"memory_alloc":14428736,"memory_sys":29180936,"memory_total":39925016,"rss":132276224},"runtime":{"goroutines":13}},"libbeat":{"config":{"module":{"running":0,"starts":0,"stops":0},"reloads":0,"scans":0},"output":{"events":{"acked":0,"active":0,"batches":0,"dropped":0,"duplicates":0,"failed":0,"toomany":0,"total":0},"read":{"bytes":0,"errors":0},"type":"elasticsearch","write":{"bytes":0,"errors":0}},"pipeline":{"clients":0,"events":{"active":0,"dropped":0,"failed":0,"filtered":0,"published":0,"retry":0,"total":0},"queue":{"acked":0,"max_events":4096}}},"metricbeat":{"mysql":{"galera_status":{"events":0,"failures":0,"success":0},"performance":{"events":0,"failures":0,"success":0},"status":{"events":0,"failures":0,"success":0}},"nginx":{"stubstatus":{"events":0,"failures":0,"success":0}}},"system":{"cpu":{"cores":4},"load":{"1":0.43,"15":0.22,"5":0.26,"norm":{"1":0.1075,"15":0.055,"5":0.065}}}},"ecs.version":"1.6.0"}}
Jan 20 16:57:21 SBG5PC4 metricbeat[2695441]: {"log.level":"info","@timestamp":"2023-01-20T16:57:21.872Z","log.logger":"monitoring","log.origin":{"file.name":"log/log.go","file.line":196},"message":"Uptime: 192.099957ms","service.name":"metricbeat","ecs.version":"1.6.0"}
Jan 20 16:57:21 SBG5PC4 metricbeat[2695441]: {"log.level":"info","@timestamp":"2023-01-20T16:57:21.872Z","log.logger":"monitoring","log.origin":{"file.name":"log/log.go","file.line":163},"message":"Stopping metrics logging.","service.name":"metricbeat","ecs.version":"1.6.0"}
Jan 20 16:57:21 SBG5PC4 metricbeat[2695441]: {"log.level":"info","@timestamp":"2023-01-20T16:57:21.872Z","log.origin":{"file.name":"instance/beat.go","file.line":491},"message":"metricbeat stopped.","service.name":"metricbeat","ecs.version":"1.6.0"}
Jan 20 16:57:21 SBG5PC4 metricbeat[2695441]: {"log.level":"error","@timestamp":"2023-01-20T16:57:21.872Z","log.origin":{"file.name":"instance/beat.go","file.line":1071},"message":"Exiting: 1 error: error connecting to dbus: error getting connection to system bus: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory","service.name":"metricbeat","ecs.version":"1.6.0"}
Jan 20 16:57:21 SBG5PC4 metricbeat[2695441]: Exiting: 1 error: error connecting to dbus: error getting connection to system bus: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
Jan 20 16:57:21 SBG5PC4 systemd[1]: metricbeat.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 16:57:21 SBG5PC4 systemd[1]: metricbeat.service: Failed with result 'exit-code'.
So, What is wrong ?
Thanks!