config.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "servers": [
  3. {
  4. "username": "s01",
  5. "name": "node1",
  6. "type": "xen",
  7. "host": "host1",
  8. "location": "🇨🇳",
  9. "password": "USER_DEFAULT_PASSWORD",
  10. "monthstart": 1
  11. },
  12. {
  13. "username": "s02",
  14. "name": "node2",
  15. "type": "vmware",
  16. "host": "host2",
  17. "location": "🇯🇵",
  18. "password": "USER_DEFAULT_PASSWORD",
  19. "monthstart": 1
  20. },
  21. {
  22. "disabled": true,
  23. "username": "s03",
  24. "name": "node3",
  25. "type": "Nothing",
  26. "host": "host3",
  27. "location": "🇫🇷",
  28. "password": "USER_DEFAULT_PASSWORD",
  29. "monthstart": 1
  30. },
  31. {
  32. "username": "s04",
  33. "name": "node4",
  34. "type": "kvm",
  35. "host": "host4",
  36. "location": "🇰🇷",
  37. "password": "USER_DEFAULT_PASSWORD",
  38. "monthstart": 1
  39. }
  40. ],
  41. "watchdog": [
  42. {
  43. "name": "cpu high warning",
  44. "rule": "cpu>98",
  45. "interval": 600,
  46. "callback": "https://yourSMSurl"
  47. },
  48. {
  49. "name": "memory high warning",
  50. "rule": "(memory_used/memory_total)*100>90",
  51. "interval": 600,
  52. "callback": "https://yourSMSurl"
  53. },
  54. {
  55. "name": "offline warning",
  56. "rule": "online4=0&online6=0",
  57. "interval": 300,
  58. "callback": "https://yourSMSurl"
  59. },
  60. {
  61. "name": "you can parse an expression combining any known field",
  62. "rule": "load_5>10",
  63. "interval": 1800,
  64. "callback": "https://yourSMSurl"
  65. }
  66. ]
  67. }