Hi, we have update time format to YMD and FlowMonitor stopped working. After some debigging we discovered that the differnet time format seems not managed since at one point in FlowMonitor_Recreate is set date as 01/01/2000 so in fixed format.
We applied the following patch and started working fine: diff -Nuar FlowMonitor_Recreate FlowMonitor_Recreate.new --- FlowMonitor_Recreate 2015-11-06 14:59:12.834121526 +0100 +++ FlowMonitor_Recreate.new 2015-11-06 15:03:51.086052732 +0100 @@ -681,9 +681,25 @@ if ($IPFIX) { open (FILTER,">$filter_file") || die "cannot open Filter file for write: $filter_file"; } else { - $FORM{start_date} = "01/01/2000"; + + #MDY=MM/DD/YYYY DMY=DD/MM/YYYY DMY2=DD.MM.YYYY YMD=YYYY-MM-DD + if ($date_format eq "MDY") { + $FORM{start_date} = "01/01/2000"; + $FORM{end_date} = "01/01/2000"; + } elsif ($date_format eq "DMY") { + $FORM{start_date} = "01/01/2000"; + $FORM{end_date} = "01/01/2000"; + } elsif ($date_format eq "DMY2") { + $FORM{start_date} = "2000.01.01"; + $FORM{end_date} = "2000.01.01"; + } elsif ($date_format eq "YMD") { + $FORM{start_date} = "2000-01-01"; + $FORM{end_date} = "2000-01-01"; + } else { + $FORM{start_date} = "01/01/2000"; + $FORM{end_date} = "01/01/2000"; + } $FORM{start_time} = "00:00:00"; - $FORM{end_date} = "01/01/2000"; $FORM{end_time} = "00:00:00"; create_filter_file (%FORM, $filter_file); }
We were missing some importan configuration part, or this is a bug that can be solved in next release? Thanks ...
Dario Abruzzo Matthieu Subrin
Hi, me again... same problem for file: FlowMonitor_Main.cgi
Log in to post a comment.
Hi,
we have update time format to YMD and FlowMonitor stopped working.
After some debigging we discovered that the differnet time format seems not managed since at one point in FlowMonitor_Recreate is set date as 01/01/2000 so in fixed format.
We applied the following patch and started working fine:
diff -Nuar FlowMonitor_Recreate FlowMonitor_Recreate.new
--- FlowMonitor_Recreate 2015-11-06 14:59:12.834121526 +0100
+++ FlowMonitor_Recreate.new 2015-11-06 15:03:51.086052732 +0100
@@ -681,9 +681,25 @@
if ($IPFIX) {
open (FILTER,">$filter_file") || die "cannot open Filter file for write: $filter_file";
} else {
- $FORM{start_date} = "01/01/2000";
+
+ #MDY=MM/DD/YYYY DMY=DD/MM/YYYY DMY2=DD.MM.YYYY YMD=YYYY-MM-DD
+ if ($date_format eq "MDY") {
+ $FORM{start_date} = "01/01/2000";
+ $FORM{end_date} = "01/01/2000";
+ } elsif ($date_format eq "DMY") {
+ $FORM{start_date} = "01/01/2000";
+ $FORM{end_date} = "01/01/2000";
+ } elsif ($date_format eq "DMY2") {
+ $FORM{start_date} = "2000.01.01";
+ $FORM{end_date} = "2000.01.01";
+ } elsif ($date_format eq "YMD") {
+ $FORM{start_date} = "2000-01-01";
+ $FORM{end_date} = "2000-01-01";
+ } else {
+ $FORM{start_date} = "01/01/2000";
+ $FORM{end_date} = "01/01/2000";
+ }
$FORM{start_time} = "00:00:00";
- $FORM{end_date} = "01/01/2000";
$FORM{end_time} = "00:00:00";
create_filter_file (%FORM, $filter_file);
}
We were missing some importan configuration part, or this is a bug that can be solved in next release?
Thanks ...
Dario Abruzzo
Matthieu Subrin
Hi,
me again... same problem for file:
FlowMonitor_Main.cgi
Dario Abruzzo
Matthieu Subrin