Page 1 of 1

rrdcached socket permission

Posted: Fri Jan 18, 2013 4:08 am
by Mitchell
with default installation the permission for rrdcached socket were set to 755 even if -l -s -m options are passed correctly to rrdcached.
This was creating issue with showing graphs with latest pnp4nagios web interface which required 660 minimun.

The reason is the order of the options passed to rrdcached.
by the script listed in http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

The correct order for options should be -s -m -l

the following line in the script needs to be updated with correct order

Code: Select all

cat >/etc/sysconfig/rrdcached <<-EOF
        OPTIONS="-l unix:/var/rrdtool/rrdcached/rrdcached.sock -F -s nagios -m 0660 -w 900 -z 90 -j /var/nagiosramdisk/tmp/ -b /var/rrdtool/rrdcached -P FLUSH,PENDING"
should be

Code: Select all

cat >/etc/sysconfig/rrdcached <<-EOF
        OPTIONS="-s nagios -m 0660 -l unix:/var/rrdtool/rrdcached/rrdcached.sock -F -w 900 -z 90 -j /var/nagiosramdisk/tmp/ -b /var/rrdtool/rrdcached -P FLUSH,PENDING"
Thanks
Ashish

Re: rrdcached socket permission

Posted: Fri Jan 18, 2013 9:47 am
by scottwilkerson
Confirmed and patched!

Thanks!