From b09c299fa018010b126fb203e6b71fef69573cb0 Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Sat, 23 Nov 2024 19:14:50 -0600 Subject: [PATCH] add last_seen_string for nextcloud user info --- snmp/nextcloud | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/snmp/nextcloud b/snmp/nextcloud index e7d648737..6d0d231e5 100644 --- a/snmp/nextcloud +++ b/snmp/nextcloud @@ -237,13 +237,14 @@ foreach my $user (@users) { } } ## end else [ if ( $last_seen eq '1970-01-01T00:00:00+00:00')] $tojson{users}{$user} = { - 'free' => $user_info->{storage}{free}, - 'quota' => $user_info->{storage}{quota}, - 'relative' => $user_info->{storage}{relative}, - 'total' => $user_info->{storage}{total}, - 'used' => $user_info->{storage}{used}, - 'last_seen' => $last_seen, - 'calendars' => 0, + 'free' => $user_info->{storage}{free}, + 'quota' => $user_info->{storage}{quota}, + 'relative' => $user_info->{storage}{relative}, + 'total' => $user_info->{storage}{total}, + 'used' => $user_info->{storage}{used}, + 'last_seen' => $last_seen, + 'last_seen_string' => $user_info->{last_seen}, + 'calendars' => 0, }; $tojson{free} = $user_info->{storage}{free}; $tojson{used} = $tojson{used} + $user_info->{storage}{used};