[smokeping-users] Master/Slave configuration trouble

Eric Chatham echatham at broadvox.com
Wed Jun 10 20:06:48 CEST 2009


On Wednesday, June 10, 2009 12:50, Ged wrote,


>> [root at dalimnag02 ~]# chmod 700 /opt/smokeping/etc/secrets.conf
>> [root at dalimnag02 ~]# chmod 722 /opt/smokeping/etc/secrets.conf
>> [root at dalimnag02 ~]# chmod 711 /opt/smokeping/etc/secrets.conf
>
> You're going to need to do some reading about filesystem things.  You
> gave the file various nonsensical permissions.  That last one for
> example was owner read, write and execute, group and world execute
> only (not read, not write).  You would normally use something like 640
> (to put it another way, owner read+write, group read only, world none).
> A configuration file almost never needs any execute permissions.
>
> I'd probably make the file owned by the same user that's running the
> daemon which needs to read the file, and make the permissions 600
> (rw,none,none).

I got a chance to get this working.  I used 640 with root:root.  I'm still having a problem though.  It is now saying:

[root at laxvpn001 ~]# /opt/smokeping/bin/smokeping --master-url=http://server02.domain.net/smokeping/smokeping.cgi --shared-secret=/opt/smokeping/secret.txt --cache-dir=/var/tmp/
WARNING: I expected protocol 2 and got ? from slave laxvpn001. I will skip this.

ERROR: we did not get config form the master. Maybe we are not configured as a slave for any of the targets on the master ?
Thank you for your assistance. :)

ERC.

CONFIDENTIAL.  This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.



More information about the smokeping-users mailing list