diff --git a/monitoring/collectd/client/AP-collectd.conf b/monitoring/collectd/client/AP-collectd.conf new file mode 100644 index 0000000..0c463de --- /dev/null +++ b/monitoring/collectd/client/AP-collectd.conf @@ -0,0 +1,112 @@ +############################################################################## +# Global # +#----------------------------------------------------------------------------# +# Global settings for the daemon. # +############################################################################## + +#Hostname "localhost" +FQDNLookup false +#BaseDir "/var/lib/collectd" +#PluginDir "/usr/lib/collectd" +TypesDB "/usr/share/collectd/types.db" "/etc/collectd/openwrt.db" + +#----------------------------------------------------------------------------# +# Interval at which to query values. This may be overwritten on a per-plugin # +# base by using the 'Interval' option of the LoadPlugin block: # +# # +# Interval 60 # +# # +#----------------------------------------------------------------------------# +Interval 10 + +#Timeout 2 +#ReadThreads 5 +# avoid race conditions if multiple datapoints are packed in a single packet +WriteThreads 2 + +# Logging +LoadPlugin syslog + + LogLevel info + + +# now start collecting +LoadPlugin cpu + +# free space +LoadPlugin df + + # Ignore listed filesystems + IgnoreSelected true + # and select all virtual crap + FSType bdev + FSType binfmt_misc + FSType cgroup + FSType cpuset + FSType debugfs + FSType devpts + FSType devtmpfs + FSType hugetlbfs + FSType mqueue + FSType pipefs + FSType proc + FSType pstore + FSType ramfs + FSType rootfs + FSType rpc_pipefs + FSType securityfs + FSType sockfs + FSType sysfs + FSType tmpfs + + +# IOPS +LoadPlugin disk + +# LOADAVG +LoadPlugin load + +# Ram utilisation +LoadPlugin memory + +# SWAP +LoadPlugin swap + +# Logged in +LoadPlugin users + +# traffic +LoadPlugin interface + + # ignore the bridge (useless) + IgnoreSelected true + Interface "br-lan" + + +# IRQ +LoadPlugin irq + +# Connection tracking table +LoadPlugin ConnTrack + +# context switches (how hard we are working) +LoadPlugin ContextSwitch + +# general wireless statistics (iwinfo) +LoadPlugin iwinfo + +# wireless power/quality not extremely usefull +LoadPlugin wireless + +# now lets send some data here and there +# def port 25826 +LoadPlugin network + + # FIXME: Add the propper collector name (ERIC?) + + # FIXME: put the propper managment interface + Interface eth0.100 + ResolveInterval 30 + + ReportStats true + diff --git a/monitoring/collectd/client/README.md b/monitoring/collectd/client/README.md new file mode 100644 index 0000000..7ffde49 --- /dev/null +++ b/monitoring/collectd/client/README.md @@ -0,0 +1 @@ +# Collectd client configs diff --git a/monitoring/collectd/client/openwrt.db b/monitoring/collectd/client/openwrt.db new file mode 100644 index 0000000..be918b6 --- /dev/null +++ b/monitoring/collectd/client/openwrt.db @@ -0,0 +1,4 @@ +stations value:GAUGE:0:256 +signal_noise_mw value:GAUGE:0:U +signal_power_mw value:GAUGE:0:U +