mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
clamav-daemon check
This commit is contained in:
parent
f4a45e7ce2
commit
c831613bec
1 changed files with 10 additions and 3 deletions
|
@ -117,10 +117,17 @@ fi
|
||||||
# ANTIVIRUS
|
# ANTIVIRUS
|
||||||
service=$ANTIVIRUS_SYSTEM
|
service=$ANTIVIRUS_SYSTEM
|
||||||
if [ ! -z "$service" ] && [ "$service" != 'no' ]; then
|
if [ ! -z "$service" ] && [ "$service" != 'no' ]; then
|
||||||
if [ "$ANTIVIRUS_SYSTEM" = 'clamav' ]; then
|
if [ -e "/etc/redhat-release" ]; then
|
||||||
service='clamd'
|
if [ "$ANTIVIRUS_SYSTEM" = 'clamav' ];then
|
||||||
|
service='clamd'
|
||||||
|
fi
|
||||||
|
get_srv_state $service
|
||||||
|
else
|
||||||
|
if [ "$ANTIVIRUS_SYSTEM" = 'clamav-daemon' ];then
|
||||||
|
clam_proc_name='clamd'
|
||||||
|
fi
|
||||||
|
get_srv_state $service $clam_proc_name
|
||||||
fi
|
fi
|
||||||
get_srv_state $service
|
|
||||||
str="$str\nNAME='$service' SYSTEM='email antivirus' STATE='$state'"
|
str="$str\nNAME='$service' SYSTEM='email antivirus' STATE='$state'"
|
||||||
str="$str CPU='$cpu' MEM='$mem' RTIME='$rtime'"
|
str="$str CPU='$cpu' MEM='$mem' RTIME='$rtime'"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue