This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
Contributions / Tips&Tricks / Features Requests / 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"
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"
2
Other modules / cron.hourly exiting with return code 25 Zentyal V5.1.1
« on: May 29, 2018, 07:23:56 pm »
run-parts --report /etc/cron.hourly
/etc/cron.hourly/90zentyal-manage-logs:
Can't locate object method "throw" via package "Can't locate object method "tableInfo" via package "EBox::AntiVirus" at /usr/share/perl5/EBox/Logs.pm line 321.
" (perhaps you forgot to load "Can't locate object method "tableInfo" via package "EBox::AntiVirus" at /usr/share/perl5/EBox/Logs.pm line 321.
"?) at /usr/share/zentyal/manage-logs line 31.
run-parts: /etc/cron.hourly/90zentyal-manage-logs exited with return code 25
I would be interested if this means something to those 'perl' experts
/etc/cron.hourly/90zentyal-manage-logs:
Can't locate object method "throw" via package "Can't locate object method "tableInfo" via package "EBox::AntiVirus" at /usr/share/perl5/EBox/Logs.pm line 321.
" (perhaps you forgot to load "Can't locate object method "tableInfo" via package "EBox::AntiVirus" at /usr/share/perl5/EBox/Logs.pm line 321.
"?) at /usr/share/zentyal/manage-logs line 31.
run-parts: /etc/cron.hourly/90zentyal-manage-logs exited with return code 25
I would be interested if this means something to those 'perl' experts

3
Other modules / I would like to know where the Network/Objects are stored?
« on: April 21, 2017, 11:54:47 am »
I am running 4.25 (still on Ubuntu 14.04LTS)
I keep a Network Object list of Banned IP's from mail spammers that try and use us either to send spam or relay. Those servers that continually fail SASL login or use false FQDN get added to this list weekly. A little like Fail2Ban (but I haven't got that to work yet
)
Can anyone point me to how Zentyal generates this list of objects when selected through the WEB GUI interface where I can add, delete or modify them. I cannot find any text file or SQL table where they are stored and am not Perl savvy enough to work out the code.
Your help would be most appreciated.
Thank you
I keep a Network Object list of Banned IP's from mail spammers that try and use us either to send spam or relay. Those servers that continually fail SASL login or use false FQDN get added to this list weekly. A little like Fail2Ban (but I haven't got that to work yet

Can anyone point me to how Zentyal generates this list of objects when selected through the WEB GUI interface where I can add, delete or modify them. I cannot find any text file or SQL table where they are stored and am not Perl savvy enough to work out the code.
Your help would be most appreciated.
Thank you
Pages: [1]