<commit_before># build-nagios-object
Build nagios objects from txt files.

## Objects type supported:
* host
* hostgroup
* service
* servicegroup
* contact
* contactgroup
* timeperiod
* command
* servicedependency
* serviceescalation
* hostextinfo
* serviceextinfo

## TXT file format:
    object:[object type]
    key:value

### TXT file exemple:
    object:host
    host_name:host_hell
    alias:host_hell
    address:192.168.0.168
    hostgroup:server_group
    contacts:admin
    display_name:<NAME>
    notes:some note here<commit_msg>new README.md file<commit_after># build-nagios-object
Build nagios objects from txt files.

## Objects type supported:
* host;
* hostgroup;
* service;
* servicegroup;
* contact;
* contactgroup;
* timeperiod;
* command;
* servicedependency;
* serviceescalation;
* hostextinfo;
* serviceextinfo;

You can find more about objects definitions [here.] (https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/objectdefinitions.html)

## TXT file format:
    object:[object type] **this line is required**
    key:value

### TXT file exemple:
    object:host
    host_name:host_hell
    alias:host_hell
    address:192.168.0.168
    hostgroup:server_group
    contacts:admin
    display_name:<NAME>
    notes:some note here

## Usage:
python build-nagios-object.py [txt file]
{'fraction_non_alphanumeric': 0.10219530658591976, 'fraction_numerical': 0.015897047691143074, 'mean_word_length': 4.266932270916334, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6104262', 'n_tokens_mistral': 453, 'n_tokens_neox': 439, 'n_words': 103}