keepalived.data and keepalived.stats json output

Damien Clabaut <[email protected]> Fri, 14 Jul 2017 08:35:54 -0400
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Hello Keepalived developers,

My team and I are considering modifying the file 
https://github.com/acassen/keepalived/blob/master/keepalived/vrrp/vrrp_print.c 
in order to make the /tmp/keepalived.data and /tmp/keepalived.stats a 
valid json.

In your opinion, what would be the best way to do this ?

- Patching current functions so that kill -USR1 and kill -USR2 return 
valid json ?

- Adding handlers for kill -USR3 and kill -USR4 to return valid json, 
leaving -USR1 and -USR2 in their current states ?

The idea would be to port this patch to the master branch in the end.

Regards,

-- 
Damien Clabaut
R&D vRouter
ovh.qc.ca


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot