Fixed permissions over snmp IDX file

This commit is contained in:
fbsanchez 2016-10-31 12:36:54 +01:00
parent e559937697
commit 0df53387a1

View File

@ -152,6 +152,7 @@ sub data_producer ($) {
open INDEXFILE, '>' . $IDX_FILE;
print INDEXFILE $LAST_LINE . ' ' . $LAST_SIZE;
close INDEXFILE;
set_file_permissions($pa_config, $IDX_FILE, "0666");
# Skip lines other than SNMP Trap logs
next unless ($line =~ m/^SNMPv[12]\[\*\*\]/);