Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAVP - Problem virus not alert but detect

    pfSense Packages
    1
    2
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eznode
      last edited by

      Hi guys , what my problem if

      Havp detect test virus -http://www.eicar.org/download/eicar_com.zip

      but not show how many virus detect ..

      if(preg_match("/^2.0/",$pfSversion))
      define('PATH_HAVPLOG', '/var/log/havp/access.log');
      else
      define('PATH_HAVPLOG', '/var/log/access.log');

      function dwg_av_statistic()
      {
      $s = "Unknown.";
      if (file_exists(PATH_HAVPLOG)) {
      $log = file_get_contents(PATH_HAVPLOG);

      $count = substr_count(strtolower($log), "virus clamd:");
      $s = "Found $count viruses (total).";

      No log … but it detect virus .

      1 Reply Last reply Reply Quote 0
      • E
        eznode
        last edited by

        https://forum.pfsense.org/index.php?topic=18714.msg96295#msg96295

        same probem with me  , but still no solution . btw after restart it will be false again . and my will be like this
        "can't connect to clamd: No such file or directory"

        i fix using this

        mkdir /var/run/clamav
        ln -s /var/run/clamd.pid /var/run/clamav/clamd.pid
        ln -s /var/run/clamd.sock /var/run/clamav/clamd.sock

        every reboot

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.