Skip to content

Commit

Permalink
remove traplog table
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Jan 11, 2017
1 parent 1748fec commit 3039aeb
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 84 deletions.
12 changes: 0 additions & 12 deletions conf/documentation.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1615,18 +1615,6 @@ description=<<EOT
How long an auth_log cleanup job can take before being killed
EOT

[maintenance.traplog_cleanup_window]
type=time
description=<<EOT
How long to keep a traplog entry before deleting it
EOT

[maintenance.traplog_cleanup_interval]
type=time
description=<<EOT
At which interval to run the traplog cleanup job
EOT

[maintenance.radius_audit_log_cleanup_window]
type=time
description=<<EOT
Expand Down
10 changes: 0 additions & 10 deletions conf/pf.conf.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -1247,16 +1247,6 @@ auth_log_cleanup_batch=100
# How long an auth_log cleanup job can take before being killed
auth_log_cleanup_timeout=10s
#
# maintenance.traplog_cleanup_window
#
# How long to keep a traplog entry before deleting it
traplog_cleanup_window=1W
#
# maintenance.traplog_cleanup_interval
#
# At which interval to run the traplog cleanup job
traplog_cleanup_interval=60s
#
# maintenance.radius_audit_log_cleanup_window
#
# How long to keep a radius_audit_log entry before deleting it
Expand Down
9 changes: 0 additions & 9 deletions db/pf-schema-X.Y.Z.sql
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,6 @@ CREATE TABLE `ifoctetslog` (
PRIMARY KEY (`switch`,`port`,`read_time`)
) ENGINE=InnoDB;

CREATE TABLE `traplog` (
`switch` varchar(30) NOT NULL default '',
`ifIndex` smallint(6) NOT NULL default '0',
`parseTime` datetime NOT NULL default '0000-00-00 00:00:00',
`type` varchar(30) NOT NULL default '',
KEY `switch` (`switch`,`ifIndex`),
KEY `parseTime` (`parseTime`)
) ENGINE=InnoDB;

--
-- Table structure for table `password`
--
Expand Down
16 changes: 0 additions & 16 deletions html/pfappserver/lib/pfappserver/I18N/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,6 @@ msgstr ""
msgid "At which interval to run the radius audit log cleanup job"
msgstr ""

# conf/documentation.conf (maintenance.traplog_cleanup_interval)
msgid "At which interval to run the traplog cleanup job"
msgstr ""

# html/pfappserver/lib/pfappserver/Form/Config/Authentication/Source/SAML.pm
msgid "Attribute of the username in the SAML response"
msgstr ""
Expand Down Expand Up @@ -2871,10 +2867,6 @@ msgstr ""
msgid "How long to keep a radius audit log entry before deleting it"
msgstr ""

# conf/documentation.conf (maintenance.traplog_cleanup_window)
msgid "How long to keep a traplog entry before deleting it"
msgstr ""

# conf/documentation.conf (maintenance.auth_log_cleanup_window)
msgid "How long to keep an auth_log entry before deleting it"
msgstr ""
Expand Down Expand Up @@ -9288,14 +9280,6 @@ msgstr "RADIUS Audit Log Cleanup Timeout"
msgid "maintenance.radius_audit_log_cleanup_window"
msgstr "RADIUS Audit Log Cleanup Window"

# conf/documentation.conf
msgid "maintenance.traplog_cleanup_interval"
msgstr "Traplog Cleanup Interval"

# conf/documentation.conf
msgid "maintenance.traplog_cleanup_window"
msgstr "Traplog Cleanup Window"

# conf/documentation.conf
msgid "maintenance.violation_maintenance_batch"
msgstr "Violation Maintenance Batch"
Expand Down
16 changes: 0 additions & 16 deletions html/pfappserver/lib/pfappserver/I18N/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -790,10 +790,6 @@ msgstr "Fréquence de nettoyage du journal de locationlog"
msgid "At which interval to run the radius audit log cleanup job"
msgstr "Fréquence de nettoyage de l’audit de radius"

# conf/documentation.conf (maintenance.traplog_cleanup_interval)
msgid "At which interval to run the traplog cleanup job"
msgstr "Fréquence de nettoyage de traplog"

# html/pfappserver/lib/pfappserver/Form/Config/Authentication/Source/SAML.pm
msgid "Attribute of the username in the SAML response"
msgstr "Attribut du nom d’utilisateur dans la réponse SAML"
Expand Down Expand Up @@ -3063,10 +3059,6 @@ msgstr "Combien de temps garder un appareil avant de la supprimer"
msgid "How long to keep a radius audit log entry before deleting it"
msgstr "Combien de temps garder une entrée de radius audit log avant de la supprimer"

# conf/documentation.conf (maintenance.traplog_cleanup_window)
msgid "How long to keep a traplog entry before deleting it"
msgstr "Combien de temps garder une entrée de traplog avant de la supprimer"

# conf/documentation.conf (maintenance.auth_log_cleanup_window)
msgid "How long to keep an auth_log entry before deleting it"
msgstr "Garder combien de temps garder une entrée du journal d’authentification avant de la supprimer"
Expand Down Expand Up @@ -9911,14 +9903,6 @@ msgstr "Temps maximum du nettoyage du journal d’audit RADIUS"
msgid "maintenance.radius_audit_log_cleanup_window"
msgstr "Plage horaire de nettoyage du journal d’audit RADIUS"

# conf/documentation.conf
msgid "maintenance.traplog_cleanup_interval"
msgstr "Fréquence de nettoyage du Traplog"

# conf/documentation.conf
msgid "maintenance.traplog_cleanup_window"
msgstr "Plage horaire de nettoyage du Traplog"

# conf/documentation.conf
msgid "maintenance.violation_maintenance_batch"
msgstr "Nombre d’entrées à nettoyer dans les violations"
Expand Down
4 changes: 0 additions & 4 deletions html/pfappserver/lib/pfappserver/I18N/packetfence.pot
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,6 @@ msgstr ""
msgid "expire.iplog"
msgstr ""

#: conf/pf.conf.defaults:534
msgid "expire.traplog"
msgstr ""

#: conf/pf.conf.defaults:544
msgid "expire.locationlog"
msgstr ""
Expand Down
9 changes: 0 additions & 9 deletions sbin/pfmon
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ use pf::auth_log;
use pf::node;
use pf::db;
use pf::services;
use pf::traplog;
use pf::util;
use pf::services::util;
use pf::violation qw(violation_maintenance);
Expand Down Expand Up @@ -234,14 +233,6 @@ sub registertasks {
}
) if ( isenabled($Config{'maintenance'}{'person_cleanup'}) );

register_task(
'traplog cleanup',
'traplog_cleanup_interval',
sub {
traplog_cleanup( $Config{'maintenance'}{'traplog_cleanup_window'} );
}
) if ( $Config{'maintenance'}{'traplog_cleanup_window'} );

register_task(
'checking registered nodes for expiration',
'nodes_maintenance_interval',
Expand Down
6 changes: 0 additions & 6 deletions sbin/pfsetvlan
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ use pf::Switch 2.00;
use pf::Switch::constants;
use pf::SwitchFactory;

use pf::traplog;
use pf::util;
use pf::config::util;
use pf::services::util;
Expand Down Expand Up @@ -502,11 +501,6 @@ sub signalHandlerTrapListQueued {
"added trap $trapType at $switch_id ifindex $switch_port to queued threadList"
);

traplog_insert( $switch_id, $switch_port,
$trapType );
$lockLogger->trace(
"locking - sending signal for threadList_queued in signalHanderTrapListQueued"
);
cond_signal(@threadList_queued);
}
}
Expand Down
2 changes: 0 additions & 2 deletions t/dao/data.t
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ BEGIN {
use_ok('pf::person');
use_ok('pf::scan');
use_ok('pf::switchlocation');
use_ok('pf::traplog');
use_ok('pf::trigger');
use_ok('pf::useragent');
use_ok('pf::violation');
Expand All @@ -74,7 +73,6 @@ my @data_modules = qw(
pf::person
pf::scan
pf::switchlocation
pf::traplog
pf::trigger
pf::useragent
pf::violation
Expand Down

0 comments on commit 3039aeb

Please sign in to comment.