monitoring/ffmap/config.py

22 lines
1.4 KiB
Python

#!/usr/bin/python3
CONFIG = {
"vpn_netif": "fffVPN", # Name of VPN interface
"vpn_netif_l2tp": "l2tp", # Beginning of names of L2TP interfaces
"vpn_netif_aux": "fffauxVPN", # Name of AUX interface
"offline_threshold_minutes": 15, # Router switches to offline after X minutes
"orphan_threshold_days": 10, # Router switches to orphaned state after X days
"delete_threshold_days": 180, # Router is deleted after X days
"gw_netif_threshold_hours": 48, # Hours which outdated netif from gwinfo is preserved for statistics
"router_stat_days": 30, # Router stats are collected for X days
"router_stat_netif": 10, # Router stats for netifs are collected for X days
"router_stat_gw": 1, # Router stats for gw are collected for X days
"router_stat_mindiff_secs": 10, # Time difference (uptime) in seconds required for a new entry in router stats
"router_stat_mindiff_default": 270, # Time difference (router stats tables) in seconds required for a new entry in router stats
"router_stat_mindiff_netif": 270, # Time difference (router netif stats) in seconds required for a new entry in router stats
"event_num_entries": 300, # Number of events stored per router
"global_stat_days": 365, # Global/hood stats are collected for X days
"csv_dir": "/var/lib/ffmap/csv", # Directory where the .csv files for TileStache/mapnik are stored
"debug_dir": "/data/fff/fffmonlog", # Output directory for debug .txt files
}