App-MonM

 view release on metacpan or  search on metacpan

lib/App/MonM/ConfigSkel.pm  view on Meta::CPAN


    #
    # Defines triggers (system commands) that runs before sending notifications
    # There can be several such directives
    # Each trigger can contents the variables for auto replacement, for example:
    #
    #   Trigger  "mycommand1 "[MESSAGE]""
    #
    # Replacement variables:
    #
    #   [ID]        -- Internal ID of the message
    #   [MESSAGE], [MSG] -- The checker message content
    #   [MSISDN]    -- Phone number, recipient
    #   [NAME]      -- Checkit section name
    #   [NOTE]      -- The checker notes
    #   [RESULT]    -- The check result: PASSED/FAILED
    #   [SOURCE], [SRC]  -- Source string (URL, Command, etc.)
    #   [STATUS]    -- The checker status: OK/ERROR
    #   [SUBJECT], [SBJ] -- Subject of message (MIME)
    #   [TYPE]      -- Type of checkit: http/dbi/command
    #
    #Trigger  "curl http://mywebcam.com/[NAME]/[ID]?[MSISDN] >/tmp/snapshot.jpg"

    #
    # Defines a List of Recipients for notifications.
    # There can be several such directives
    #
    # Email addresses for sending notifications directly (See Channel SendMail)
    #SendTo  foo@example.com
    #SendTo  bar@example.com
    #
    # ...or SMS phone numbers (See Channel SMSGW):
    #SendTo 11231230002
    #SendTo +11231230001
    #SendTo +1-123-123-0003
    #
    # ...or a notify users:
    #SendTo Bob, Alice
    #SendTo Fred
    SendTo  Alice
    #
    # ...or a notify groups:
    #SendTo @Foo, @Bar
    #SendTo @Baz



    ###################################
    ## For HTTP requests (Type http) ##
    ###################################

    #
    # Defines the URL for HTTP/HTTPS requests
    #
    # Default: http://localhost
    #
    #URL   https://user:password@www.example.com
    URL    https://www.example.com

    #
    # Defines the HTTP method: GET, POST, PUT, HEAD, PATCH, DELETE, and etc.
    #
    # Default: GET
    #
    #Method    GET

    #
    # Defines the timeout of HTTP requests
    #
    # Default: 180
    #
    #Timeout    180

    #
    # Defines HTTP request headers.
    # This directive allows you set case sensitive HTTP headers.
    # There can be several such directives.
    #
    # Set User-Agent  "MyAgent/1.00"
    # Set X-Token     "mdffltrtkmdffltrtk"

    #
    # Specifies POST/PUT/PATCH request content
    #
    # Set Content-Type text/plain
    # Content  "Content for HTTP request"
    #
    # Default: no content

    #
    # Defines the proxy URL for a http/https requests
    #
    # Default: no proxy
    #
    #Proxy http://http.example.com:8001/



    ##################################
    ## For DBI requests (Type dbi)  ##
    ##################################

    #
    # Sets Database DSN string
    #
    # Default: dbi:Sponge:
    #
    #DSN     DBI:mysql:database=DATABASE;host=HOSTNAME

    #
    # Specifies the SQL query string (content)
    #
    # Default: "SELECT 'OK' AS OK FROM DUAL"
    #
    #SQL "SELECT 'OK' AS OK FROM DUAL"

    #
    # Defines database credential: username and password
    #
    #User        USER
    #Password    PASSWORD

    #
    # Defines the timeout of DBI requests
    #
    # Default: off
    #
    #Timeout    20s

    #
    # Defines DBI Attributes.
    # This directive allows you set case sensitive DBI Attributes.
    # There can be several such directives.
    #
    #Set sqlite_unicode 1
    #
    #Set RaiseError     0
    #Set PrintError     0



    #######################################
    ## For system command (Type command) ##



( run in 2.352 seconds using v1.01-cache-2.11-cpan-5837b0d9d2c )