add monitoring
This commit is contained in:
23
config/health/resources/NginxServer.yml
Normal file
23
config/health/resources/NginxServer.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: NginxServer
|
||||
abbreviation: ngnxsrvr
|
||||
checker: PragmaRX\Health\Checkers\Process
|
||||
column_size: 3
|
||||
notify: true
|
||||
targets:
|
||||
- default:
|
||||
command: "pgrep %s"
|
||||
method: process_count
|
||||
process_name: nginx
|
||||
pid_file: ""
|
||||
instances:
|
||||
minimum:
|
||||
count: 4
|
||||
message:
|
||||
'Process "%s" has not enough instances running: it has %s, when should have at least %s'
|
||||
maximum:
|
||||
count: 8
|
||||
message:
|
||||
'Process "%s" exceeded the maximum number of running instances: it has %s, when should have at most %s'
|
||||
pid_file_missing_error_message: "Process ID file is missing: %s."
|
||||
pid_file_missing_not_locked:
|
||||
"Process ID file is not being used by any process: %s."
|
||||
Reference in New Issue
Block a user