Keep old log Monitoring XML generation
This commit is contained in:
parent
cdb02a32a2
commit
ebff3ff753
|
@ -3678,6 +3678,26 @@ sub write_module_xml ($@) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Is it an extraction log module?
|
||||||
|
if($module->{'type'} eq "log"){
|
||||||
|
$Xml .="<log_module>\n";
|
||||||
|
$Xml .= " <source><![CDATA[" . $module->{'name'} . "]]></source>\n";
|
||||||
|
$Xml .= " <type><![CDATA[" . $module->{'type'} . "]]></type>\n";
|
||||||
|
$Xml .= " <encoding>base64</encoding>\n";
|
||||||
|
|
||||||
|
# Data list
|
||||||
|
if ($#data > 0) {
|
||||||
|
$Xml .= " <data><![CDATA[" . join('', @data) . "]]></data>\n";
|
||||||
|
# Single data
|
||||||
|
} else {
|
||||||
|
chomp ($data[0]);
|
||||||
|
$Xml .= " <data><![CDATA[$data[0]]]></data>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
$Xml .= "</log_module>\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
# Critical section
|
# Critical section
|
||||||
$Sem->down () if (defined ($Sem));
|
$Sem->down () if (defined ($Sem));
|
||||||
|
|
||||||
|
@ -3685,9 +3705,7 @@ sub write_module_xml ($@) {
|
||||||
" <name><![CDATA[" . $module->{'name'} . "]]></name>\n" .
|
" <name><![CDATA[" . $module->{'name'} . "]]></name>\n" .
|
||||||
" <description><![CDATA[" . $module->{'description'} . "]]></description>\n" .
|
" <description><![CDATA[" . $module->{'description'} . "]]></description>\n" .
|
||||||
" <type>" . $module->{'type'} . "</type>\n";
|
" <type>" . $module->{'type'} . "</type>\n";
|
||||||
|
|
||||||
$Xml .= " <encoding>base64</encoding>\n" if($module->{'type'} eq "log");
|
|
||||||
|
|
||||||
# Interval
|
# Interval
|
||||||
$Xml .= " <module_interval>" . $module->{'interval'} . "</module_interval>\n";
|
$Xml .= " <module_interval>" . $module->{'interval'} . "</module_interval>\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue