naglint(3)

NAME
naglint - beautify nagios config files

SYNOPSIS
Usage: naglint [options] <file> [<files...>]

Options:
  -h, --help Show this help message and exit
  -v, --verbose Print verbose output
  -V, --version Print version
  -i replace content inline instead of printing to stdout
  -r read directories recursivly
  -c, --core core type can be nagios, icinga or shinken. Will be
                        autodetected unless specified.

DESCRIPTION
This script beautifies nagios config files.

  - clean whitespace
  - clean indention
  - remove deprecated attributes
  - validate duplicate or invalid attributes
  - break long command lines into shorter pieces
  - sort attributes naturally

OPTIONS
naglint has the following arguments:

-h , --help
        print help and exit

-v , --verbose
        print verbose output too

-V , --version
        print version and exit

-c , --core
        use specific config type. can be 'nagios', 'icinga' or 'shinken'.
        enables core type specific attributes. Will be autodetected unless
        specified.

-i
        edit given files inline and overwrite them with their beautified objects

-r
        read directories recursivly

RETURN VALUE
returns 0 on success or number of errors otherwise

EXAMPLES
Beautify single config file

  %> naglint objects.cfg > beauty.cfg

Beautify and replace single config file

  %> naglint -i objects.cfg

Process objects from STDIN

  %> cat objects.cfg |A naglint > beauty.cfg

AUTHOR
2012, Sven Nierlein, <sven@nierlein.de>