浏览代码

Documentation generation fixes

tags/2016.12
Ales Komarek 9 年前
父节点
当前提交
72826df0aa
共有 3 个文件被更改,包括 3 次插入77 次删除
  1. +0
    -38
      linux/files/collectd.conf
  2. +0
    -36
      linux/files/sensu.conf
  3. +3
    -3
      linux/files/sphinx.grain

+ 0
- 38
linux/files/collectd.conf 查看文件

@@ -1,38 +0,0 @@

LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin memory
LoadPlugin processes
LoadPlugin swap
LoadPlugin uptime
LoadPlugin users

<Plugin df>
# Device "/dev/sda1"
# Device "192.168.0.2:/mnt/nfs"
# MountPoint "/home"
# FSType "ext3"

# ignore rootfs; else, the root file-system would appear twice, causing
# one of the updates to fail and spam the log
FSType rootfs
# ignore the usual virtual / temporary file-systems
FSType sysfs
FSType proc
FSType devtmpfs
FSType devpts
FSType tmpfs
FSType fusectl
FSType cgroup
IgnoreSelected true
# ReportByDevice false
# ReportReserved false
# ReportInodes false
</Plugin>

<Plugin disk>
IgnoreSelected true
</Plugin>

+ 0
- 36
linux/files/sensu.conf 查看文件

@@ -1,36 +0,0 @@
local_linux_system_zombie_procs:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -w 2 -c 7 -s Z"
interval: 60
occurrences: 3
subscribers:
- local-linux-system
local_linux_system_total_procs:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -w 1500 -c 3000"
interval: 60
occurrences: 5
subscribers:
- local-linux-system
local_linux_system_load:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_load -r -w 6,4,2 -c 12,8,4"
interval: 60
occurrences: 1
subscribers:
- local-linux-system
local_linux_storage_swap_usage:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_swap -a -w 50% -c 20%"
interval: 60
occurrences: 1
subscribers:
- local-linux-storage
local_linux_storage_disk_usage:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_disk -w 15% -c 5% -p / -p /var -p /usr -p /tmp -p /var/log"
interval: 60
occurrences: 1
subscribers:
- local-linux-storage
local_linux_network_fqdn:
command: "PATH=$PATH:/etc/sensu/plugins check_fqdn.py -n :::hostname::: -f :::fqdn:::"
interval: 60
occurrences: 1
subscribers:
- local-linux-network

+ 3
- 3
linux/files/sphinx.grain 查看文件

@@ -1,10 +1,10 @@
{%- set grains = {'sphinx': {'doc': {}}} %}
{%- set service_grains = {'sphinx': {'doc': {}}} %}
{%- for service_name, service in pillar.items() %}
{%- if service.get('_support', {}).get('sphinx', {}).get('enabled', False) %}
{%- set grains_fragment_file = service_name+'/meta/sphinx.yml' %}
{%- macro load_grains_file() %}{% include grains_fragment_file %}{% endmacro %}
{%- set grains_yaml = load_grains_file()|load_yaml %}
{%- set _dummy = grains.sphinx.doc.update({ service_name: grains_yaml.doc }) %}
{%- set _dummy = service_grains.sphinx.doc.update({ service_name: grains_yaml.doc }) %}
{%- endif %}
{%- endfor %}
{{ grains|yaml(False) }}
{{ service_grains|yaml(False) }}

正在加载...
取消
保存