manpage of afick_learn

NAME

afick_learn - a tool to learn from log and adapt Afick's configuration

DESCRIPTION

afick_learn the main idea is to have a customized configuration to avoid any dummy warning : the default configuration is to be adapted, but do it may be painful if the afick output is big. So, this tool will learn from detected changes and modify configuration to suppress some fields. It works only from from 'changed' lines in afick logs : the "new" and "deleted" lines are ignored.

Attributes changes are removed from afick config : if you have a rule such "foo md5+p+u+g" and afick log show an md5 change, afick_learn will change the rule into "foo p+u+g"

if the log show show the change of all asked attributes, the file is excluded

SYNOPSIS

afick_learn.pl [options]

REQUIRED ARGUMENTS

the output format

OPTIONS

options are used to control afick_learn

--help|-h

Output help information and exit.

--man

Output full help information and exit.

--version|-V

Output version information and exit.

--verbose|-v

add debugging messages

--log_file|-l logfile

full name to the afick's log file to learn from

--config_file|-c configfile

read and apply changes in config file named "configfile".

--interactive|-i

ask user to confirm before any change in configuration file

--dry-run|-n

dry-run mode : show what would be changed but do not apply changes

--save|-s

save configuration file before any changes. The saved file as the same name with a date suffix .yyyymmdd_hhmmss

USAGE

afick_learn.pl -l /var/log/afick/afick.log -c /etc/afick.conf

NOTES

this program only use perl and its standard modules.

SEE ALSO

afick.conf(5) for the configuration file syntax


afick-tk(1) for the graphical interface


afick(1) for the command-line interface


afickonfig(1) for a tool to change afick's configuration file


afick_archive(1) for a tool to manage archive's reports


afick_learn(1) for a learning tool

DIAGNOSTICS

the input format is analysed and we display some warnings if it does not match what we are waiting for

EXIT STATUS

0 if all is ok

CONFIGURATION

configuration file will be

DEPENDENCIES

perl, afick common library

INCOMPATIBILITIES

none

BUGS AND LIMITATIONS

input format can be txt or html, not xml output format can be txt, html, or xml

LICENSE AND COPYRIGHT

Copyright (c) 2002 Eric Gerbier All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

AUTHOR

Eric Gerbier

you can report any bug or suggest to gerbier@users.sourceforge.net

 manpage of afick_learn