App-MonM
view release on metacpan or search on metacpan
lib/App/MonM/ConfigSkel.pm view on Meta::CPAN
#
#Workers 3
#
# Defines worker interval. This interval determines how often
# the cycle of checks will be started.
#
# Default: 20
#
#Interval 20
#
# Defines a username and groupname for daemon working
#
# Default: monmu
#
#DaemonUser monmu
#DaemonGroup monmu
#
# MonM database options
#
# NOTE! Before using the third-party database, please create the monm table
#
#-- For SQLite DB
#CREATE TABLE IF NOT EXISTS monm (
# `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
# `time` NUMERIC DEFAULT 0, -- time()
# `name` CHAR(255) DEFAULT NULL, -- name of checkit section
# `type` CHAR(32) DEFAULT NULL, -- http/dbi/command
# `source` CHAR(255) DEFAULT NULL, -- URL/DSN/Command
# `status` INTEGER DEFAULT 0, -- status value
# `message` TEXT DEFAULT NULL -- message
#)
#
#-- For MySQL DB
#CREATE TABLE `monm` (
# `id` int(11) NOT NULL auto_increment,
# `time` int(11) default '0' COMMENT 'unix time()',
# `name` varchar(255) default NULL COMMENT 'name of checkit section',
# `type` varchar(32) default NULL COMMENT 'http/dbi/command',
# `source` varchar(255) default NULL COMMENT 'URL/DSN/Command',
# `status` int(3) default '0' COMMENT 'status value',
# `message` text default NULL COMMENT 'message',
# PRIMARY KEY (`id`),
# UNIQUE KEY `id` (`id`)
#) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
#
#
# Section for connection with Your database.
# Recommended for use follow databases: SQLite, MySQL or PostgreSQL
#
# Default: SQLite
#
# SQLite example:
# <Store>
# DSN "dbi:SQLite:dbname=/tmp/monm/monm.db"
# Set RaiseError 0
# Set PrintError 0
# Set sqlite_unicode 1
# </Store>
#
# MySQL example:
# <Store>
# DSN "DBI:mysql:database=monm;host=mysql.example.com"
# User username
# Password password
# Set RaiseError 0
# Set PrintError 0
# Set mysql_enable_utf8 1
# Set mysql_auto_reconnect 1
# </Store>
#
#
# REQUIRED channel (SendMail) that defines default options for sending
# email-notifications and email-reports
#
<Channel SendMail>
Type Email
Enable on
# Real Email addresses
To to@example.com
#Cc cc@example.com
#Bcc bcc@example.com
From from@example.com
# MIME options
Encoding base64
# SMTP extra headers
#<Headers>
# X-Foo foo
# X-Bar bar
#</Headers>
# Attachments
#<Attachment>
# Filename screenshot.png
# Type image/png
# Encoding base64
# Disposition attachment
# Path ./screenshot.png
#</Attachment>
#<Attachment>
# Filename payment.pdf
# Type application/pdf
# Encoding base64
# Disposition attachment
# Path ./payment.pdf
#</Attachment>
# SMTP options
# If there are requirements to the case sensitive of parameter
# names, use the "Set" directives
Set host 192.168.0.1
Set port 25
#Set sasl_username TestUser
#Set sasl_password MyPassword
lib/App/MonM/ConfigSkel.pm view on Meta::CPAN
# 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) ##
#######################################
#
# Defines full path to external program (command line)
#
# Default: none
#
Command perl -w
#
# Sets the content for command STDIN
#
# Default: no content
#
Content "print q/Blah-Blah-Blah/"
#
# Defines the execute timeout
#
# Default: off
#
#Timeout 1m
</Checkit>
-----END FILE-----
-----BEGIN FILE-----
Name: checkit-foo.conf
File: conf.d/checkit-foo.conf
Mode: 644
#
# See checkit-foo.conf.sample and general documentation for details
#
<Checkit "foo">
Enable yes
URL https://www.example.com
Target code
IsTrue 200
</Checkit>
-----END FILE-----
( run in 0.488 second using v1.01-cache-2.11-cpan-39bf76dae61 )