forked from MattHodge/PoshSensu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
poshsensu_config.json.example
64 lines (64 loc) · 1.82 KB
/
poshsensu_config.json.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"sensu_socket_ip": "localhost",
"sensu_socket_port": "3030",
"logging_enabled": true,
"logging_level": "debug",
"logging_directory": "C:\\PoshSensu\\Logs",
"logging_filename": "poshsensu.log",
"logging_max_file_size_mb": "10",
"checks_directory": "C:\\Program Files\\WindowsPowerShell\\Modules\\PoshSensu\\Checks",
"check_groups": [
{
"group_name": "quickchecks",
"max_execution_time": 30,
"ttl": 180,
"interval": 60,
"checks": [
{
"name": "service_bits",
"type": "metric",
"command": "check_service.ps1",
"arguments": "-Name BITS"
},
{
"name": "service_spooler",
"type": "metric",
"command": "check_service.ps1",
"arguments": "-Name Spooler"
},
{
"name": "disk_c",
"type": "metric",
"command": "Get-VolumePercentUsed.ps1",
"arguments": "~ Get-VolumePercentUsed -Identifier DeviceID -Value 'C:'"
},
{
"name": "proc_lsass",
"type": "metric",
"command": "Get-ProcessStatus.ps1",
"arguments": "~ Get-ProcessStatus -ProcessName lsass -ProcessRunning `$true"
}
]
},
{
"group_name": "slowchecks",
"max_execution_time": 120,
"ttl": 360,
"interval": 120,
"checks": [
{
"name": "ping_google",
"type": "metric",
"command": "Get-PingResponseTime.ps1",
"arguments": "~ Get-PingResponseTime -ComputerName www.google.com -WarningThreshold 50 -ErrorThreshold 70"
},
{
"name": "tcp_google_443",
"type": "metric",
"command": "Test-TCPConnection.ps1",
"arguments": "~ Test-TCPConnection -ComputerName www.google.com -Port 443"
}
]
}
]
}