config.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "refresh_seconds": 300,
  3. "root_label": "COBCO",
  4. "networks": [
  5. {"key": "SURVE", "label": "SURVE 监控网", "keywords": ["SURVE", "10.169."], "color": "#2E75B6"},
  6. {"key": "OFFICE", "label": "OFFICE 办公网", "keywords": ["OFFICE", "10.160."], "color": "#548235"}
  7. ],
  8. "core_rules": [
  9. {"net": "SURVE", "match": "contains", "pattern": "core surve"},
  10. {"net": "OFFICE", "match": "contains", "pattern": "core office"}
  11. ],
  12. "core_hierarchy": {
  13. "firewall": {"match": "contains", "pattern": ""},
  14. "behavior": {"match": "contains", "pattern": ""},
  15. "total_core": {"match": "contains", "pattern": ""},
  16. "sub_cores": [
  17. {"key": "monitor", "label": "监控核心", "net": "SURVE", "match": "contains", "pattern": "core surve"},
  18. {"key": "office", "label": "办公核心", "net": "OFFICE", "match": "contains", "pattern": "core office"},
  19. {"key": "production", "label": "生产核心", "net": "", "match": "contains", "pattern": ""}
  20. ]
  21. },
  22. "templates": ["Huawei VRP by SNMP (walk)"],
  23. "full_interval_min": 5,
  24. "alarm_interval_min": 1,
  25. "history_interval_min": 5,
  26. "history_days": 7,
  27. "colors": {
  28. "100": "#F39C12",
  29. "1000": "#2ECC71",
  30. "2500": "#17C3B2",
  31. "10000": "#3498DB",
  32. "20000": "#9B59B6",
  33. "unknown": "#E74C3C",
  34. "down": "#C0392B"
  35. },
  36. "latency_warn": 1.0,
  37. "latency_bad": 5.0,
  38. "group_rules": [
  39. {"match": "contains", "pattern": "DataCenter", "label": "DataCenter", "big": true},
  40. {"match": "contains", "pattern": "Core", "label": "Core", "big": true},
  41. {"match": "regex", "pattern": "COBCO-(\\d{4}[A-Za-z]?)", "label": "$1", "big": false},
  42. {"match": "regex", "pattern": "^(\\d{4}[A-Za-z]?)", "label": "$1", "big": false}
  43. ],
  44. "other_label": "Other"
  45. }