mehdy / keepalived-exporter

Prometheus Keepalived exporter
GNU General Public License v3.0
115 stars 37 forks source link

Add old version Keepalived v1.3.5 #150

Open anch665 opened 5 months ago

anch665 commented 5 months ago

ip_address is determined incorrectly keepalived_vrrp_state{environment="PROD", iname="gql_5111", instance="server01", intf="ens192", ip_address="10.72.63.100/32", job="keepalived", vrid="100"}

cat /tmp/keepalived.data ------< VRRP Topology >------ VRRP Instance = gql_5111 VRRP Version = 2 State = MASTER Last transition = 1698874220 (Thu Nov 2 00:30:20 2023) Listening device = ens192 Using src_ip = 10.72.63.101 Gratuitous ARP delay = 5 Gratuitous ARP repeat = 5 Gratuitous ARP refresh = 0 Gratuitous ARP refresh repeat = 1 Gratuitous ARP lower priority delay = 5 Gratuitous ARP lower priority repeat = 5 Send advert after receive lower priority advert = true Send advert after receive higher priority advert = false Virtual Router ID = 100 Priority = 110 Advert interval = 1 sec Accept = enabled Preempt = enabled Promote_secondaries = disabled Authentication type = SIMPLE_PASSWORD Password = 1111 Tracked scripts = 1 VRRP Script = chk_nginx_service Command = /usr/sbin/pidof nginx Interval = 2 sec Weight = -10 Rise = 1 Full = 1 Insecure = no uid:gid = 0:0 Status = GOOD Interface weight -10 Virtual IP = 1 10.72.63.100/32 dev ens192 scope global

cat /tmp/keepalived.stats VRRP Instance: gql_5111 Advertisements: Received: 293 Sent: 25349905 Became master: 54 Released master: 53 Packet Errors: Length: 0 TTL: 0 Invalid Type: 0 Advertisement Interval: 0 Address List: 0 Authentication Errors: Invalid Type: 0 Type Mismatch: 0 Failure: 0 Priority Zero: Received: 0 Sent: 0

clwluvw commented 5 months ago

Hi - Can you please also share your expected IP? what I see in your keepalived.data output seems the IP has been assigned correctly.