dev/provisioning/modules/puppi/templates/helpers/standard.yml.erb
author ymh <ymh.work@gmail.com>
Tue, 20 Mar 2018 15:02:40 +0100
changeset 573 25f3d28f51b2
parent 28 b0b56e0f8c7f
permissions -rwxr-xr-x
Added tag 0.0.25 for changeset 190ae1dee68d

---
:info:
  -
    :command: "<%= scope.lookupvar('puppi::params::info_package_query') %> %{package}"
    :description: "Package info"
  -
    :command: "<%= scope.lookupvar('puppi::params::info_package_list') %> %{package} | egrep '(/bin|^/etc|/sbin|log$)'"
    :description: "Interesting files from package"
  -
    :command: "head %{config_file}"
    :description: "Main configuration file"
  -
    :command: "ls -latr %{config_dir}"
    :description: "Configuration directory"
  -
    :command: "ls -latr %{data_dir}"
    :description: "Data directory"
  -
    :command: "ls -latr %{log_dir}"
    :description: "Logs directory"
  -
    :command: "tail %{log_file}"
    :description: "Latest log entries"
  -
    :command: "service %{service status}"
    :description: "Service status"
  -
    :command: "ps -adef | grep %{process} | grep -v grep | head -20"
    :description: "Running process"
  -
    :command: "netstat -natup | grep %{port} | head -20"
    :description: "Network connections"

:check:
  -
    :command: "service %{service} status"
    :description: "Service status"
  -
    :command: "check_tcp %{port}"
    :description: "Check listening port"
  -
    :command: "check_procs c 1: -C %{process}"
    :description: "Check process"

:log:
  -
    :command: "tail -f %{log_file}"
    :description: "Tailing logs"