Re: How to pass real master server IP to tracking script
Quentin Armitage <[email protected]>
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Organization | The Armitage family |
| Message-ID | <[email protected]> |
Hello Yuya, Apologies for the delay in replying to you. I don't think there is a way at the moment of achieving what you want directly. A possibility, without any code modification to keepalived would be in the script to execute: kill -USR1 $(cat /var/run/keepalived.pid) and then after a short delay read the /tmp/keepalived.data file that is created. This would need parsing to find the right VRRP instance (if you are running more than one), and then look for the Master router entry. If this doesn't work for you, and you still want to modify the code, let me know and I'll give you some pointers. With regards, Quentin A On Thu, 2016-10-20 at 14:57 -0700, 白木勇矢 wrote: > Hello Keepalived Devel, > > > I'm using Keepalived VRRP for my school project, and I have a question > regarding VRRP. > According to the document, I can specify the script to run when role > is changed by notify "program_path". As arguments, whether program is > called in INSTANCE or GROUP, name of the INSTANCE or GROUP the program > is called, and the end state of transition can be passed to the > program. > I'm looking for the way to pass the real server IP address who becomes > master when role change happened. Is it supported in Keepalived? If > it's not supported, can someone give me a simple direction which file > to change and where real master server IP is held? > > > I appreciate your help so much if you could help me. > > > Thanks, > Yuya > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ Keepalived-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-devel ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Keepalived-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-devel