Portál AbcLinuxu, 12. května 2025 08:55
Zdravím upgradoval jsem sagator na verzi 1.2.0beta26 (kvůli clamavu) instalace proběhla na oko bez problému avšak když jsem zkoušel poslat zprávu v mail.log se objevilo
connect to 127.0.0.1[127.0.0.1]:27: Connection refused
tudíž jsem nahlédl do logu sagatoru v němž bylo
2201: SAGATOR 1.2.0-0.beta26 starting at Sat May 23 09:35:49 2009
2203: collector(): service started, waiting for connections ... [2203]
Traceback (most recent call last):
File "/usr/sbin/sagator", line 150, in <module>
pids=srv.start()
File "/usr/share/sagator/aglib.py", line 96, in start
self.test_scanners(self.SCANNERS)
File "/usr/share/sagator/aglib.py", line 76, in test_scanners
scnr.reinit()
File "/usr/share/sagator/interscan/match.py", line 54, in reinit
scnr.reinit()
File "/usr/share/sagator/interscan/match.py", line 54, in reinit
scnr.reinit()
File "/usr/share/sagator/interscan/match.py", line 54, in reinit
scnr.reinit()
File "/usr/share/sagator/interscan/match.py", line 54, in reinit
scnr.reinit()
File "/usr/share/sagator/interscan/match.py", line 54, in reinit
scnr.reinit()
File "/usr/share/sagator/avlib.py", line 1070, in reinit
self.scanner.reinit()
File "/usr/share/sagator/avir/clamav.py", line 199, in reinit
self.av.setlimits(self.limits)
File "/usr/share/sagator/avir/libclamav/libso6.py", line 169, in setlimits
eval("CL_ENGINE_%s" % key.upper()),
File "<string>", line 1, in <module>
NameError: name 'CL_ENGINE_MAXRATIO' is not defined
Nevíte v čem by mohl být problém? Díky.
CL_ENGINE_MAXRATIO v ./avir/libclamav/const6.py neexistuje. Zkus v /usr/share/sagator/avir/libclamav/libso6.py odkomentovat řádky:
155 #if key in ['maxratio']: 156 # break # ignore obsolete limits
Pak se tento klíč přeskočí.
Zkusil jsem a funguje díky moc. Ještě jsem si všiml že sagator dost vytěžuje CPU.
Ještě přihodím "čistší" řešení přímo od SALa, které řeší i tu zátěž cpu.
V konfiguracii sagator.conf mas niekde uvedene:
limits={'maxratio': 9999},
Ak pouzivas clamav-0.95+, tak tento parameter uz nema, takze ho musis v
konfiguracii sagator.conf vynechat. Buhuzial starsie clamavy mali chybu,
ktora sposobovala niekedy falosne identifikacie virusov, ak tento parameter
nebol zapnuty.
sagator-1.2.0-0rc1 uz vypise v logu spravnu hlasku:
7790: WARNING: name 'CL_ENGINE_MAXRATIO' is not defined [limits={'maxratio': 250}]: Please update your sagator.conf, remove clamav options, which are not supported by you clamav installation.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.