SNMP

Keepalived IPVS

Description:

Checks the status of Keepalived IPVS via SNMP. Additionally, this check provides details of the IP virtual servers and real servers configured within Keepalived.

Current Version

0.2

Last Release Date

2016-05-10

Compatible With

  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI

License

BSD


Project Notes
If an error percent and an error count are not specified, then a critical error is generated if the amount of real servers up drops below 50 percent of total real servers. If a warning percent and a warning count are not specified, then a warning is generated if 1 real server is reported down. The check returns the following codes: Success (0): Keepalived is running and no virtual servers are alarming. Warning (1): One or more virtual server has failed real servers. Critical (2): Keepalived is not running or a virtual server has a critical number of servers failed. Unknown (3): SNMP agent is not responding, or invalid CLI options provided. Specific virtual servers can be monitored by using the '-i pcre' option and specific virtual servers can be excluded by using the '-x pcre' option. The exclude option is processed after the include option. By default all virtual servers are reported. Example usage: root@nagios$ ./check_keepalived_ipvs.pl -a dnslvs20.prv.nwc -c public Virtual Servers: 2 OKAY - Keepalived v1.2.19 (04/19,2016)| - Router ID: dnslvs20.prv.nwc.acsalaska.net IPVS Count: 2 - IPVS fwmark:153 (udp) (OKAY) IP Virtual Server: fwmark wrr dr Capacity: 7 of 7 (100%) real servers up Quorum Weights: quorum met, min: 1, recovery: 0, current: 70 Active Connections: 0 connections, 0 connections/s Bytes In: 0 bytes, 0 bytes/s Bytes Out: 0 bytes, 0 bytes/s Packets In: 0 packets, 0 packets/s Packets Out: 0 packets, 0 packets/s Real Server: [2001:4948:f:53::130]:0 (alive), 10 weight, 0 connections, 0 connections/s Real Server: [2001:4948:f:53::131]:0 (alive), 10 weight, 0 connections, 0 connections/s Real Server: [2001:4948:f:53::132]:0 (alive), 10 weight, 0 connections, 0 connections/s Real Server: [2001:4948:f:53::133]:0 (alive), 10 weight, 0 connections, 0 connections/s Real Server: [2001:4948:f:53::134]:0 (alive), 10 weight, 0 connections, 0 connections/s Real Server: [2001:4948:f:53::135]:0 (alive), 10 weight, 0 connections, 0 connections/s Real Server: [2001:4948:f:53::136]:0 (alive), 10 weight, 0 connections, 0 connections/s - IPVS fwmark:53 (udp) (OKAY) IP Virtual Server: fwmark wrr dr Capacity: 7 of 7 (100%) real servers up Quorum Weights: quorum met, min: 1, recovery: 0, current: 70 Active Connections: 1117449866 connections, 1019 connections/s Bytes In: 108257910901 bytes, 97749 bytes/s Bytes Out: 0 bytes, 0 bytes/s Packets In: 1539201353 packets, 1372 packets/s Packets Out: 0 packets, 0 packets/s Real Server: 216.67.109.130:0 (alive), 10 weight, 1 connections, 146 connections/s Real Server: 216.67.109.131:0 (alive), 10 weight, 0 connections, 146 connections/s Real Server: 216.67.109.132:0 (alive), 10 weight, 0 connections, 146 connections/s Real Server: 216.67.109.133:0 (alive), 10 weight, 2 connections, 145 connections/s Real Server: 216.67.109.134:0 (alive), 10 weight, 2 connections, 145 connections/s Real Server: 216.67.109.135:0 (alive), 10 weight, 3 connections, 145 connections/s Real Server: 216.67.109.136:0 (alive), 10 weight, 1 connections, 145 connections/s | root@nagios$
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
8,266