TOP LEVEL CATEGORIES
EXPLORE
Description:
Used to check whether StongSwan/OpenSwan IPSEC tunnels are up or not. Can check if a total number of tunnels are up or per tunnel name. Currently has been tested against StrongSwan 5.x. If Earlier versions of StrongSwan need to be supported let me know.
sudoers entry:
nagios ALL=(root) NOPASSWD: /usr/lib/nagios/plugins/check_ipsec2
nrpe_local.cfg entry:
command[check_ipsec2]=sudo /usr/lib/nagios/plugins/check_ipsec2 $ARG1$
/etc/nagios/ipsec_gateways.txt entry:
CON-192.168.48.0 192.168.48.1
Service definition:
define service { use generic-service host_name vpngw.domain.tld service_description Check CON-192.168.48.0 check_command check_ipsec2!”-c CON-192.168.48.0 -p -s” }
or
define service { use generic-service host_name vpngw.domain.tld service_description Check Tunnels check_command check_ipsec2!”-a 4″ }
Command definition:
define command{ command_name check_ipsec2 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_ipsec2 -a $ARG1$ }
Usage: $PROGNAME [-hprsv] [-a number of connections] [-c IPSEC connection name] -a (Check all connections) -c (Check specific connection) -p (Ping remote gateway. Used only with -c) -r (Restart IPSEC if down) -s (Reacquire SA for connection. Used only with both -c and -p) -h (Show this help screen) -v (Show version)
-a and -c cannot be used together. -s can only be used with -c. -p can only be used with -c.
Current Version
1.0rc1
Last Release Date
2015-03-11
Compatible With
Owner
Charles Williams
Website
http://www.itadmins.net
Download URL
http://wiki.itadmins.net/doku.php?id=icinga-nagios:check_ipsec2code
License
GPL
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.