Skip to content

Instantly share code, notes, and snippets.

@mrdoornbos
Last active January 26, 2016 19:19
Show Gist options
  • Save mrdoornbos/fd73a5b8e56c44a20550 to your computer and use it in GitHub Desktop.
Save mrdoornbos/fd73a5b8e56c44a20550 to your computer and use it in GitHub Desktop.
init_config:
# the check will refresh the matching pid list every X seconds
# except if it detects a change before. You might want to set it
# low if you want to alert on process service checks.
# pid_cache_duration: 120
instances:
- name: ssh
search_string: ['ssh', 'sshd']
# tags:
# - env:staging
# - cluster:big-data
thresholds:
# critical if no sshd or more than 8 sshd are running
critical: [1, 7]
# warning if 1, 2, 6, 7 sshd processes are running
warning: [3, 5]
# ok if 3, 4, 5 processes are running
- name: postgres
search_string: ['postgres']
ignore_denied_access: True
- name: delayed_job
search_string: ['delayed_job']
exact_match: False
@mrdoornbos
Copy link
Author

root@app1:~# ps ax | grep delayed_job
2354 ? Sl 21:44 delayed_job
16612 ? Sl 0:41 reports/delayed_job.0
16723 ? Sl 0:42 reports/delayed_job.1
16738 ? Sl 0:42 reports/delayed_job.2
16805 ? Sl 1:29 reports/delayed_job.3
16849 ? Sl 1:35 reports/delayed_job.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment