forked from infra/ansible
Collectd: remove files & packages
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
parent
f796c95508
commit
c712b24ee4
25 changed files with 34 additions and 1522 deletions
|
|
@ -24,7 +24,6 @@
|
|||
- zabbix/zabbix_agent
|
||||
- ipa/client
|
||||
- collectd/base
|
||||
- collectd/bind
|
||||
- rsyncd
|
||||
- sudo
|
||||
- dns
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
- ipa/client
|
||||
- apache
|
||||
- collectd/base
|
||||
- collectd/server
|
||||
- sudo
|
||||
- web-data-analysis
|
||||
- role: keytab/service
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
- hosts
|
||||
- ipa/client
|
||||
- collectd/base
|
||||
- collectd/memcached
|
||||
- sudo
|
||||
- memcached
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,6 @@
|
|||
- hosts
|
||||
- ipa/client
|
||||
- collectd/base
|
||||
# RabbitMQ statistics are cluster-wide, only collect them on one member
|
||||
- role: collectd/rabbitmq
|
||||
when: inventory_hostname.startswith('rabbitmq03')
|
||||
- rsyncd
|
||||
- sudo
|
||||
- rabbitmq_cluster
|
||||
|
|
|
|||
|
|
@ -552,15 +552,6 @@
|
|||
localpath: /freemedia
|
||||
proxyurl: http://localhost:10011
|
||||
|
||||
- role: httpd/reverseproxy
|
||||
website: admin.fedoraproject.org
|
||||
destname: collectd
|
||||
localpath: /collectd
|
||||
remotepath: /collectd
|
||||
# Talk directly to the app server, not haproxy
|
||||
proxyurl: http://log01
|
||||
tags: data-analysis
|
||||
|
||||
- role: httpd/reverseproxy
|
||||
website: data-analysis.fedoraproject.org
|
||||
destname: data-analysis
|
||||
|
|
|
|||
|
|
@ -2,214 +2,37 @@
|
|||
|
||||
# install pkg
|
||||
---
|
||||
- name: Install collectd
|
||||
ansible.builtin.package: name=collectd state=present
|
||||
- name: Remove collectd server packages
|
||||
ansible.builtin.package: name={{ item }} state=absent
|
||||
with_items:
|
||||
- collectd
|
||||
- collectd-apache
|
||||
- collectd-bind
|
||||
- collectd-disk
|
||||
- collectd-python
|
||||
- collectd-rabbitmq-data
|
||||
- collectd-rrdtool
|
||||
- collectd-web
|
||||
- python3-collectd-rabbitmq
|
||||
tags:
|
||||
- collectd
|
||||
when: ansible_distribution_major_version|int <= 7 and ansible_distribution == 'RedHat'
|
||||
|
||||
# install pkg
|
||||
- name: Install collectd
|
||||
dnf: name=collectd state=present
|
||||
- name: Remove files and directories for Collectd
|
||||
ansible.builtin.file: dest={{item}} state=absent
|
||||
with_items:
|
||||
- /etc/collectd.conf
|
||||
- /etc/collectd.d
|
||||
- /etc/collection.conf
|
||||
- /etc/httpd/conf.d/collectd.conf
|
||||
- /etc/systemd/system/collectd.service.d
|
||||
- /usr/local/bin/collectd-postgres.sh
|
||||
- /usr/share/collectd
|
||||
- /var/log/collectd
|
||||
tags:
|
||||
- collectd
|
||||
when: ansible_distribution_major_version|int > 7 and ansible_distribution == 'RedHat'
|
||||
|
||||
# install pkg
|
||||
- name: Install collectd
|
||||
dnf: name=collectd state=present
|
||||
tags:
|
||||
- collectd
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
||||
|
||||
# install collectd-disk (it was split out)
|
||||
- name: Install collectd-disk
|
||||
dnf: name=collectd-disk state=present
|
||||
tags:
|
||||
- collectd
|
||||
when: ansible_distribution_major_version|int > 7 and ansible_distribution == 'RedHat'
|
||||
|
||||
# install collectd-disk on F25+ (it was split out)
|
||||
- name: Install collectd-disk
|
||||
dnf: name=collectd-disk state=present
|
||||
tags:
|
||||
- collectd
|
||||
when: ansible_distribution_major_version|int > 24 and ansible_distribution == 'Fedora'
|
||||
|
||||
# install collectd-rrdtool on el9+ (it was split out)
|
||||
- name: Install collectd-rrdtool
|
||||
dnf: name=collectd-rrdtool state=present
|
||||
tags:
|
||||
- collectd
|
||||
when: ansible_distribution_major_version|int > 8 and ansible_distribution == 'RedHat'
|
||||
|
||||
# install collected.conf
|
||||
- name: /etc/collectd.conf
|
||||
ansible.builtin.template: src=collectd.conf.j2 dest=/etc/collectd.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
- Restart collectd
|
||||
|
||||
# install collectd-network config
|
||||
- name: /etc/collectd.d/network.conf
|
||||
ansible.builtin.template: src=network-client.conf.j2 dest=/etc/collectd.d/network.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
- Restart collectd
|
||||
when: not inventory_hostname.startswith('log')
|
||||
|
||||
# install collectd-network config
|
||||
- name: /etc/collectd.d/network.conf
|
||||
ansible.builtin.copy: src=network-server.conf dest=/etc/collectd.d/network.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
- Restart collectd
|
||||
when: inventory_hostname.startswith('log')
|
||||
|
||||
# apache - localhost only - pretty much any apache server
|
||||
- name: Install collectd-apache (yum)
|
||||
ansible.builtin.package: state=present name=collectd-apache
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
- Restart collectd
|
||||
when: collectd_apache and ansible_distribution_major_version|int <= 7 and ansible_distribution == 'RedHat'
|
||||
|
||||
- name: Install collectd-apache (dnf)
|
||||
dnf: state=present name=collectd-apache
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
- Restart collectd
|
||||
when: collectd_apache and ansible_distribution_major_version|int > 7 and ansible_distribution == 'RedHat'
|
||||
|
||||
- name: Install collectd-apache (dnf)
|
||||
dnf: state=present name=collectd-apache
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
- Restart collectd
|
||||
when: collectd_apache and ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
||||
|
||||
- name: /etc/collectd/apache.conf
|
||||
ansible.builtin.copy: src=apache.conf dest=/etc/collectd.d/apache.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
- Restart collectd
|
||||
when: collectd_apache
|
||||
|
||||
- name: Install libsemanage-python so we can set an sebool below
|
||||
ansible.builtin.package: name=libsemanage-python state=present
|
||||
tags:
|
||||
- collectd
|
||||
when: collectd_apache is defined and ansible_distribution_major_version|int <= 7 and ansible_distribution == 'RedHat'
|
||||
|
||||
- name: Let collectd talk to things over tcp
|
||||
seboolean: name=collectd_tcp_network_connect state=yes persistent=yes
|
||||
tags:
|
||||
- collectd
|
||||
ignore_errors: true
|
||||
notify:
|
||||
- Restart collectd
|
||||
when: ( collectd_apache is defined ) and ansible_selinux.status != "disabled"
|
||||
|
||||
- name: Enable collectd nfs module
|
||||
ansible.builtin.copy: src=nfs.conf dest=/etc/collectd.d/nfs.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify:
|
||||
- Restart collectd
|
||||
|
||||
# Three tasks for handling our (two) custom selinux modules.
|
||||
- name: Ensure a directory exists for our custom selinux module
|
||||
ansible.builtin.file: dest=/usr/share/collectd state=directory
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
||||
- name: Copy over our general collectd selinux module
|
||||
ansible.builtin.copy: src=selinux/fi-collectd.pp dest=/usr/share/collectd/fi-collectd.pp
|
||||
register: ficgeneral_module
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
||||
# TODO: consider using selinux_modules from https://galaxy.ansible.com/linux-system-roles/selinux instead
|
||||
- name: Check to see what version is installed (if any)
|
||||
ansible.builtin.shell: "semodule -l -m | grep fi-collectd | cut -d: -f2"
|
||||
register: ficgeneral_installed_version
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
||||
# This cmd comes from the last example of the semodule man page
|
||||
- name: Check to see what version we have
|
||||
ansible.builtin.shell: /usr/libexec/selinux/hll/pp /usr/share/collectd/fi-collectd.pp | sha256sum | cut -d ' ' -f1
|
||||
register: ficgeneral_local_version
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
||||
- name: Install our general collectd selinux module
|
||||
ansible.builtin.command: semodule -i /usr/share/collectd/fi-collectd.pp
|
||||
when: ficgeneral_module is changed or ficgeneral_installed_version != ficgeneral_local_version
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
||||
- name: Copy over our pstorefs/collectd selinux module (rhel6 has no pstorefs)
|
||||
ansible.builtin.copy: src=selinux/fi-pstorefs.pp dest=/usr/share/collectd/fi-pstorefs.pp
|
||||
register: ficpstorefs_module
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
||||
- name: Check to see if its even installed yet
|
||||
ansible.builtin.shell: semodule -l | grep fi-pstorefs | wc -l
|
||||
register: ficpstorefs_grep
|
||||
check_mode: no
|
||||
changed_when: "'0' in ficpstorefs_grep.stdout"
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
||||
- name: Install our pstorefs/collectd selinux module
|
||||
ansible.builtin.command: semodule -i /usr/share/collectd/fi-pstorefs.pp
|
||||
when: (ficpstorefs_module is changed or ficpstorefs_grep is changed)
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
||||
# each of the below should move to a separate task list
|
||||
# since they are odd-balls and one-offs
|
||||
|
||||
# memcached - memcached only
|
||||
|
||||
# postgres - this is a conn check
|
||||
## add /usr/share/collectd/pgconn-types.db
|
||||
|
||||
# openvpn - for bastion/openvpn gateways only
|
||||
|
||||
# mysql
|
||||
## collectd-mysql
|
||||
|
||||
# haproxy
|
||||
## add /usr/share/collectd/haproxy-types.db
|
||||
## add socat pkg
|
||||
##
|
||||
|
||||
# webproxy
|
||||
|
||||
# enable collectd
|
||||
- name: Enable collectd svc
|
||||
service: state=stopped enabled=false name=collectd
|
||||
tags:
|
||||
- collectd
|
||||
# disable collectd - already run in d13496b
|
||||
#- name: Enable collectd svc
|
||||
# service: state=stopped enabled=false name=collectd
|
||||
# tags:
|
||||
# - collectd
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
LoadPlugin bind
|
||||
|
||||
<Plugin bind>
|
||||
URL "http://localhost:8053/"
|
||||
OpCodes true
|
||||
QTypes true
|
||||
|
||||
ServerStats true
|
||||
ZoneMaintStats true
|
||||
ResolverStats false
|
||||
MemoryStats true
|
||||
|
||||
<View "DEFAULT">
|
||||
QTypes true
|
||||
ResolverStats true
|
||||
CacheRRSets true
|
||||
|
||||
Zone "127.in-addr.arpa/IN"
|
||||
</View>
|
||||
</Plugin>
|
||||
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
---
|
||||
|
||||
- name: Install collectd-bind
|
||||
ansible.builtin.package: name=collectd-bind state=present
|
||||
tags:
|
||||
- packages
|
||||
- collectd
|
||||
|
||||
- name: Copy in /etc/collectd.d/bind.conf
|
||||
ansible.builtin.copy: >
|
||||
src=bind.conf
|
||||
dest=/etc/collectd.d/bind.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify: Restart collectd
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
LoadPlugin memcached
|
||||
|
||||
<Plugin memcached>
|
||||
Host "localhost"
|
||||
Port "11211"
|
||||
</Plugin>
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
|
||||
- name: Copy in the memcached collectd config
|
||||
ansible.builtin.copy: src=memcached.conf dest=/etc/collectd.d/memcached.conf
|
||||
tags:
|
||||
- collectd/memcached
|
||||
- collectd
|
||||
- memcached
|
||||
notify: Restart collectd
|
||||
|
||||
- name: Lastly, set some selinux booleans
|
||||
seboolean: name=collectd_tcp_network_connect persistent=yes state=yes
|
||||
tags:
|
||||
- collectd/memcached
|
||||
- collectd
|
||||
- memcached
|
||||
- selinux
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
---
|
||||
|
||||
- name: Copy in /usr/local/bin/collectd-postgres.sh
|
||||
ansible.builtin.template: >
|
||||
src=collectd-postgres.sh
|
||||
dest=/usr/local/bin/collectd-postgres.sh
|
||||
mode=0755
|
||||
tags:
|
||||
- collectd
|
||||
notify: Restart collectd
|
||||
|
||||
- name: Copy in /etc/collectd.d/postgres.conf
|
||||
ansible.builtin.template: >
|
||||
src=postgres.conf
|
||||
dest=/etc/collectd.d/postgres.conf
|
||||
tags:
|
||||
- collectd
|
||||
notify: Restart collectd
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# These defaults are commented out because selinux doesn't like us running that
|
||||
# hostname on rhel7 for some reason. Anyways, we always pass in the arguments
|
||||
# via the collectd configuration information so wth. -- threebean
|
||||
#pause=10
|
||||
#host=$( /usr/bin/hostname -s )
|
||||
|
||||
while getopts "h:p:s:" c; do
|
||||
case $c in
|
||||
h) host=$OPTARG;;
|
||||
p) pause=$OPTARG;;
|
||||
*) echo "Usage: /bin/bash [-h <hostname>] [-p <seconds>]";;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
while [ $? -eq 0 ] ; do
|
||||
time="$(date +%s)"
|
||||
for db in {{ ' '.join(databases) }}
|
||||
do
|
||||
echo "PUTVAL $host/pg_conns/current_connections-$db $time:$(ps auxwww | grep -c $db)"
|
||||
done
|
||||
sleep $pause
|
||||
done
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<Plugin exec>
|
||||
Exec "nobody" "/usr/local/bin/collectd-postgres.sh" "-h" "{{ inventory_hostname }}" "-p" "10"
|
||||
</Plugin>
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
---
|
||||
- name: Install collectd-rabbitmq
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name: python3-collectd-rabbitmq
|
||||
tags:
|
||||
- packages
|
||||
- collectd
|
||||
|
||||
- name: Install collectd-python
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name: collectd-python
|
||||
tags:
|
||||
- packages
|
||||
- collectd
|
||||
|
||||
- name: Install collectd rabbitmq config
|
||||
ansible.builtin.template:
|
||||
src: "rabbitmq.collectd.conf.j2"
|
||||
dest: "/etc/collectd.d/rabbitmq.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0640"
|
||||
tags:
|
||||
- collectd
|
||||
- config
|
||||
notify: Restart collectd
|
||||
|
||||
- name: Let collectd talk to the RabbitMQ management interface
|
||||
seboolean: name=collectd_tcp_network_connect state=yes persistent=yes
|
||||
tags:
|
||||
- collectd
|
||||
notify: Restart collectd
|
||||
|
||||
- name: Remove the useless collectd plugins
|
||||
ansible.builtin.file:
|
||||
path: /etc/collectd.d/{{item}}.conf
|
||||
state: absent
|
||||
with_items:
|
||||
- apache
|
||||
- rrdtool
|
||||
tags:
|
||||
- collectd
|
||||
- config
|
||||
notify: Restart collectd
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
LoadPlugin python
|
||||
<Plugin python>
|
||||
LogTraces true
|
||||
Interactive false
|
||||
Import "collectd_rabbitmq.collectd_plugin"
|
||||
<Module "collectd_rabbitmq.collectd_plugin">
|
||||
Username "nagios-monitoring"
|
||||
Password "{{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}"
|
||||
Realm "RabbitMQ Management"
|
||||
Host "localhost"
|
||||
Port "15672"
|
||||
{% if env != 'production' %}
|
||||
VHostPrefix "stg"
|
||||
{% endif %}
|
||||
<Ignore "queue">
|
||||
Regex "celery%40"
|
||||
Regex "celeryev.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
||||
Regex "^federation%3A%20"
|
||||
Regex "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
||||
</Ignore>
|
||||
</Module>
|
||||
</Plugin>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
# Configuration for collectd.
|
||||
|
||||
ScriptAlias /collectd/bin/ /usr/share/collectd/collection3/bin/
|
||||
Alias /collectd/ /usr/share/collectd/collection3/
|
||||
|
||||
<Directory /usr/share/collectd/>
|
||||
AddHandler cgi-script .cgi
|
||||
DirectoryIndex bin/index.cgi
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require all granted
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
# Apache 2.2
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
Allow from 127.0.0.1
|
||||
Allow from ::1
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
||||
|
|
@ -1,960 +0,0 @@
|
|||
#DataDir "/var/lib/collectd/rrd"
|
||||
GraphWidth 400
|
||||
UnixSockAddr "/var/run/collectd-unixsock"
|
||||
<Type apache_bytes>
|
||||
DataSources value
|
||||
DSName "value Bytes/s"
|
||||
RRDTitle "Apache Traffic"
|
||||
RRDVerticalLabel "Bytes/s"
|
||||
RRDFormat "%5.1lf%s"
|
||||
Color value 0000ff
|
||||
</Type>
|
||||
<Type apache_requests>
|
||||
DataSources value
|
||||
DSName "value Requests/s"
|
||||
RRDTitle "Apache Traffic"
|
||||
RRDVerticalLabel "Requests/s"
|
||||
RRDFormat "%5.2lf"
|
||||
Color value 00d000
|
||||
</Type>
|
||||
<Type apache_scoreboard>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Apache scoreboard on {hostname}"
|
||||
RRDVerticalLabel "Slots"
|
||||
RRDFormat "%6.2lf"
|
||||
DSName closing Closing
|
||||
DSName dnslookup DNS lookup
|
||||
DSName finishing Finishing
|
||||
DSName idle_cleanup Idle cleanup
|
||||
DSName keepalive Keep alive
|
||||
DSName logging Logging
|
||||
DSName open Open (empty)
|
||||
DSName reading Reading
|
||||
DSName sending Sending
|
||||
DSName starting Starting
|
||||
DSName waiting Waiting
|
||||
Order open closing dnslookup finishing idle_cleanup keepalive logging open reading sending starting waiting
|
||||
Color closing 000080
|
||||
Color dnslookup ff0000
|
||||
Color finishing 008080
|
||||
Color idle_cleanup ffff00
|
||||
Color keepalive 0080ff
|
||||
Color logging a000a0
|
||||
Color open e0e0e0
|
||||
Color reading 0000ff
|
||||
Color sending 00e000
|
||||
Color starting ff00ff
|
||||
Color waiting ffb000
|
||||
</Type>
|
||||
<Type arc_counts>
|
||||
Module ArcCounts
|
||||
RRDTitle "ARC {type_instance} on {hostname}"
|
||||
# RRDOptions ...
|
||||
</Type>
|
||||
<Type arc_l2_bytes>
|
||||
Module GenericIO
|
||||
DataSources read write
|
||||
DSName "read Read "
|
||||
DSName "write Written"
|
||||
RRDTitle "L2ARC traffic"
|
||||
RRDVerticalLabel "Bytes per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%s"
|
||||
</Type>
|
||||
<Type arc_l2_size>
|
||||
RRDTitle "L2ARC size on {hostname}"
|
||||
RRDVerticalLabel "Size"
|
||||
RRDFormat "%4.0lf%s"
|
||||
RRDOptions -b 1024
|
||||
DSName "value Current size"
|
||||
Color value 00e000
|
||||
</Type>
|
||||
<Type arc_size>
|
||||
DataSources "current target minlimit maxlimit"
|
||||
RRDTitle "ARC size on {hostname}"
|
||||
RRDVerticalLabel "Size"
|
||||
RRDFormat "%4.0lf%s"
|
||||
RRDOptions -b 1024
|
||||
DSName "current Current size"
|
||||
DSName "target Target size "
|
||||
DSName "maxlimit Max size "
|
||||
DSName "minlimit Min size "
|
||||
Color current 00e000
|
||||
Color target 0000ff
|
||||
Color minlimit ff0000
|
||||
Color maxlimit ff00ff
|
||||
</Type>
|
||||
<Type arc_ratio>
|
||||
DataSources value
|
||||
RRDTitle "{type_instance}ARC ratio on {hostname}"
|
||||
RRDVerticalLabel "Ratio"
|
||||
RRDFormat "%4.1lf"
|
||||
RRDOptions -l 0
|
||||
DSName "value Hit ratio"
|
||||
</Type>
|
||||
<Type bitrate>
|
||||
DataSources value
|
||||
RRDTitle "Bitrate ({instance})"
|
||||
RRDVerticalLabel "Bit/s"
|
||||
RRDFormat "%5.1lf%s"
|
||||
DSName "value Bitrate"
|
||||
</Type>
|
||||
<Type cache_ratio>
|
||||
DataSources value
|
||||
DSName value Percent
|
||||
RRDTitle "Cache hit ratio for {plugin_instance} {type_instance}"
|
||||
RRDVerticalLabel "Percent"
|
||||
RRDFormat "%5.1lf %%"
|
||||
</Type>
|
||||
<Type cpu>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "CPU {plugin_instance} usage"
|
||||
RRDVerticalLabel "Jiffies"
|
||||
RRDFormat "%5.2lf"
|
||||
DSName idle Idle
|
||||
DSName nice Nice
|
||||
DSName user User
|
||||
DSName wait Wait-IO
|
||||
DSName system System
|
||||
DSName softirq SoftIRQ
|
||||
DSName interrupt IRQ
|
||||
DSName steal Steal
|
||||
Order idle nice user wait system softirq interrupt steal
|
||||
Color idle e8e8e8
|
||||
Color nice 00e000
|
||||
Color user 0000ff
|
||||
Color wait ffb000
|
||||
Color system ff0000
|
||||
Color softirq ff00ff
|
||||
Color interrupt a000a0
|
||||
Color steal 000000
|
||||
</Type>
|
||||
<Type current>
|
||||
DataSources value
|
||||
DSName value Current
|
||||
RRDTitle "Current ({type_instance})"
|
||||
RRDVerticalLabel "Ampere"
|
||||
RRDFormat "%4.1lfA"
|
||||
Color value ffb000
|
||||
</Type>
|
||||
<Type df>
|
||||
Module Df
|
||||
DataSources free used
|
||||
</Type>
|
||||
<Type df_complex>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Disk/Volume usage on {plugin_instance}"
|
||||
RRDVerticalLabel "Byte"
|
||||
RRDFormat "%5.1lf%s"
|
||||
DSName "sis_saved SIS saved "
|
||||
DSName "reserved Reserved "
|
||||
DSName "free Free "
|
||||
DSName "used Used "
|
||||
DSName "snap_normal_used Snap used (normal)"
|
||||
DSName "snap_reserved Snap reserved "
|
||||
DSName "snap_reserve_used Snap used (resv) "
|
||||
Order sis_saved reserved free used snap_normal_used snap_reserved snap_reserve_used
|
||||
Color sis_saved 00e0e0
|
||||
Color reserved ffb000
|
||||
Color free 00ff00
|
||||
Color snap_reverse ff8000
|
||||
Color used ff0000
|
||||
Color snap_normal_used c10640
|
||||
Color snap_reserved f15aef
|
||||
Color snap_reserve_used 820c81
|
||||
</Type>
|
||||
<Type disk_latency>
|
||||
Module GenericIO
|
||||
DataSources read write
|
||||
DSName "read Read "
|
||||
DSName write Write
|
||||
RRDTitle "Disk Latency for {plugin_instance}"
|
||||
RRDVerticalLabel "seconds"
|
||||
Scale 0.000001
|
||||
RRDFormat "%5.1lf %ss"
|
||||
</Type>
|
||||
<Type disk_octets>
|
||||
Module GenericIO
|
||||
DataSources read write
|
||||
DSName "read Read "
|
||||
DSName write Written
|
||||
RRDTitle "Disk Traffic ({instance})"
|
||||
RRDVerticalLabel "Bytes per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%s"
|
||||
</Type>
|
||||
<Type disk_ops>
|
||||
Module GenericIO
|
||||
DataSources read write
|
||||
DSName "read Read "
|
||||
DSName write Written
|
||||
RRDTitle "Disk Operations ({instance})"
|
||||
RRDVerticalLabel "Operations per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf"
|
||||
</Type>
|
||||
<Type disk_ops_complex>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Netapp disc ops on {plugin_instance}"
|
||||
RRDVerticalLabel "Ops"
|
||||
RRDFormat "%6.2lf"
|
||||
DSName fcp_ops FCP-Ops
|
||||
DSName nfs_ops NFS-Ops
|
||||
DSName http_ops HTTP-Ops
|
||||
DSName cifs_ops CIFS-Ops
|
||||
DSName dafs_ops DAFS-Ops
|
||||
DSName iscsi_ops iSCSI-Ops
|
||||
Order fcp_ops nfs_ops http_ops cifs_ops dafs_ops iscsi_ops
|
||||
Color fcp_ops 000080
|
||||
Color nfs_ops ff0000
|
||||
Color http_ops ffb000
|
||||
Color cifs_ops 00e0a0
|
||||
Color dafs_ops 00e000
|
||||
Color iscsi_ops 00e0ff
|
||||
</Type>
|
||||
<Type disk_merged>
|
||||
Module GenericIO
|
||||
DataSources read write
|
||||
DSName "read Read "
|
||||
DSName write Written
|
||||
RRDTitle "Disk Merged Operations ({instance})"
|
||||
RRDVerticalLabel "Merged operations/s"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf"
|
||||
</Type>
|
||||
<Type disk_time>
|
||||
Module GenericIO
|
||||
DataSources read write
|
||||
DSName "read Read "
|
||||
DSName write Written
|
||||
RRDTitle "Disk time per operation ({instance})"
|
||||
RRDVerticalLabel "Avg. Time/Op"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%ss"
|
||||
Scale 0.001
|
||||
</Type>
|
||||
<Type dns_opcode>
|
||||
DataSources value
|
||||
DSName "value Queries/s"
|
||||
RRDTitle "DNS Opcode {type_instance}"
|
||||
RRDVerticalLabel "Queries/s"
|
||||
RRDFormat "%6.1lf"
|
||||
</Type>
|
||||
<Type conntrack>
|
||||
DataSources value
|
||||
DSName value Conntrack count
|
||||
RRDTitle "nf_conntrack connections on {hostname}"
|
||||
RRDVerticalLabel "Count"
|
||||
RRDFormat "%4.0lf"
|
||||
</Type>
|
||||
<Type entropy>
|
||||
DataSources value
|
||||
DSName value Entropy bits
|
||||
RRDTitle "Available entropy on {hostname}"
|
||||
RRDVerticalLabel "Bits"
|
||||
RRDFormat "%4.0lf"
|
||||
</Type>
|
||||
<Type fanspeed>
|
||||
DataSources value
|
||||
DSName value RPM
|
||||
RRDTitle "Fanspeed ({instance})"
|
||||
RRDVerticalLabel "RPM"
|
||||
RRDFormat "%6.1lf"
|
||||
Color value 00b000
|
||||
</Type>
|
||||
<Type frequency>
|
||||
DataSources value
|
||||
DSName value Frequency
|
||||
RRDTitle "Frequency ({type_instance})"
|
||||
RRDVerticalLabel "Hertz"
|
||||
RRDFormat "%4.1lfHz"
|
||||
Color value a000a0
|
||||
</Type>
|
||||
<Type humidity>
|
||||
DataSources value
|
||||
DSName value Humitidy
|
||||
RRDTitle "Humitidy ({instance})"
|
||||
RRDVerticalLabel "Percent"
|
||||
RRDFormat "%4.1lf%%"
|
||||
Color value 00e000
|
||||
</Type>
|
||||
<Type if_errors>
|
||||
Module GenericIO
|
||||
DataSources rx tx
|
||||
DSName rx RX
|
||||
DSName tx TX
|
||||
RRDTitle "Interface Errors ({type_instance})"
|
||||
RRDVerticalLabel "Errors per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%.3lf"
|
||||
</Type>
|
||||
<Type if_rx_errors>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Interface receive errors ({plugin_instance})"
|
||||
RRDVerticalLabel "Erorrs/s"
|
||||
RRDFormat "%.1lf"
|
||||
Color length f00000
|
||||
Color over 00e0ff
|
||||
Color crc 00e000
|
||||
Color frame ffb000
|
||||
Color fifo f000c0
|
||||
Color missed 0000f0
|
||||
</Type>
|
||||
<Type if_tx_errors>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Interface transmit errors ({plugin_instance})"
|
||||
RRDVerticalLabel "Erorrs/s"
|
||||
RRDFormat "%.1lf"
|
||||
Color aborted f00000
|
||||
Color carrier 00e0ff
|
||||
Color fifo 00e000
|
||||
Color heartbeat ffb000
|
||||
Color window f000c0
|
||||
</Type>
|
||||
<Type if_octets>
|
||||
Module GenericIO
|
||||
DataSources rx tx
|
||||
DSName rx RX
|
||||
DSName tx TX
|
||||
RRDTitle "Interface Traffic ({instance})"
|
||||
RRDVerticalLabel "Bits per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%s"
|
||||
Scale 8
|
||||
</Type>
|
||||
<Type if_packets>
|
||||
Module GenericIO
|
||||
DataSources rx tx
|
||||
DSName rx RX
|
||||
DSName tx TX
|
||||
RRDTitle "Interface Packets ({type_instance})"
|
||||
RRDVerticalLabel "Packets per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%s"
|
||||
</Type>
|
||||
<Type invocations>
|
||||
DataSources value
|
||||
DSName "value Invocations/s"
|
||||
RRDTitle "Invocations ({instance})"
|
||||
RRDVerticalLabel "Invocations/s"
|
||||
RRDFormat "%5.1lf"
|
||||
</Type>
|
||||
<Type io_octets>
|
||||
Module GenericIO
|
||||
DataSources rx tx
|
||||
DSName "rx Read "
|
||||
DSName "tx Written"
|
||||
RRDTitle "IO Traffic ({instance})"
|
||||
RRDVerticalLabel "Bytes per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%s"
|
||||
</Type>
|
||||
<Type ipt_bytes>
|
||||
DataSources value
|
||||
DSName value Bytes/s
|
||||
RRDTitle "Traffic ({type_instance})"
|
||||
RRDVerticalLabel "Bytes per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%s"
|
||||
</Type>
|
||||
<Type ipt_packets>
|
||||
DataSources value
|
||||
DSName value Packets/s
|
||||
RRDTitle "Packets ({type_instance})"
|
||||
RRDVerticalLabel "Packets per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf"
|
||||
</Type>
|
||||
<Type irq>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Interrupts on {hostname}"
|
||||
RRDVerticalLabel "IRQs/s"
|
||||
RRDFormat "%5.1lf"
|
||||
</Type>
|
||||
<Type load>
|
||||
Module Load
|
||||
</Type>
|
||||
<Type java_memory>
|
||||
Module JavaMemory
|
||||
DataSources value
|
||||
</Type>
|
||||
<Type memory>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Physical memory utilization on {hostname}"
|
||||
RRDVerticalLabel "Bytes"
|
||||
RRDFormat "%5.1lf%s"
|
||||
RRDOptions -b 1024 -l 0
|
||||
DSName "free Free "
|
||||
DSName "cached Cached "
|
||||
DSName "buffered Buffered"
|
||||
DSName "locked Locked "
|
||||
DSName "used Used "
|
||||
DSName "available Available "
|
||||
DSName "system_cache System Cache "
|
||||
DSName "pool_paged Paged Pool "
|
||||
DSName "pool_nonpaged Nonpaged Pool"
|
||||
DSName "working_set Working Set "
|
||||
DSName "system_code System Code "
|
||||
DSName "system_driver System Driver"
|
||||
#Order used buffered cached free
|
||||
Order free cached buffered used available system_cache system_driver system_code pool_paged pool_nonpaged working_set
|
||||
Color free 00e000
|
||||
Color cached 0000ff
|
||||
Color buffered ffb000
|
||||
Color locked ff00ff
|
||||
Color used ff0000
|
||||
Color available 00e000
|
||||
Color system_cache 0000ff
|
||||
Color system_driver ff00ff
|
||||
Color system_code a000a0
|
||||
Color pool_paged ffb000
|
||||
Color pool_nonpaged ff8000
|
||||
Color working_set ff0000
|
||||
</Type>
|
||||
<Type mysql_commands>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "MySQL commands ({plugin_instance})"
|
||||
RRDVerticalLabel "Invocations"
|
||||
RRDFormat "%6.2lf"
|
||||
|
||||
|
||||
DSName admin_commands admin_commands
|
||||
DSName alter_table alter_table
|
||||
DSName begin begin
|
||||
DSName change_db change_db
|
||||
DSName check check
|
||||
DSName commit commit
|
||||
DSName create_db create_db
|
||||
DSName create_table create_table
|
||||
DSName delete delete
|
||||
DSName drop_db drop_db
|
||||
DSName drop_table drop_table
|
||||
DSName flush flush
|
||||
DSName grant grant
|
||||
DSName insert insert
|
||||
DSName insert_select insert_select
|
||||
DSName lock_tables lock_tables
|
||||
DSName optimize optimize
|
||||
DSName rename_table rename_table
|
||||
DSName replace replace
|
||||
DSName revoke revoke
|
||||
DSName select select
|
||||
DSName set_option set_option
|
||||
DSName show_create_table show_create_table
|
||||
DSName show_databases show_databases
|
||||
DSName show_fields show_fields
|
||||
DSName show_keys show_keys
|
||||
DSName show_master_status show_master_status
|
||||
DSName show_processlist show_processlist
|
||||
DSName show_slave_hosts show_slave_hosts
|
||||
DSName show_status show_status
|
||||
DSName show_tables show_tables
|
||||
DSName show_triggers show_triggers
|
||||
DSName show_variables show_variables
|
||||
DSName unlock_tables unlock_tables
|
||||
DSName update update
|
||||
DSName update_multi update_multi
|
||||
|
||||
Order admin_commands alter_table begin change_db check commit create_db create_table delete drop_db drop_table flush grant insert insert_select lock_tables optimize rename_table replace revoke select set_option show_create_table show_databases show_fields show_keys show_master_status show_processlist show_slave_hosts show_status show_tables show_triggers show_variables unlock_tables update update_multi
|
||||
|
||||
Color admin_commands ff0000
|
||||
Color alter_table ff002a
|
||||
Color begin ff0055
|
||||
Color change_db ff007f
|
||||
Color check ff00aa
|
||||
Color commit ff00d4
|
||||
Color create_db ff00ff
|
||||
Color create_table d400ff
|
||||
Color delete aa00ff
|
||||
Color drop_db 7f00ff
|
||||
Color drop_table 5400ff
|
||||
Color flush 2a00ff
|
||||
Color grant 0000ff
|
||||
Color insert 002aff
|
||||
Color insert_select 0055ff
|
||||
Color lock_tables 007fff
|
||||
Color optimize 00a9ff
|
||||
Color rename_table 00d4ff
|
||||
Color replace 00ffff
|
||||
Color revoke 00ffd4
|
||||
Color select 00ffa9
|
||||
Color set_option 00ff7f
|
||||
Color show_create_table 00ff55
|
||||
Color show_databases 00ff2a
|
||||
Color show_fields 00ff00
|
||||
Color show_keys 2aff00
|
||||
Color show_master_status 54ff00
|
||||
Color show_processlist 7fff00
|
||||
Color show_slave_hosts aaff00
|
||||
Color show_status d4ff00
|
||||
Color show_tables ffff00
|
||||
Color show_triggers ffd400
|
||||
Color show_variables ffaa00
|
||||
Color unlock_tables ff7f00
|
||||
Color update ff5400
|
||||
Color update_multi ff2a00
|
||||
</Type>
|
||||
<Type mysql_handler>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "MySQL handler ({plugin_instance})"
|
||||
RRDVerticalLabel "Invocations"
|
||||
RRDFormat "%6.2lf"
|
||||
DSName commit commit
|
||||
DSName delete delete
|
||||
DSName read_first read_first
|
||||
DSName read_key read_key
|
||||
DSName read_next read_next
|
||||
DSName read_prev read_prev
|
||||
DSName read_rnd read_rnd
|
||||
DSName read_rnd_next read_rnd_next
|
||||
DSName update update
|
||||
DSName write write
|
||||
Order commit delete read_first read_key read_next read_prev read_rnd read_rnd_next update write
|
||||
Color commit ff0000
|
||||
Color delete ff0099
|
||||
Color read_first cc00ff
|
||||
Color read_key 3200ff
|
||||
Color read_next 0065ff
|
||||
Color read_prev 00ffff
|
||||
Color read_rnd 00ff65
|
||||
Color read_rnd_next 33ff00
|
||||
Color update cbff00
|
||||
Color write ff9800
|
||||
</Type>
|
||||
<Type mysql_octets>
|
||||
Module GenericIO
|
||||
DataSources rx tx
|
||||
DSName rx RX
|
||||
DSName tx TX
|
||||
RRDTitle "MySQL Traffic ({plugin_instance})"
|
||||
RRDVerticalLabel "Bits per second"
|
||||
RRDFormat "%5.1lf%s"
|
||||
Scale 8
|
||||
</Type>
|
||||
<Type percent>
|
||||
DataSources value
|
||||
DSName value Percent
|
||||
RRDTitle "Percent ({type_instance})"
|
||||
RRDVerticalLabel "Percent"
|
||||
RRDFormat "%4.1lf%%"
|
||||
Color value 0000ff
|
||||
</Type>
|
||||
<Type ping>
|
||||
DataSources value
|
||||
DSName "value Latency"
|
||||
RRDTitle "Network latency ({type_instance})"
|
||||
RRDVerticalLabel "Milliseconds"
|
||||
RRDFormat "%5.2lfms"
|
||||
</Type>
|
||||
<Type power>
|
||||
DataSources value
|
||||
DSName value Watts
|
||||
RRDTitle "Power ({type_instance})"
|
||||
RRDVerticalLabel "Watts"
|
||||
RRDFormat "%6.2lf%sW"
|
||||
Color value 008080
|
||||
</Type>
|
||||
<Type ps_cputime>
|
||||
Module PsCputime
|
||||
</Type>
|
||||
<Type ps_disk_octets>
|
||||
Module GenericIO
|
||||
DataSources read write
|
||||
DSName "read Read "
|
||||
DSName write Written
|
||||
RRDTitle "Process disk traffic ({instance})"
|
||||
RRDVerticalLabel "Bytes per second"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%s"
|
||||
</Type>
|
||||
<Type ps_rss>
|
||||
DataSources value
|
||||
DSName value RSS
|
||||
RRDTitle "Resident Segment Size ({instance})"
|
||||
RRDVerticalLabel "Bytes"
|
||||
RRDFormat "%6.2lf%s"
|
||||
</Type>
|
||||
<Type ps_state>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Processes on {hostname}"
|
||||
RRDVerticalLabel "Processes"
|
||||
RRDFormat "%5.1lf"
|
||||
DSName running Running
|
||||
DSName sleeping Sleeping
|
||||
DSName paging Paging
|
||||
DSName zombies Zombies
|
||||
DSName blocked Blocked
|
||||
DSName stopped Stopped
|
||||
Order paging blocked zombies stopped running sleeping
|
||||
Color running 00e000
|
||||
Color sleeping 0000ff
|
||||
Color paging ffb000
|
||||
Color zombies ff0000
|
||||
Color blocked ff00ff
|
||||
Color stopped a000a0
|
||||
</Type>
|
||||
<Type signal_power>
|
||||
DataSources value
|
||||
RRDTitle "Signal power ({instance})"
|
||||
RRDVerticalLabel "dB"
|
||||
RRDFormat "%5.1lf"
|
||||
DSName "value Signal power"
|
||||
</Type>
|
||||
<Type signal_quality>
|
||||
DataSources value
|
||||
RRDTitle "Signal quality ({instance})"
|
||||
RRDVerticalLabel "Percent"
|
||||
RRDFormat "%5.1lf%%"
|
||||
DSName "value Signal quality"
|
||||
</Type>
|
||||
<Type snr>
|
||||
DataSources value
|
||||
RRDTitle "Signal / noise ratio ({instance})"
|
||||
RRDVerticalLabel "dBm"
|
||||
RRDFormat "%5.1lf"
|
||||
DSName "value S/N"
|
||||
</Type>
|
||||
<Type swap>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "Swap utilization on {hostname}"
|
||||
RRDVerticalLabel "Bytes"
|
||||
RRDFormat "%5.1lf%s"
|
||||
RRDOptions -b 1024 -l 0
|
||||
DSName "free Free "
|
||||
DSName "cached Cached "
|
||||
DSName "used Used "
|
||||
#Order used cached free
|
||||
Order free cached used
|
||||
Color free 00e000
|
||||
Color cached 0000ff
|
||||
Color used ff0000
|
||||
</Type>
|
||||
<Type table_size>
|
||||
Module TableSize
|
||||
DataSources value
|
||||
DSName value Bytes
|
||||
RRDTitle "Table size ({instance})"
|
||||
RRDVerticalLabel "Size [Bytes]"
|
||||
# RRDOptions ...
|
||||
RRDFormat "%5.1lf%s"
|
||||
</Type>
|
||||
<Type tcp_connections>
|
||||
Module GenericStacked
|
||||
DataSources value
|
||||
RRDTitle "TCP connections ({plugin_instance})"
|
||||
RRDVerticalLabel "Connections"
|
||||
RRDFormat "%5.1lf"
|
||||
Order LISTEN CLOSING LAST_ACK CLOSE_WAIT CLOSE TIME_WAIT FIN_WAIT2 FIN_WAIT1 SYN_RECV SYN_SENT ESTABLISHED CLOSED
|
||||
Color ESTABLISHED 00e000
|
||||
Color SYN_SENT 00e0ff
|
||||
Color SYN_RECV 00e0a0
|
||||
Color FIN_WAIT1 f000f0
|
||||
Color FIN_WAIT2 f000a0
|
||||
Color TIME_WAIT ffb000
|
||||
Color CLOSE 0000f0
|
||||
Color CLOSE_WAIT 0000a0
|
||||
Color LAST_ACK 000080
|
||||
Color LISTEN ff0000
|
||||
Color CLOSING 000000
|
||||
Color CLOSED 0000f0
|
||||
</Type>
|
||||
<Type temperature>
|
||||
DataSources value
|
||||
DSName value Temp
|
||||
RRDTitle "Temperature ({instance})"
|
||||
RRDVerticalLabel "°Celsius"
|
||||
RRDFormat "%4.1lf°C"
|
||||
</Type>
|
||||
<Type threads>
|
||||
DataSources value
|
||||
DSName "value Threads"
|
||||
RRDTitle "Threads ({instance})"
|
||||
RRDVerticalLabel "Threads"
|
||||
RRDFormat "%5.2lf"
|
||||
</Type>
|
||||
<Type total_requests>
|
||||
DataSources value
|
||||
DSName "value Requests/s"
|
||||
RRDTitle "Requests ({instance})"
|
||||
RRDVerticalLabel "Requests/s"
|
||||
RRDFormat "%6.2lf"
|
||||
</Type>
|
||||
<Type total_time_in_ms>
|
||||
DataSources value
|
||||
DSName "value Time"
|
||||
RRDTitle "Time {instance}"
|
||||
RRDVerticalLabel "Seconds"
|
||||
RRDFormat "%6.2lf %ss"
|
||||
Scale 0.001
|
||||
</Type>
|
||||
<Type users>
|
||||
DataSources value
|
||||
DSName value Users
|
||||
RRDTitle "Users ({type_instance}) on {hostname}"
|
||||
RRDVerticalLabel "Users"
|
||||
RRDFormat "%.1lf"
|
||||
Color value 0000f0
|
||||
</Type>
|
||||
<Type voltage>
|
||||
DataSources value
|
||||
DSName value Volts
|
||||
RRDTitle "Voltage ({type_instance})"
|
||||
RRDVerticalLabel "Volts"
|
||||
RRDFormat "%4.1lfV"
|
||||
Color value f00000
|
||||
</Type>
|
||||
<Type wirkleistung>
|
||||
Module Wirkleistung
|
||||
DataSources kWh
|
||||
DSName value Wh
|
||||
RRDTitle "Watt"
|
||||
RRDVerticalLabel "W"
|
||||
RRDFormat "%4.1lfW"
|
||||
</Type>
|
||||
|
||||
|
||||
#
|
||||
# RabbitMQ
|
||||
#
|
||||
|
||||
<Type ack>
|
||||
RRDTitle "Total ack for {instance}"
|
||||
</Type>
|
||||
<Type ack_details>
|
||||
RRDTitle "ack rate for {plugin_instance}: {type_instance}"
|
||||
RRDVerticalLabel "/s"
|
||||
</Type>
|
||||
|
||||
<Type confirm>
|
||||
RRDTitle "Total confirm for {instance}"
|
||||
</Type>
|
||||
|
||||
<Type consumers>
|
||||
RRDTitle "Total consumers for {instance}"
|
||||
</Type>
|
||||
<Type consumer_utilisation>
|
||||
RRDTitle "Consumer utilisation for {instance}"
|
||||
</Type>
|
||||
|
||||
<Type deliver>
|
||||
RRDTitle "Total deliver for {instance}"
|
||||
</Type>
|
||||
<Type deliver_details>
|
||||
RRDTitle "deliver rate for {plugin_instance}: {type_instance}"
|
||||
</Type>
|
||||
<Type deliver_get>
|
||||
RRDTitle "Total deliver-get for {instance}"
|
||||
</Type>
|
||||
<Type deliver_get_details>
|
||||
RRDTitle "deliver-get rate for {plugin_instance}: {type_instance}"
|
||||
</Type>
|
||||
<Type deliver_noack>
|
||||
RRDTitle "Total deliver-noack for {instance}"
|
||||
</Type>
|
||||
|
||||
<Type get>
|
||||
RRDTitle "Total get for {instance}"
|
||||
</Type>
|
||||
<Type get_details>
|
||||
RRDTitle "get rate for {plugin_instance}: {type_instance}"
|
||||
</Type>
|
||||
<Type get_noack>
|
||||
RRDTitle "Total get-noack for {instance}"
|
||||
</Type>
|
||||
|
||||
<Type messages>
|
||||
RRDTitle "Total messages in {instance}"
|
||||
</Type>
|
||||
<Type messages_ready>
|
||||
RRDTitle "Total ready messages in {instance}"
|
||||
</Type>
|
||||
<Type messages_unacknowledged>
|
||||
RRDTitle "Total unacknowledged messages in {instance}"
|
||||
</Type>
|
||||
|
||||
<Type publish>
|
||||
RRDTitle "Total publish for {instance}"
|
||||
</Type>
|
||||
<Type publish_details>
|
||||
RRDTitle "publish rate for {plugin_instance}: {type_instance}"
|
||||
</Type>
|
||||
<Type publish_in>
|
||||
RRDTitle "Total publish in {instance}"
|
||||
</Type>
|
||||
<Type publish_in_details>
|
||||
RRDTitle "publish-in rate for {plugin_instance}: {type_instance}"
|
||||
</Type>
|
||||
<Type publish_out>
|
||||
RRDTitle "Total publish out of {instance}"
|
||||
</Type>
|
||||
<Type publish_out_details>
|
||||
RRDTitle "publish-out rate for {plugin_instance}: {type_instance}"
|
||||
</Type>
|
||||
|
||||
<Type redeliver>
|
||||
RRDTitle "Total redeliver for {instance}"
|
||||
</Type>
|
||||
<Type redeliver_details>
|
||||
RRDTitle "redeliver rate for {plugin_instance}: {type_instance}"
|
||||
</Type>
|
||||
|
||||
<Type return>
|
||||
RRDTitle "Total return for {instance}"
|
||||
</Type>
|
||||
|
||||
<Type rabbitmq_details>
|
||||
RRDTitle "{instance}"
|
||||
</Type>
|
||||
<Type rabbitmq_exchanges>
|
||||
RRDTitle "Total number of exchanges"
|
||||
</Type>
|
||||
<Type rabbitmq_consumers>
|
||||
RRDTitle "Total number of consumers"
|
||||
</Type>
|
||||
<Type rabbitmq_queues>
|
||||
RRDTitle "Total number of queues"
|
||||
</Type>
|
||||
<Type rabbitmq_connections>
|
||||
RRDTitle "Total number of connections"
|
||||
</Type>
|
||||
<Type rabbitmq_channels>
|
||||
RRDTitle "Total number of channels"
|
||||
</Type>
|
||||
<Type rabbitmq_messages>
|
||||
RRDTitle "Queue totals: messages"
|
||||
</Type>
|
||||
<Type rabbitmq_messages_ready>
|
||||
RRDTitle "Queue totals: messages ready"
|
||||
</Type>
|
||||
<Type rabbitmq_messages_unacknowledged>
|
||||
RRDTitle "Queue totals: messages unacknowledged"
|
||||
</Type>
|
||||
|
||||
# Server
|
||||
|
||||
<Type disk_free>
|
||||
RRDTitle "Free disk space on {plugin}"
|
||||
</Type>
|
||||
<Type disk_free_limit>
|
||||
RRDTitle "Disk free limit on {plugin}"
|
||||
</Type>
|
||||
<Type disk_free_details>
|
||||
RRDTitle "Disk free details for {plugin}: {type_instance}"
|
||||
</Type>
|
||||
|
||||
<Type fd_total>
|
||||
RRDTitle "Total FD for {plugin}"
|
||||
</Type>
|
||||
<Type fd_used>
|
||||
RRDTitle "FD used for {plugin}"
|
||||
</Type>
|
||||
<Type fd_used_details>
|
||||
RRDTitle "FD used details for {plugin}: {type_instance}"
|
||||
</Type>
|
||||
|
||||
<Type mem_limit>
|
||||
RRDTitle "Memory limit for {plugin}"
|
||||
</Type>
|
||||
<Type mem_used>
|
||||
RRDTitle "Memory used on {plugin}"
|
||||
</Type>
|
||||
<Type mem_used_details>
|
||||
RRDTitle "Memory used details for {plugin}: {type_instance}"
|
||||
</Type>
|
||||
|
||||
<Type proc_total>
|
||||
RRDTitle "Max Erlang processes for {plugin}"
|
||||
</Type>
|
||||
<Type proc_used>
|
||||
RRDTitle "Erlang processes used on {plugin}"
|
||||
</Type>
|
||||
<Type proc_used_details>
|
||||
RRDTitle "Erlang processes details for {plugin}: {type_instance}"
|
||||
</Type>
|
||||
<Type run_queue>
|
||||
RRDTitle "Run queue size on {plugin}"
|
||||
</Type>
|
||||
<Type processors>
|
||||
RRDTitle "Total processor on {plugin}"
|
||||
</Type>
|
||||
|
||||
<Type sockets_total>
|
||||
RRDTitle "Max sockets for {plugin}"
|
||||
</Type>
|
||||
<Type sockets_used>
|
||||
RRDTitle "Sockets used on {plugin}"
|
||||
</Type>
|
||||
<Type sockets_used_details>
|
||||
RRDTitle "Sockets details for {plugin}: {type_instance}"
|
||||
</Type>
|
||||
|
||||
|
||||
#
|
||||
# IPA
|
||||
#
|
||||
<Type ipa_groups>
|
||||
RRDTitle "Groups"
|
||||
DSName "value Total "
|
||||
</Type>
|
||||
|
||||
<Type ipa_users_rate>
|
||||
RRDTitle "Users registration rate"
|
||||
DSName "value Rate "
|
||||
RRDFormat "%4.1lf%s/s"
|
||||
</Type>
|
||||
|
||||
<Type ipa_users>
|
||||
Module GenericStacked
|
||||
RRDTitle "Users"
|
||||
RRDFormat "%5.1lf%s"
|
||||
DSName "active Active "
|
||||
DSName "locked Locked "
|
||||
Order locked active
|
||||
Color locked ff0000
|
||||
Color active 0000ff
|
||||
</Type>
|
||||
|
||||
<Type ipa_staged_users>
|
||||
Module GenericStacked
|
||||
RRDTitle "Registering Users"
|
||||
RRDFormat "%4.0lf"
|
||||
DSName "active Not Spam "
|
||||
DSName "spamcheck_awaiting Awaiting "
|
||||
DSName "spamcheck_denied SPAM "
|
||||
DSName "spamcheck_manual Manual "
|
||||
Order spamcheck_awaiting spamcheck_denied spamcheck_manual active
|
||||
Color spamcheck_awaiting 0000ff
|
||||
Color spamcheck_denied ff0000
|
||||
Color spamcheck_manual ffb000
|
||||
Color active 00ff00
|
||||
</Type>
|
||||
|
||||
|
||||
#
|
||||
# FMN
|
||||
#
|
||||
<Type fmn_cache>
|
||||
RRDTitle "Cache rebuild time for {type_instance}"
|
||||
DSName "value seconds "
|
||||
</Type>
|
||||
|
||||
<Type fmn_users>
|
||||
RRDTitle "Active users"
|
||||
DSName "value users "
|
||||
</Type>
|
||||
|
||||
|
||||
|
||||
# vim: set sw=2 sts=2 et syntax=apache fileencoding=utf-8 :
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
fmn_cache value:GAUGE:0:U
|
||||
fmn_users value:GAUGE:0:U
|
||||
|
|
@ -1 +0,0 @@
|
|||
TypesDB "/usr/share/collectd/fmn-types.db"
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
LoadPlugin ping
|
||||
|
||||
<Plugin "ping">
|
||||
Host "vmhost-x86-cc01.rdu-cc.fedoraproject.org"
|
||||
Host "osuosl02.fedoraproject.org"
|
||||
Host "ibiblio02.fedoraproject.org"
|
||||
Host "ibiblio05.fedoraproject.org"
|
||||
Host "internetx02.fedoraproject.org"
|
||||
</Plugin>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
LoadPlugin rrdtool
|
||||
|
||||
<Plugin rrdtool>
|
||||
DataDir "/var/lib/collectd/rrd"
|
||||
CacheTimeout 180
|
||||
CacheFlush 7200
|
||||
WritesPerSecond 50
|
||||
</Plugin>
|
||||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# Give collectd the time to flush data to rrd files on disk
|
||||
[Service]
|
||||
TimeoutStopSec=5m
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
LoadPlugin unixsock
|
||||
<Plugin unixsock>
|
||||
SocketFile "/var/run/collectd-unixsock"
|
||||
SocketGroup "apache"
|
||||
SocketPerms "0660"
|
||||
DeleteSocket true
|
||||
</Plugin>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
LoadPlugin target_v5upgrade
|
||||
PreCacheChain "PreCache"
|
||||
<Chain "PreCache">
|
||||
Target "v5upgrade"
|
||||
</Chain>
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
---
|
||||
# collectd server setup
|
||||
|
||||
# install pkg
|
||||
- name: Install collectd server packages (rhel 7)
|
||||
ansible.builtin.package: name={{ item }} state=present
|
||||
with_items:
|
||||
- collectd-rrdtool
|
||||
- collectd-web
|
||||
- collectd-rabbitmq-data
|
||||
notify:
|
||||
- Restart collectd
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
when: ansible_distribution_major_version|int == 7
|
||||
|
||||
- name: Install collectd server packages (rhel 8)
|
||||
ansible.builtin.package: name={{ item }} state=present
|
||||
with_items:
|
||||
- collectd-rrdtool
|
||||
- collectd-web
|
||||
- collectd-rabbitmq-data
|
||||
- collectd-ipa-data
|
||||
notify:
|
||||
- Restart collectd
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
when: ansible_distribution_major_version|int >= 8
|
||||
|
||||
# install collectd types
|
||||
- name: Install collectd types
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: /usr/share/collectd/{{ item }}
|
||||
loop:
|
||||
- fmn-types.db
|
||||
notify:
|
||||
- Restart collectd
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
||||
# install collectd configs
|
||||
- name: Install collectd config
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/collectd.d/{{ item }}
|
||||
loop:
|
||||
- rrdtool.conf
|
||||
- fmn.conf
|
||||
- unixsock.conf
|
||||
notify:
|
||||
- Restart collectd
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
||||
# install apache config
|
||||
- name: Install collectd apache config
|
||||
ansible.builtin.copy: src=collectd.conf dest=/etc/httpd/conf.d/collectd.conf
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
||||
# install upgrade target
|
||||
- name: Install collect upgrade target to handle v4 clients
|
||||
ansible.builtin.copy: src=vfive-upgrade.conf dest=/etc/collectd.d/vfive-upgrade.conf
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
||||
# create /var/log/collectd as it's on a larger volume
|
||||
- name: Create /var/log/collectd
|
||||
ansible.builtin.file: path=/var/log/collectd owner=root group=root mode=0755 state=directory
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
||||
# push our custom config file for the graph CGIs
|
||||
- name: Push the collection.conf file
|
||||
ansible.builtin.copy:
|
||||
src: collection.conf
|
||||
dest: /etc/collection.conf
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
||||
- name: Create the service configuration directory
|
||||
ansible.builtin.file:
|
||||
path: /etc/systemd/system/collectd.service.d
|
||||
state: directory
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
|
||||
- name: Override the timeout for stopping collectd
|
||||
ansible.builtin.copy:
|
||||
src: service.timeout.conf
|
||||
dest: /etc/systemd/system/collectd.service.d/timeout.conf
|
||||
notify:
|
||||
- Reload systemd
|
||||
tags:
|
||||
- config
|
||||
- collectd/server
|
||||
Loading…
Add table
Add a link
Reference in a new issue