#!/usr/bin/python3.7
"""
** Copyright 2020 Centreon
**
** This file is part of Centreon Engine.
**
** Centreon Engine is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Engine is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with Centreon Engine. If not, see
** <http://www.gnu.org/licenses/>.
"""


def create_templates():
    retval = [
        create_command("App-Monitoring-Centreon-Host-Dummy", "$CENTREONPLUGINS$/active-check.sh host $HOSTNAME$"),
        create_command("App-Monitoring-Centreon-Service-Dummy", "$CENTREONPLUGINS$/active-check.sh service $SERVICEDESC$"),
    ]
    return retval

def create_command(name: str, cmd: str):
    retval = {
        'command_name': name,
        'command_line': cmd,
    }
    return retval

