[prev in list] [next in list] [prev in thread] [next in thread]
List: packetfence-users
Subject: Re: [PacketFence-users] Alert on RADIUS Failure
From: Fabrice Durand via PacketFence-users <packetfence-users () lists ! sourceforge ! net>
Date: 2021-02-09 14:57:57
Message-ID: 146e9979-de9e-14a7-be45-b79775d95d6e () inverse ! ca
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello Stephen,
you can install monit for that.
yum install monit
then have a configuration file that match specific pattern:
check file radius.log with path /usr/local/pf/logs/radius.log
group RADIUS
every 450 cycles # every 15 minutes (if 1 cycle is 2 seconds)
if match "Rejected user" then alert
if match "Sponge Bob" then alert
Regards
Fabrice
Le 21-02-08 à 16 h 37, Stephen Gaucher via PacketFence-users a écrit :
>
> I would like to configure PacketFence to email me if its auth status
> is set to rejected (it fails a RADIUS check). What’s the easiest way
> to do this? Thank you!
>
> City of Vernon Disclaimer: This transmission (including any
> attachments) may contain confidential information, privileged material
> (including material protected by the FOI act or other applicable
> privileges), or constitute non-public information. Any use of this
> information by anyone other than the intended recipient is prohibited.
> If you have received this transmission in error, please immediately
> reply to the sender and delete this information from your system. Use,
> dissemination, distribution, or reproduction of this transmission by
> unintended recipients is not authorized and may be unlawful.
>
>
> _______________________________________________
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
--
Fabrice Durand
fdurand@inverse.ca :: +1.514.447.4918 (x135) :: www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence (http://packetfence.org)
[Attachment #5 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Hello Stephen,</p>
<p>you can install monit for that.</p>
<p>yum install monit</p>
<p>then have a configuration file that match specific pattern:<br>
</p>
<p>check file radius.log with path /usr/local/pf/logs/radius.log<br>
group RADIUS<br>
every 450 cycles # every 15 minutes (if 1 cycle is 2
seconds)<br>
if match "Rejected user" then alert<br>
if match "Sponge Bob" then alert</p>
<p><br>
</p>
<p>Regards</p>
<p>Fabrice</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 21-02-08 à 16 h 37, Stephen Gaucher
via PacketFence-users a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:e73e4d67869744f7a493ea60c6b78ff7@vernon.ca">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I would like to configure PacketFence to
email me if its auth status is set to rejected (it fails a
RADIUS check). What’s the easiest way to do this? Thank \
you!<o:p></o:p></p> </div>
City of Vernon Disclaimer: This transmission (including any
attachments) may contain confidential information, privileged
material (including material protected by the FOI act or other
applicable privileges), or constitute non-public information. Any
use of this information by anyone other than the intended
recipient is prohibited. If you have received this transmission in
error, please immediately reply to the sender and delete this
information from your system. Use, dissemination, distribution, or
reproduction of this transmission by unintended recipients is not
authorized and may be unlawful.
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" \
wrap="">_______________________________________________ PacketFence-users mailing \
list <a class="moz-txt-link-abbreviated" \
href="mailto:PacketFence-users@lists.sourceforge.net">PacketFence-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" \
href="https://lists.sourceforge.net/lists/listinfo/packetfence-users">https://lists.sourceforge.net/lists/listinfo/packetfence-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Fabrice Durand
<a class="moz-txt-link-abbreviated" \
href="mailto:fdurand@inverse.ca">fdurand@inverse.ca</a> :: +1.514.447.4918 (x135) :: \
<a class="moz-txt-link-abbreviated" href="http://www.inverse.ca">www.inverse.ca</a> \
Inverse inc. :: Leaders behind SOGo (<a class="moz-txt-link-freetext" \
href="http://www.sogo.nu">http://www.sogo.nu</a>) and PacketFence (<a \
class="moz-txt-link-freetext" \
href="http://packetfence.org">http://packetfence.org</a>) </pre> </body>
</html>
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic