Dejan Muhamedagic wrote:
Hi,

On Fri, Jan 23, 2009 at 02:42:35PM +0100, Christian Charles wrote:
Hello,

i used the guide at http://www.linux-ha.org/PingdWithMultipleNetworks to monitor connectivity to 2 different nets and it works.

I don't like that i have to create copies of /usr/lib/heartbeat/pingd though, since it means i have to remember to update these copies manually, when i update heartbeat.

Not necessarily ...

Is there an alternative way?

I have tried so far without success:
1) Symlinking:
cd /usr/lib/heartbeat
ln -s pingd pingdnet1
ln -s pingd pingdnet2

... you can try with hard links.
You are right, that should work and solve my update issue. Thanks!
2) Using just one copy of pingd and configuring ha.cf like this:
respawn root /usr/lib/heartbeat/pingd -a pingdnet1 -m 100 -d 5s -p /var/run/pingdnet1.pid -h a.a.a.a -h b.b.b.b -h c.c.c.c respawn root /usr/lib/heartbeat/pingd -a pingdnet2 -m 100 -d 5s -p /var/run/pingdnet1.pid -h x.x.x.x -h y.y.y.y -h z.z.z.z

Is this a typo: You specified the same pid file for both.
Yes it is a typo, originating from the webpage mentioned above. Maybe it made its way into my actual configuration, i'll go and try this again. I'm still wondering: Why does that guide suggest to make copies of the pingd binary in the first place? Why not specify multiple respawn directives with the same program and different arguments? Maybe that's just not the way how respawn works?
Thanks,

Dejan

OS: debian/etch
heartbeat version: 2.1.3 (specifically the backport 2.1.3-6~bpo40+2 from backports.org)

Thanks in advance
Christian Charles
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to