On 12/22/2015 12:54 PM, Balaev Pavel wrote: > Dear developers, > > > We would like to propose a new plugin for strongSwan called dead-peer-notify. > After the last retransmit has been sent and the peer is considered dead ( > plugin hooks ALERT_RETRANSMIT_SEND_TIMEOUT alert ), plugin sends an email > with notification, which contains a name and an ip address of the dead peer, > or( and ) executes external command with two arguments: dead peer name and ip > address. System administrators may find it useful for configuring email > alerts and customizing other actions. > > > > > > _______________________________________________ > Dev mailing list > [email protected] > https://lists.strongswan.org/mailman/listinfo/dev > Hi Pavel,
what's the advantage of your pluging over the use of the existing error- notify-plugin in conjunction with an external daemon (could be a script or so)? Besides, if you link against libcurl, you will have to add a check for libcurl to configure.ac Cheers, Thomas
diff --git a/configure.ac b/configure.ac index 86c88a0..26e2643 100644 --- a/configure.ac +++ b/configure.ac @@ -910,7 +910,7 @@ if test x$ldap = xtrue; then AC_CHECK_HEADER([ldap.h],,[AC_MSG_ERROR([LDAP header ldap.h not found!])]) fi -if test x$curl = xtrue; then +if test x$curl = xtrue || x$dead_peer_notify = xtrue; then AC_CHECK_LIB([curl],[main],[LIBS="$LIBS"],[AC_MSG_ERROR([CURL library curl not found])],[]) AC_CHECK_HEADER([curl/curl.h],,[AC_MSG_ERROR([CURL header curl/curl.h not found!])]) fi
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Dev mailing list [email protected] https://lists.strongswan.org/mailman/listinfo/dev
