Package init
This commit is contained in:
parent
562f13a90b
commit
d1f134d9e2
7
apache.conf
Normal file
7
apache.conf
Normal file
@ -0,0 +1,7 @@
|
||||
LoadPlugin apache
|
||||
#<Plugin apache>
|
||||
# URL "http://localhost/status?auto"
|
||||
# User "www-user"
|
||||
# Password "secret"
|
||||
# CACert "/etc/ssl/ca.crt"
|
||||
#</Plugin>
|
||||
BIN
collectd-5.9.0.tar.bz2
Normal file
BIN
collectd-5.9.0.tar.bz2
Normal file
Binary file not shown.
30
collectd-httpd.conf
Normal file
30
collectd-httpd.conf
Normal file
@ -0,0 +1,30 @@
|
||||
# Configuration for collectd.
|
||||
|
||||
Alias /collectd/ /usr/share/collectd/collection3/
|
||||
|
||||
<Directory "/usr/share/collectd/collection3/">
|
||||
Require local
|
||||
# Require all granted
|
||||
DirectoryIndex bin/index.cgi
|
||||
DirectoryIndexRedirect on
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/collectd/collection3/etc/">
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/collectd/collection3/lib/">
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/collectd/collection3/share/">
|
||||
Require local
|
||||
# Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/collectd/collection3/bin/">
|
||||
Options ExecCGI
|
||||
AddHandler cgi-script .cgi
|
||||
Require local
|
||||
# Require all granted
|
||||
</Directory>
|
||||
30
collectd-include-collectd.d.patch
Normal file
30
collectd-include-collectd.d.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From ab946c74080ef9608a324f9fca85ae6c6d1eef69 Mon Sep 17 00:00:00 2001
|
||||
From: Ruben Kerkhof <ruben@rubenkerkhof.com>
|
||||
Date: Sat, 30 Jan 2016 17:18:05 +0100
|
||||
Subject: [PATCH] Disable rrdtool, include /etc/collectd.d
|
||||
|
||||
---
|
||||
src/collectd.conf.in | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
|
||||
index 07d66cd7595e..b91350ca16f4 100644
|
||||
--- a/src/collectd.conf.in
|
||||
+++ b/src/collectd.conf.in
|
||||
@@ -168,7 +168,7 @@
|
||||
#@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
|
||||
#@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
|
||||
#@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
|
||||
-@LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
|
||||
+#@LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
|
||||
#@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
|
||||
#@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
|
||||
#@BUILD_PLUGIN_SIGROK_TRUE@LoadPlugin sigrok
|
||||
@@ -1497,3 +1497,4 @@
|
||||
# </Type>
|
||||
# </Host>
|
||||
#</Plugin>
|
||||
+Include "/etc/collectd.d"
|
||||
--
|
||||
2.5.0
|
||||
|
||||
13
collectd.service
Normal file
13
collectd.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Collectd statistics daemon
|
||||
Documentation=man:collectd(1) man:collectd.conf(5)
|
||||
After=local-fs.target network-online.target
|
||||
Requires=local-fs.target network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/collectd
|
||||
Restart=on-failure
|
||||
Type=notify
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
1040
collectd.spec
Normal file
1040
collectd.spec
Normal file
File diff suppressed because it is too large
Load Diff
7
email.conf
Normal file
7
email.conf
Normal file
@ -0,0 +1,7 @@
|
||||
LoadPlugin email
|
||||
#<Plugin email>
|
||||
# SocketFile "/usr/var/run/collectd-email"
|
||||
# SocketGroup "collectd"
|
||||
# SocketPerms "0770"
|
||||
# MaxConns 5
|
||||
#</Plugin>
|
||||
7
mysql.conf
Normal file
7
mysql.conf
Normal file
@ -0,0 +1,7 @@
|
||||
LoadPlugin mysql
|
||||
#<Plugin mysql>
|
||||
# Host "database.serv.er"
|
||||
# User "db_user"
|
||||
# Password "secret"
|
||||
# Database "db_name"
|
||||
#</Plugin>
|
||||
7
nginx.conf
Normal file
7
nginx.conf
Normal file
@ -0,0 +1,7 @@
|
||||
LoadPlugin nginx
|
||||
#<Plugin nginx>
|
||||
# URL "http://localhost/status?auto"
|
||||
# User "www-user"
|
||||
# Password "secret"
|
||||
# CACert "/etc/ssl/ca.crt"
|
||||
#</Plugin>
|
||||
6
onewire.conf
Normal file
6
onewire.conf
Normal file
@ -0,0 +1,6 @@
|
||||
LoadPlugin onewire
|
||||
#<Plugin onewire>
|
||||
# Device "-s localhost:4304"
|
||||
# Sensor "F10FCA000800"
|
||||
# IgnoreSelected false
|
||||
#</Plugin>
|
||||
6
rrdtool.conf
Normal file
6
rrdtool.conf
Normal file
@ -0,0 +1,6 @@
|
||||
LoadPlugin rrdtool
|
||||
<Plugin rrdtool>
|
||||
DataDir "/var/lib/collectd/rrd"
|
||||
CacheTimeout 120
|
||||
CacheFlush 900
|
||||
</Plugin>
|
||||
7
sensors.conf
Normal file
7
sensors.conf
Normal file
@ -0,0 +1,7 @@
|
||||
LoadPlugin sensors
|
||||
#<Plugin sensors>
|
||||
# Sensor "it8712-isa-0290/temperature-temp1"
|
||||
# Sensor "it8712-isa-0290/fanspeed-fan3"
|
||||
# Sensor "it8712-isa-0290/voltage-in8"
|
||||
# IgnoreSelected false
|
||||
#</Plugin>
|
||||
42
snmp.conf
Normal file
42
snmp.conf
Normal file
@ -0,0 +1,42 @@
|
||||
LoadPlugin snmp
|
||||
#<Plugin snmp>
|
||||
# <Data "powerplus_voltge_input">
|
||||
# Type "voltage"
|
||||
# Table false
|
||||
# Instance "input_line1"
|
||||
# Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
|
||||
# </Data>
|
||||
# <Data "hr_users">
|
||||
# Type "users"
|
||||
# Table false
|
||||
# Instance ""
|
||||
# Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
|
||||
# </Data>
|
||||
# <Data "std_traffic">
|
||||
# Type "if_octets"
|
||||
# Table true
|
||||
# Instance "IF-MIB::ifDescr"
|
||||
# Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
|
||||
# </Data>
|
||||
#
|
||||
# <Host "some.switch.mydomain.org">
|
||||
# Address "192.168.0.2"
|
||||
# Version 1
|
||||
# Community "community_string"
|
||||
# Collect "std_traffic"
|
||||
# Inverval 120
|
||||
# </Host>
|
||||
# <Host "some.server.mydomain.org">
|
||||
# Address "192.168.0.42"
|
||||
# Version 2
|
||||
# Community "another_string"
|
||||
# Collect "std_traffic" "hr_users"
|
||||
# </Host>
|
||||
# <Host "some.ups.mydomain.org">
|
||||
# Address "192.168.0.3"
|
||||
# Version 1
|
||||
# Community "more_communities"
|
||||
# Collect "powerplus_voltge_input"
|
||||
# Interval 300
|
||||
# </Host>
|
||||
#</Plugin>
|
||||
Loading…
x
Reference in New Issue
Block a user