GUI showing clamav is down, but it works

Hi,
I have strange problem and I can’t solve it. In GUI Configuration clamav-daemon is marked as down with red color, but if I check service status I can see is working.

systemctl status clamav-daemon
● clamav-daemon.service - Clam AntiVirus userspace daemon
     Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/clamav-daemon.service.d
             └─extend.conf
     Active: active (running) since Fri 2023-01-13 04:00:24 CET; 9h ago
       Docs: man:clamd(8)
             man:clamd.conf(5)
             https://docs.clamav.net/
    Process: 767 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS)
    Process: 794 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
   Main PID: 796 (clamd)
      Tasks: 2 (limit: 9442)
     Memory: 1.6G
     CGroup: /system.slice/clamav-daemon.service
             └─796 /usr/sbin/clamd --foreground=true

I can restart service from GUI, but still showing red as down.

v-list-sys-services and post the output…

Here it is:

NAME           STATE    CPU  MEM   UPTIME
----           -----    ---  ---   ------
apache2        running  0    773   543
php7.3-fpm     running  0    8     205
php7.4-fpm     running  0    8     205
php8.0-fpm     running  0    8     205
nginx          running  0.1  44    626
bind9          running  0    143   626
exim4          running  0    5     205
dovecot        running  0    0     205
clamav-daemon  stopped  0    0     0
spamassassin   running  0    298   205
mariadb        running  0.1  2803  205
vsftpd         running  0    0     205
cron           running  0    0     205
ssh            running  0    3     205
iptables       running  0    0     0
fail2ban       running  0.2  151   626

What OS are you using?

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"

Any idea about this issue?

No no idea…

This is the code that checks it…