Man page - nagexp(3)

Packages contas this manual

Manual

nagexp(3) User Contributed Perl Documentation nagexp(3)

nagexp - create export of your nagios installation used for later import in OMD

  Usage: nagexp [options] <nagios.cfg>
  Options:
  -h, --help                    Show this help message and exit
  -v, --verbose                 Print verbose output
  -V, --version                 Print version
  -f, --file                    export output file
  -a, --all                     export all types, synonym for -pclAs
  -s, --status                  export status files
  -p, --plugins                 export plugins
  -c, --config                  export config files
  -l, --logfile                 export current logfile
  -A, --archive                 export logfile archive

This script exports your nagios installation for later import in OMD.

nagexp has the following arguments:

    print help and exit
    
    print verbose output too
    
    print version and exit
    
    export file. Will generate a generic filename like
    export-2012-11-08.tgz otherwise.
    
    export all types, synonym for -pclAs
    
    export status files like status.dat and retention.dat.
    
    export plugins. Export will contain the complete folder for found plugins.
    
    export config files. This will contain config object configuration and
    general config files like resource.cfg.
    
    export logfile
    
    export logfile archive
    

returns 0 on successful export or number of errors otherwise

export everything

  %> nagexp -a -f /tmp/export.tgz /etc/nagios3/nagios.cfg

export everything except logfile archive

  %> nagexp -lpc /etc/nagios3/nagios.cfg

Sven Nierlein, 2009-present, <sven@nierlein.org>

2026-02-06 perl v5.40.1