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

[systemd] failed to get d-bus session: #31

Closed
dragan1979 opened this issue Aug 21, 2018 · 7 comments
Closed

[systemd] failed to get d-bus session: #31

dragan1979 opened this issue Aug 21, 2018 · 7 comments

Comments

@dragan1979
Copy link

output from zabbix agent

[systemd] failed to get d-bus session: Failed to connect to socket /run/dbus/system_bus_socket: Permission denied

@jangaraj
Copy link
Collaborator

jangaraj commented Aug 21, 2018

Please provide agent logs - https://github.com/cavaliercoder/zabbix-module-systemd#debugging
and your SELinux configuration - https://github.com/cavaliercoder/zabbix-module-systemd#selinux, OS/systemd versions, ... Generally, all information which will help to replicate your issue.

@dragan1979
Copy link
Author

dragan1979 commented Aug 21, 2018

I disabled SELinux and then got processes in zabbix, only for 6 services getting exclamation mark (Cannot open cpuacct.stat file/Cannot open memory.stat file) under monitor-latest data

[systemd] cannot open metric file: '/sys/fs/cgroup/memory/system.slice/irqbalance.service/memory.stat'
 14852:20180821:220840.725 [systemd] cannot open metric file: '/sys/fs/cgroup/cpu,cpuacct/system.slice/kdump.service/cpuacct.stat'
 14853:20180821:220844.007 [systemd] cannot open metric file: '/sys/fs/cgroup/cpu,cpuacct/system.slice/irqbalance.service/cpuacct.stat'
 14853:20180821:220851.309 [systemd] cannot open metric file: '/sys/fs/cgroup/memory/system.slice/[email protected]/memory.stat'
 14852:20180821:221802.714 [systemd] cannot open metric file: '/sys/fs/cgroup/cpu,cpuacct/system.slice/[email protected]/cpuacct.stat'
 14853:20180821:221810.083 [systemd] cannot open metric file: '/sys/fs/cgroup/cpu,cpuacct/system.slice/kdump.service/cpuacct.stat'
 14854:20180821:221814.101 [systemd] cannot open metric file: '/sys/fs/cgroup/cpu,cpuacct/system.slice/irqbalance.service/cpuacct.stat'
 14854:20180821:221821.358 [systemd] cannot open metric file: '/sys/fs/cgroup/memory/system.slice/[email protected]/memory.stat'
 14852:20180821:221829.482 [systemd] cannot open metric file: '/sys/fs/cgroup/memory/system.slice/kdump.service/memory.stat'
 14854:20180821:221833.588 [systemd] cannot open metric file: '/sys/fs/cgroup/memory/system.slice/irqbalance.service/memory.stat'

@jangaraj
Copy link
Collaborator

See: #12

@dragan1979
Copy link
Author

dragan1979 commented Aug 21, 2018

sorry, don't follow, all above files don't exist on my system, not sure what should i do to get rid of above message-to disable those items ?

@jangaraj
Copy link
Collaborator

See #12 => that's already reported issue. If you want to resolve it, then you need to.make your hand dirty, because this issue is still not resolved => you will need to code it or wait for resolution provided by someone else.

@dragan1979
Copy link
Author

dragan1979 commented Aug 22, 2018

ok, thanks,last question:
in systems where SELinux is ON (enforced)
how to add exception to get rid of

[systemd] failed to get d-bus session: Failed to connect to socket /run/dbus/system_bus_socket: Permission denied

@dragan1979
Copy link
Author

stupid me, sorry didn't see SELinux link, will try and open new issue if face errors, thanks a lot for this template !!

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

No branches or pull requests

2 participants