ganglia / monitor-core

Ganglia Monitoring core
BSD 3-Clause "New" or "Revised" License
489 stars 246 forks source link

rrdcached instructions incorrect #233

Open NoodlesNZ opened 8 years ago

NoodlesNZ commented 8 years ago

https://github.com/ganglia/monitor-core/wiki/Integrating-Ganglia-with-rrdcached

# su nobody -c 'rrdcached -p /tmp/rrdcached.pid \
-s apache -m 664 -l unix:/tmp/rrdcached.sock \
-s nogroup -m 777 -P FLUSH,STATS,HELP -l unix:/tmp/rrdcached.limited.sock \
-b /var/lib/ganglia/rrds -B' -s /bin/sh

The permissions on the limited socket only really needs to be FETCH. Using FLUSH,STATS,HELP it stops ganglia web from requesting the data.

boykov commented 6 years ago

I also cannot use ganglia web with such settings. But if I run apache with root permissions, everything works.

boykov commented 6 years ago

I inspected the problem and found out that httpd service cannot read files from /tmp because of PrivateTmp=true grep Priv /usr/lib/systemd/system/httpd.service

So I put the file to /var/lib/ganglia/rrds/rrdcached.limited.sock (directory rrds has nobody owner in my case)