Author Topic: Suggestion to improve output of smart-admin-report  (Read 3467 times)

scottdr

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +6/-0
  • Zentyal community edition 7.1.2
    • View Profile
Suggestion to improve output of smart-admin-report
« 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"

« Last Edit: April 10, 2020, 02:42:08 pm by scottdr »

webmaster

  • Zentyal Staff
  • Zen Apprentice
  • *****
  • Posts: 32
  • Karma: +2/-1
    • View Profile
Re: Suggestion to improve output of smart-admin-report
« Reply #1 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,

webmaster

  • Zentyal Staff
  • Zen Apprentice
  • *****
  • Posts: 32
  • Karma: +2/-1
    • View Profile
Re: Suggestion to improve output of smart-admin-report
« Reply #2 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.