Explication

Le module Simple-log permet d'enregistrer les logs dans un fichier. Il est possible de modifier des paramètres (chemins) via le fichier de configuration ci-dessous.

Configuration

Voici le fichier CFG de configuration présent dans : /etc/shinken/modules/simple-log.cfg

#===============================================================================
# Simple-log
#===============================================================================
# Daemons that can load this module:
# - broker
# This module save logs into a file
#===============================================================================


define module {

# Shinken Enterprise. Lines added by import core. Do not remove it, it's used by Shinken Enterprise to update your objects if you re-import them.
    _SE_UUID             core-module-4cd8dc6c5adc11e586ab080027f08538
    _SE_UUID_HASH        c99ca416913bec3883fa91df6b0c2f67
# End of Shinken Enterprise part


    #======== Module identity =========
    # Module name. Must be unique
    module_name             Simple-log

    # Module type (to load module code). Do not edit.
    module_type             simple-log



    #======== File path =========
    # path: where to save the log
    path                    /var/log/shinken/shinken.log
    nagios_export_path      /var/log/shinken/nagios_export.log

    # archive_path: directory where to archive old log files
    archive_path            /var/log/shinken/archives/

}


  • No labels