forked from shinken-monitoring/mod-webui
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to add more events for the logs filtering
Update Alignak test configuration
- Loading branch information
Showing
5 changed files
with
99 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
test/test-configurations/alignak/etc/alignak.d/alignak-module-mongo-logs.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[module.mongo-logs] | ||
name=mongo-logs | ||
type=mongo-logs | ||
python_name=alignak_module_mongo_logs | ||
|
||
statsd_prefix=%(alignak_name)s.modules | ||
|
||
# Module log level | ||
;log_level=INFO | ||
|
||
# MongoDB connection string | ||
# EXAMPLE | ||
# To describe a connection to a replica set named test, with the following mongod hosts: | ||
# db1.example.net on port 27017 with sysop credentials and | ||
# db2.example.net on port 2500. | ||
# You would use a connection string that resembles the following: | ||
# uri mongodb://sysop:password@db1.example.net,db2.example.net:2500/?replicaSet=test | ||
# | ||
# Default is a non replicated localhost server | ||
#uri mongodb://localhost | ||
|
||
# Database name where to store the logs/availability collection | ||
# Default is shinken | ||
#database alignak | ||
|
||
# DB connection test period | ||
# Every db_test_period seconds, the module tests if the DB connection is alive | ||
# Default is 0 to skip this test | ||
db_test_period=300 | ||
|
||
### ------------------------------------------------------------------------ | ||
### Logs management | ||
### ------------------------------------------------------------------------ | ||
# Logs collection name | ||
# Default is a collection named logs | ||
#logs_collection logs | ||
|
||
# Logs rotation | ||
# | ||
# Remove logs older than the specified value | ||
# Value is specified as : | ||
# 1d: 1 day | ||
# 3m: 3 months ... | ||
# d = days, w = weeks, m = months, y = years | ||
# Default is 3 months | ||
#max_logs_age 3m | ||
|
||
# Commit volume | ||
# The module commits at most commit_volume logs in the DB at every commit period | ||
# Default is 1000 lines | ||
#commit_volume 1000 | ||
commit_volume=10 | ||
|
||
# Commit period | ||
# Every commit_period seconds, the module stores the received logs in the DB | ||
# Default is to commit every 60 seconds | ||
#commit_period 60 | ||
|
||
### ------------------------------------------------------------------------ | ||
### Hosts/services availability management | ||
### ------------------------------------------------------------------------ | ||
# Hosts/services availability collection name | ||
# Default is a collection named availability | ||
#hav_collection availability | ||
|
||
# Services filtering | ||
# Filter is declared as a comma separated list of items: | ||
# An item can be a regexp which is matched against service description (hostname/service) | ||
# ^test*, matches all hosts which name starts with test | ||
# /test*, matches all services which name starts with test | ||
# | ||
# An item containing : is a specific filter (only bi is supported currently) | ||
# bi:>x, bi:>=x, bi:<x, bi:<=x, bi:=x to match business impact | ||
|
||
# default is to ignore the services | ||
# 2 is the default value for business impact if property is not explicitely declared for a service | ||
# To consider only services with bi>4 (most important services), uncomment this configuration | ||
#services_filter bi:>4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters