Hello Fabrice,

Thanks for fabricating a solution for me, the errors are gone now.
Only interim-updates don't show any numbers/increment. Maybe its a
switch problem.. There are accounting stop type events (ADMIN-RESET)
that carry these numbers. Atleast some form of accounting..

If you have more things i can try, i'm more then willing to try them!

Kind regards,
Bebbet

On 16-2-2016 13:35, Durand fabrice wrote:
> Hello Beddet,
> 
> try that in radius.pm near line 313:
> 
>         if ($mac && $user_name) {
>             if (defined($radius_request->{'Acct-Session-Time'})) {
>                 my $session_time = int
> $radius_request->{'Acct-Session-Time'};
>                 if ($session_time > 0) {
>                     my $node_attributes = node_attributes($mac);
>                     if (defined $node_attributes->{'time_balance'}) {
>                         my $time_balance =
> $node_attributes->{'time_balance'} - $session_time;
>                         $time_balance = 0 if ($time_balance < 0);
>                         # Only update the node table on a Stop
>                         if ($isStop && node_modify($mac, ('time_balance'
> => $time_balance))) {
>                             $logger->info("Session stopped: duration was
> $session_time secs ($time_balance secs left)");
>                         }
>                         elsif ($isUpdate) {
>                             $logger->info("Session status: duration is
> $session_time secs ($time_balance secs left)");
>                         }
>                         if ($time_balance == 0) {
>                             # Trigger violation
>                             violation_trigger($mac,
> $ACCOUNTING_POLICY_TIME, $TRIGGER_TYPE_ACCOUNTING);
>                         }
>                     }
>                 }
>            }
>        }
> 
> Regards
> Fabrice
> 
> Le 2016-02-16 04:06, Bebbet van Dinges a écrit :
> Hello,
> 
> We are implementing PacketFence and its running quite fine! Easy (once
> you get the hang of it..).
> 
> I do somehow get a lot of errors about AAA Acounting:
> 
> Feb 16 09:41:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:42:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:43:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:44:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:45:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:46:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:47:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:48:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:49:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:50:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> Feb 16 09:51:54 httpd.aaa(26439) WARN: [mac:d8:cb:8a:85:20:2d] Use of
> uninitialized value in int at /usr/local/pf/lib/pf/radius.pm line 313.
>  (pf::radius::accounting)
> 
> 
> Anyone got a clue why these come up (or how to fix it), and only on
> this switch (HP 2530-8-PoEP Switch (J9780A), FW: YB.15.12.0006, ROM
> YB.15.04) other hp switches we configured (about 10) do not have these
> problems.
> 
> Yours sincerely,
> Bebbet
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>>
>>
>> _______________________________________________
>> PacketFence-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
> 
> 
> 
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> 
> 
> 
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
> 


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to