Re: [Keepalived-devel] Query keepalived for information such as current priority?
Status: Beta
Brought to you by:
acassen
|
From: Quentin A. <qu...@ar...> - 2018-08-23 12:22:48
|
Paul, SNMP is probably the way to go. For state, it would be possible to track that via notify_scripts or notify_fifos, but you can't get priority that way. There is also the option to parse JSON output, but that isn't ideal at the moment, and there is also DBus, but I can't remember what is available via that. Finally it would be possible to send SIGUSR1 to the parent keepalived process and parse the /tmp/keepalived.data file, but that really isn't recommended. You state that "some of the information is not available". Which MIB are you using? The RFC based VRRP and VRRPv3 MIBs don't provide as much information as the proprietary KEEPALVIED MIB. If there are specifics that you need that are missing from SNMP, then they could be added to the KEEPALIVED MIB. Can you provide a list of the specific information that you would like to be available. Regards,Quentin Armitage On Thu, 2018-08-23 at 11:05 +0100, Paul Gildea wrote: > I am looking for a way to query/poll keepalived for things like > priority, state and so forth.Is there a way to do this? I see with > SNMP some of the information is available, but not all of it such as > priority. Is there another way to get these details without using > SNMP? > > Regards, > > -- > Paul |