Hello everybody,

some news after all ;-)!

My configuration is finally working. To resume I had severals problems

1) In the first place I had the slave_name <> hostame issue which as been solved thanks to tobi's patch
2) I had a misconfiguration in my smokepingsecret file : on slave file you shall only give the secret key of the slave, not with the "host:secret" syntax
3) Then things where not running (but it was looking like) as I had no data updated in my ~slave.rrd

So I finally change my hostname to be my slave name (so I am not using the --slave_name directive anymore). Then I notice, using TCPDUMP, that master and host where able to communicate OK but, for example the master the IP address defined in the slave host file was not matching the one seen on the slave. This was "normal" because we are using NAT via firewall between master and slave. So I suppress the NAT function on the firewalls so that salve and master could communicate using their real IP address.

Things appears to work much better. Looking at the logs I finally found why my rrd could not be updated : It was because the apache daemon running with user:group apache:apache could not have write access to the /usr/local/smokping/var where the ~slave.rrd files where located on the master (because smokeping.cgi is run by apache, not root).

So everything is OK now, but I still  have one question  which is not answered :

Assuming I have three environment, say envA, envB, envC containing host and objects to be measured, and assuming I want Master to poll
envA, envB, envC and Slave to poll only envA, envB (because envC is not reachable form the Slave), how do I set the "slaves=" directives in order to tells the slave not monitoring envC ???? I have tried to set the "slaves=" directive specifically to envA and envB but I have the "ERROR: /usr/local/smokeping/etc/config, line 312: slave1 [slave2]" message.

Cheers to all of you,

Stephen.


begin:vcard
fn:Stephen Demailly
n:Demailly;Stephen
org:Thales Division Service;DSV/IOS/IMS/CSP
adr:;;5-11 Rue Blaise Pascal;Elancourt Cedex;;78990;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Resonsable Metrologie domaine T=C3=A9l=C3=A9coms/R=C3=A9seaux/S=C3=A9curi=
	t=C3=A9
tel;work:+33 (0)1 70 17 00 34
tel;cell:+33 (0)6 84 78 85 92
x-mozilla-html:TRUE
url:http://www.thalesgroup.com
version:2.1
end:vcard

_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to