[smokeping-users] Master - Slave Config problem

Lee Gardiner (RackSRV) lee at racksrv.net
Thu May 17 13:35:47 CEST 2012


Hello,

Have you set your permissions on /var/smokeping/secret.txt to 777 or similar ?, you need to alter the ownership and permissions on this file to ensure it is secure.

-Lee

From: smokeping-users-bounces+lee=racksrv.net at lists.oetiker.ch [mailto:smokeping-users-bounces+lee=racksrv.net at lists.oetiker.ch] On Behalf Of samy.nashaat at orange.com
Sent: 17 May 2012 12:30
To: smokeping-users at lists.oetiker.ch
Subject: [smokeping-users] Master - Slave Config problem

Hello All,

I'm not able to finish the config of a Master - Slave pair of Smokeping.

Master is working fine while the slave configuration is not working with the below eror:
ERROR: the shared secret file (/var/smokeping/secret.txt) is world-readable or writable at /usr/share/perl5/Smokeping.pm line 4109.

Please help me and let me know if you need more info

1.1                   Master Configuration



smoke at MASTER:/etc/smokeping/config.d$<mailto:smoke at MASTER:/etc/smokeping/config.d$> cat Slaves

*** Slaves ***

secrets=/etc/smokeping/smokeping_secrets

#+boomer

#display_name=boomer

#color=0000ff



#+slave2

#display_name=another

#color=00ff00



+SLAVE01

display_name=SLAVE01

Location=NECKARSULM_SMOKE

color=ff0000



smoke at MASTER:/etc/smokeping/config.d$<mailto:smoke at MASTER:/etc/smokeping/config.d$> cat Targets

*** Targets ***



slaves = SLAVE01

probe = FPing



menu = Top

.

.



smoke at MASTER:/etc/smokeping$ sudo cat smokeping_secrets

host1:mysercert

host2:yoursercert

boomer:lkasdf93uhhfdfddf

SLAVE01:Gr7k;=O&%/





1.2                   Slave configuration

smoke at SLAVE01:/var$ pwd

/var

smoke at SLAVE01:/var$ sudo mkdir smokeping

smoke at SLAVE01:/var$ ls -l

total 52

drwxr-xr-x  2 root root  4096 Apr 21 06:25 backups

drwxr-xr-x  9 root root  4096 Apr 17 12:10 cache

drwxr-xr-x 22 root root  4096 Apr 17 12:10 lib

drwxrwsr-x  2 root staff 4096 Jan 12 19:44 local

drwxrwxrwt  4 root root  4096 May 16 17:04 lock

drwxr-xr-x  7 root root  4096 May 17 06:25 log

drwxrwsr-x  2 root mail  4096 May 17 13:21 mail

drwxr-xr-x  2 root root  4096 Apr 17 12:06 opt

drwxr-xr-x  5 root root  4096 May 16 17:04 run

drwxr-xr-x  2 root root  4096 May 17 13:28 smokeping

drwxr-xr-x  4 root root  4096 Apr 17 12:10 spool

drwxrwxrwt  2 root root  4096 May 16 16:59 tmp

drwxr-xr-x  2 root root  4096 Apr 17 12:10 www

smoke at SLAVE01:/var$ cd smokeping/

smoke at SLAVE01:/var/smokeping$ ls

smoke at SLAVE01:/var/smokeping$ sudo vi secret.txt

smoke at audinevk0142:/usr/sbin$ ls -l /var/smokeping/

total 4

-rwxrwxrwx 1 root root 14 May 17 14:11 secret.txt

smoke at SLAVE01:/var/smokeping$ cat secret.txt

Gr7k;=O&%/

smoke at audinevk0142:/usr/sbin$ sudo  ./smokeping --master-url=http://smokeping/smokeping.cgi              --cache-dir=/var/cache/              --shared-secret=/var/smokeping/secret.txt
ERROR: the shared secret file (/var/smokeping/secret.txt) is world-readable or writable at /usr/share/perl5/Smokeping.pm line 4109.
smoke at audinevk0142:/usr/sbin$

Line 4109 in /usr/share/perl5/Smokeping.pm  = die "ERROR: the shared secret file ($opt{'shared-secret'}) is world-readable or writable"

Thanks in advance
[cid:image001.gif at 01CD3429.95F187B0]        [cid:image002.gif at 01CD3429.95F187B0]
Samy Nashaat
FT/SCE/EQUANT/CS&O/TSO/AVAYA VOICE SERVICE MANAGEMENT
tel. +202 2292 2784 | | samy.nashaat at orange.com<mailto:samy.nashaat at orange.com>
Equant, City Stars Tower 2 Floor 10 Omar Ebn El Khatab Street, Heliopolis, Cairo, Egypt
www.orange-business.com<http://www.orange-business.com/>
"God will make a way when there seems to be no way"
P Please do not print this e-mail unless you really need to



_________________________________________________________________________________________________________________________



Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,

France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.



This message and its attachments may contain confidential or privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete this message and its attachments.

As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20120517/7f331f14/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1081 bytes
Desc: image001.gif
Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20120517/7f331f14/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 2201 bytes
Desc: image002.gif
Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20120517/7f331f14/attachment-0003.gif 


More information about the smokeping-users mailing list