rrdcached socket permission

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
Mitchell
Posts: 130
Joined: Thu Jan 05, 2012 2:33 am

rrdcached socket permission

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: rrdcached socket permission

Post by scottwilkerson »

Confirmed and patched!

Thanks!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart