From c9759e1d7ce4d6aba30062765c0e2553932151d8 Mon Sep 17 00:00:00 2001
From: edileuton <edileuton@gmail.com>
Date: Wed, 29 Jan 2014 11:18:48 -0200
Subject: [PATCH] agent: Fix possible conflict with proinfodata agent

Signed-off-by: edileuton <edileuton@gmail.com>
---
 agent/bin/datasid-netmon.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/agent/bin/datasid-netmon.sh b/agent/bin/datasid-netmon.sh
index 9856446..4e0f356 100755
--- a/agent/bin/datasid-netmon.sh
+++ b/agent/bin/datasid-netmon.sh
@@ -113,12 +113,12 @@ if test $? -ne 0; then exit 2; fi
 check_traffic_date
 if test $? -ne 0; then exit 3; fi
 
-INPUT_COUNT=$(sudo $IPTABLES -nvxL INPUT | grep INPUT_COUNTS | \
+INPUT_COUNT=$(sudo $IPTABLES -nvxL INPUT | grep DS_INPUT_COUNTS | \
               awk 'BEGIN{pkts=0; bytes=0} \
                    {pkts+=$1; bytes+=$2} \
                    END{print pkts,bytes}')
 
-OUTPUT_COUNT=$(sudo $IPTABLES -nvxL OUTPUT | grep OUTPUT_COUNTS | \
+OUTPUT_COUNT=$(sudo $IPTABLES -nvxL OUTPUT | grep DS_OUTPUT_COUNTS | \
                awk 'BEGIN{pkts=0; bytes=0} \
                     {pkts+=$1; bytes+=$2} \
                     END{print pkts,bytes}')
@@ -133,9 +133,9 @@ echo "$INTERVALID $INPUT_COUNT $OUTPUT_COUNT" >> $TRAFFIC
 if test -f "$INTERFACES"; then
     while IFS=$' ' read -a net; do
         sudo $IPTABLES -D INPUT -i ${net[0]} ! -s ${net[1]} -m comment \
-             --comment INPUT_COUNTS 2>/dev/null
+             --comment DS_INPUT_COUNTS 2>/dev/null
         sudo $IPTABLES -D OUTPUT -o ${net[0]} ! -d ${net[1]} -m comment \
-             --comment OUTPUT_COUNTS 2>/dev/null
+             --comment DS_OUTPUT_COUNTS 2>/dev/null
     done < $INTERFACES
 fi
 
@@ -154,7 +154,7 @@ done
 # Insert new rules
 while IFS=$' ' read -a net; do
     sudo $IPTABLES -I INPUT -i ${net[0]} ! -s ${net[1]} -m comment \
-         --comment INPUT_COUNTS
+         --comment DS_INPUT_COUNTS
     sudo $IPTABLES -I OUTPUT -o ${net[0]} ! -d ${net[1]} -m comment \
-         --comment OUTPUT_COUNTS
+         --comment DS_OUTPUT_COUNTS
 done < $INTERFACES
-- 
GitLab