Zentyal Forum, Linux Small Business Server

Zentyal Server => Contributions / Tips&Tricks / Features Requests => Topic started by: scottdr on April 09, 2020, 11:53:23 am

Title: Suggestion to improve output of smart-admin-report
Post by: scottdr on April 09, 2020, 11:53:23 am
Thanks to Zentyal briefing to use this feature in the Community version.

Suggested updates to /usr/share/zentyal/smart-admin-report: -

########
## Server packages
########

Issue, the report states that there are 1 upgradable packages available when there is no packages in that state.

Line 140: Change "apt list --upgradable 2> /dev/null | wc -l" to "apt list --upgradable 2> /dev/null|awk '{if(NR>1)print}' | wc -l"


###################
# Antivirus module #
###################

Issue, Last ClamAV database update: the output is blank

Line 387  change "grep 'Database updated' /var/log/clamav/freshclam.log | tail -1 | awk '{print $1,$2,$3,$4,$5}'" to "clamscan --version |  awk '{split($0,a,"/");print a[3]}'"

This will detail the database date of the current signatures.

Tested successfully on Zentyal Community Edition Version 6.1.2 running on Ubuntu Linux 18.04.3, running as a VM on Hyper-V.

Added 10-Apr-2020

Line 142 Change "grep -ai zentyal-auto-updater /var/log/syslog | awk '{print $1,$2,$3}' | tail -1" to "grep -ai auto-updater /var/log/syslog | awk '{print $1,$2,$3}' | tail -1"

Line 144 Change "        grep -ai zentyal-auto-updater /var/log/syslog.1 | awk '{print $1,$2,$3}' | tail -1" to "        grep -ai auto-updater /var/log/syslog.1 | awk '{print $1,$2,$3}' | tail -1"

Title: Re: Suggestion to improve output of smart-admin-report
Post by: webmaster on April 09, 2020, 02:17:59 pm
Thanks for the feedback! Just to let you know that your feedback has been forwarded to the Development Team. Best regards,
Title: Re: Suggestion to improve output of smart-admin-report
Post by: webmaster on April 16, 2020, 10:30:35 am
Just to confirm that the suggestions have been accepted and will be fixed as soon as possible.