83 lines
1.5 KiB
Plaintext
83 lines
1.5 KiB
Plaintext
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
||
|
|
||
|
Hostname "{{ grains.get('fqdn') }}"
|
||
|
FQDNLookup true
|
||
|
Interval 60.0
|
||
|
|
||
|
TypesDB "/usr/share/collectd/types.db"
|
||
|
|
||
|
LoadPlugin battery
|
||
|
LoadPlugin contextswitch
|
||
|
LoadPlugin cpu
|
||
|
LoadPlugin df
|
||
|
LoadPlugin disk
|
||
|
LoadPlugin entropy
|
||
|
LoadPlugin interface
|
||
|
LoadPlugin irq
|
||
|
LoadPlugin load
|
||
|
LoadPlugin memory
|
||
|
LoadPlugin network
|
||
|
#LoadPlugin ping
|
||
|
LoadPlugin processes
|
||
|
#LoadPlugin rrdtool
|
||
|
LoadPlugin sensors
|
||
|
LoadPlugin swap
|
||
|
LoadPlugin syslog
|
||
|
LoadPlugin tcpconns
|
||
|
LoadPlugin uptime
|
||
|
LoadPlugin users
|
||
|
|
||
|
<Plugin cpu>
|
||
|
ReportByCpu true
|
||
|
ReportByState true
|
||
|
ValuesPercentage false
|
||
|
ReportNumCpu false
|
||
|
ReportGuestState false
|
||
|
SubtractGuestState true
|
||
|
</Plugin>
|
||
|
|
||
|
<Plugin df>
|
||
|
FSType rootfs
|
||
|
FSType sysfs
|
||
|
FSType proc
|
||
|
FSType devtmpfs
|
||
|
FSType devpts
|
||
|
FSType tmpfs
|
||
|
FSType fusectl
|
||
|
FSType cgroup
|
||
|
IgnoreSelected true
|
||
|
</Plugin>
|
||
|
|
||
|
<Plugin network>
|
||
|
Server "{{ salt['pillar.get']('collectd:hostname') }}" "{{ salt['pillar.get']('collectd:port')}}"
|
||
|
Username "{{ salt['pillar.get']('collectd:username') }}"
|
||
|
Password "{{ salt['pillar.get']('collectd:password') }}"
|
||
|
</Plugin>
|
||
|
|
||
|
#<Plugin rrdtool>
|
||
|
# DataDir "/var/lib/collectd/rrd"
|
||
|
#</Plugin>
|
||
|
|
||
|
<Plugin syslog>
|
||
|
LogLevel info
|
||
|
</Plugin>
|
||
|
|
||
|
<Plugin "tail">
|
||
|
<File "/var/log/auth.log">
|
||
|
Instance "auth"
|
||
|
<Match>
|
||
|
Regex "\\<sshd[^:]*: Invalid user [^ ]+ from\\>"
|
||
|
DSType "CounterInc"
|
||
|
Type "counter"
|
||
|
Instance "sshd-invalid_user"
|
||
|
</Match>
|
||
|
</File>
|
||
|
</Plugin>
|
||
|
|
||
|
<Plugin "tcpconns">
|
||
|
ListeningPorts true
|
||
|
</Plugin>
|
||
|
|
||
|
<Include "/etc/collectd/collectd.conf.d">
|
||
|
Filter "*.conf"
|
||
|
</Include>
|