Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Keepalived IPVS
0.2
2016-05-10
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
BSD
8250
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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$
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)
Be the first to review this listing!