collectd.conf.j2 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  1. # This file is managed by ansible, don't make changes here - they will be overwritten.
  2. # Config file for collectd(1).
  3. #
  4. # Some plugins need additional configuration and are disabled by default.
  5. # Please read collectd.conf(5) for details.
  6. #
  7. # You should also read /usr/share/doc/collectd-core/README.Debian.plugins
  8. # before enabling any more plugins.
  9. Hostname "{{ inventory_hostname }}"
  10. FQDNLookup true
  11. #BaseDir "/var/lib/collectd"
  12. #PluginDir "/usr/lib/collectd"
  13. #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
  14. Interval 10
  15. #Timeout 2
  16. #ReadThreads 5
  17. #LoadPlugin logfile
  18. LoadPlugin syslog
  19. #<Plugin logfile>
  20. # LogLevel "info"
  21. # File STDOUT
  22. # Timestamp true
  23. # PrintSeverity false
  24. #</Plugin>
  25. <Plugin syslog>
  26. LogLevel info
  27. </Plugin>
  28. #LoadPlugin amqp
  29. #LoadPlugin apache
  30. #LoadPlugin apcups
  31. #LoadPlugin ascent
  32. #LoadPlugin battery
  33. {% if collectd.collect_bind %}
  34. LoadPlugin bind
  35. {% endif %}
  36. #LoadPlugin conntrack
  37. LoadPlugin contextswitch
  38. LoadPlugin cpu
  39. #LoadPlugin cpufreq
  40. #LoadPlugin csv
  41. #LoadPlugin curl
  42. #LoadPlugin curl_json
  43. #LoadPlugin curl_xml
  44. #LoadPlugin dbi
  45. LoadPlugin df
  46. LoadPlugin disk
  47. #LoadPlugin dns
  48. #LoadPlugin email
  49. LoadPlugin entropy
  50. #LoadPlugin ethstat
  51. #LoadPlugin exec
  52. #LoadPlugin filecount
  53. #LoadPlugin fscache
  54. #LoadPlugin gmond
  55. #LoadPlugin hddtemp
  56. LoadPlugin interface
  57. #LoadPlugin ipmi
  58. #LoadPlugin iptables
  59. #LoadPlugin ipvs
  60. LoadPlugin irq
  61. #LoadPlugin java
  62. #LoadPlugin libvirt
  63. LoadPlugin load
  64. #LoadPlugin madwifi
  65. #LoadPlugin mbmon
  66. #LoadPlugin md
  67. #LoadPlugin memcachec
  68. #LoadPlugin memcached
  69. LoadPlugin memory
  70. #LoadPlugin multimeter
  71. #LoadPlugin mysql
  72. #LoadPlugin netlink
  73. #LoadPlugin network
  74. #LoadPlugin nfs
  75. {% if collectd.collect_nginx is defined and collectd.collect_nginx %}
  76. LoadPlugin nginx
  77. {% endif %}
  78. #LoadPlugin notify_desktop
  79. #LoadPlugin notify_email
  80. #LoadPlugin ntpd
  81. #LoadPlugin numa
  82. #LoadPlugin nut
  83. #LoadPlugin olsrd
  84. #LoadPlugin openvpn
  85. #<LoadPlugin perl>
  86. # Globals true
  87. #</LoadPlugin>
  88. #LoadPlugin pinba
  89. {% if collectd.collect_ping %}
  90. LoadPlugin ping
  91. {% endif %}
  92. #LoadPlugin postgresql
  93. #LoadPlugin powerdns
  94. LoadPlugin processes
  95. LoadPlugin protocols
  96. {% if collectd.collect_dhcp or collectd.collect_fastd or collectd.collect_l2tp or collectd.collect_ipv4ipv6 or collectd.collect_sysctl %}
  97. <LoadPlugin python>
  98. Globals true
  99. </LoadPlugin>
  100. {% endif %}
  101. #LoadPlugin rrdcached
  102. #LoadPlugin rrdtool
  103. #LoadPlugin sensors
  104. #LoadPlugin serial
  105. #LoadPlugin snmp
  106. LoadPlugin swap
  107. #LoadPlugin table
  108. #LoadPlugin tail
  109. #LoadPlugin tcpconns
  110. #LoadPlugin teamspeak2
  111. #LoadPlugin ted
  112. #LoadPlugin thermal
  113. #LoadPlugin tokyotyrant
  114. #LoadPlugin unixsock
  115. LoadPlugin uptime
  116. #LoadPlugin users
  117. #LoadPlugin uuid
  118. #LoadPlugin varnish
  119. #LoadPlugin vmem
  120. #LoadPlugin vserver
  121. #LoadPlugin wireless
  122. LoadPlugin write_graphite
  123. #LoadPlugin write_http
  124. #LoadPlugin write_mongodb
  125. #<Plugin amqp>
  126. # <Publish "name">
  127. # Host "localhost"
  128. # Port "5672"
  129. # VHost "/"
  130. # User "guest"
  131. # Password "guest"
  132. # Exchange "amq.fanout"
  133. # RoutingKey "collectd"
  134. # Persistent false
  135. # StoreRates false
  136. # </Publish>
  137. #</Plugin>
  138. #<Plugin apache>
  139. # <Instance "foo">
  140. # URL "http://localhost/server-status?auto"
  141. # User "www-user"
  142. # Password "secret"
  143. # VerifyPeer false
  144. # VerifyHost false
  145. # CACert "/etc/ssl/ca.crt"
  146. # Server "apache"
  147. # </Instance>
  148. #
  149. # <Instance "bar">
  150. # URL "http://some.domain.tld/status?auto"
  151. # Host "some.domain.tld"
  152. # Server "lighttpd"
  153. # </Instance>
  154. #</Plugin>
  155. #<Plugin apcups>
  156. # Host "localhost"
  157. # Port "3551"
  158. #</Plugin>
  159. #<Plugin ascent>
  160. # URL "http://localhost/ascent/status/"
  161. # User "www-user"
  162. # Password "secret"
  163. # VerifyPeer false
  164. # VerifyHost false
  165. # CACert "/etc/ssl/ca.crt"
  166. #</Plugin>
  167. {% if collectd.collect_bind %}
  168. <Plugin "bind">
  169. URL "http://localhost:8053/"
  170. ParseTime true
  171. OpCodes true
  172. QTypes true
  173. ServerStats true
  174. ZoneMaintStats true
  175. ResolverStats true
  176. MemoryStats true
  177. # <View "_default">
  178. # QTypes true
  179. # ResolverStats true
  180. # CacheRRSets true
  181. # Zone "127.in-addr.arpa/IN"
  182. # </View>
  183. </Plugin>
  184. {% endif %}
  185. #<Plugin "bind">
  186. # URL "http://localhost:8053/"
  187. #
  188. # ParseTime false
  189. #
  190. # OpCodes true
  191. # QTypes true
  192. # ServerStats true
  193. # ZoneMaintStats true
  194. # ResolverStats false
  195. # MemoryStats true
  196. #
  197. # <View "_default">
  198. # QTypes true
  199. # ResolverStats true
  200. # CacheRRSets true
  201. #
  202. # Zone "127.in-addr.arpa/IN"
  203. # </View>
  204. #</Plugin>
  205. #<Plugin csv>
  206. # DataDir "/var/lib/collectd/csv"
  207. # StoreRates false
  208. #</Plugin>
  209. #<Plugin curl>
  210. # <Page "stock_quotes">
  211. # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
  212. # User "foo"
  213. # Password "bar"
  214. # VerifyPeer false
  215. # VerifyHost false
  216. # CACert "/etc/ssl/ca.crt"
  217. # MeasureResponseTime false
  218. # <Match>
  219. # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
  220. # DSType "GaugeAverage"
  221. # Type "stock_value"
  222. # Instance "AMD"
  223. # </Match>
  224. # </Page>
  225. #</Plugin>
  226. #<Plugin curl_json>
  227. ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
  228. # <URL "http://localhost:5984/_stats">
  229. # Instance "httpd"
  230. # <Key "httpd/requests/count">
  231. # Type "http_requests"
  232. # </Key>
  233. #
  234. # <Key "httpd_request_methods/*/count">
  235. # Type "http_request_methods"
  236. # </Key>
  237. #
  238. # <Key "httpd_status_codes/*/count">
  239. # Type "http_response_codes"
  240. # </Key>
  241. # </URL>
  242. ## Database status metrics:
  243. # <URL "http://localhost:5984/_all_dbs">
  244. # Instance "dbs"
  245. # <Key "*/doc_count">
  246. # Type "gauge"
  247. # </Key>
  248. # <Key "*/doc_del_count">
  249. # Type "counter"
  250. # </Key>
  251. # <Key "*/disk_size">
  252. # Type "bytes"
  253. # </Key>
  254. # </URL>
  255. #</Plugin>
  256. #<Plugin "curl_xml">
  257. # <URL "http://localhost/stats.xml">
  258. # Host "my_host"
  259. # Instance "some_instance"
  260. # User "collectd"
  261. # Password "thaiNg0I"
  262. # VerifyPeer true
  263. # VerifyHost true
  264. # CACert "/path/to/ca.crt"
  265. #
  266. # <XPath "table[@id=\"magic_level\"]/tr">
  267. # Type "magic_level"
  268. # InstancePrefix "prefix-"
  269. # InstanceFrom "td[1]"
  270. # ValuesFrom "td[2]/span[@class=\"level\"]"
  271. # </XPath>
  272. # </URL>
  273. #</Plugin>
  274. #<Plugin dbi>
  275. # <Query "num_of_customers">
  276. # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
  277. # FROM customers_tbl"
  278. # MinVersion 40102
  279. # MaxVersion 50042
  280. # <Result>
  281. # Type "gauge"
  282. # InstancePrefix "customer"
  283. # InstancesFrom "c_key"
  284. # ValuesFrom "c_value"
  285. # </Result>
  286. # </Query>
  287. #
  288. # <Database "customers_db">
  289. # Driver "mysql"
  290. # DriverOption "host" "localhost"
  291. # DriverOption "username" "collectd"
  292. # DriverOption "password" "secret"
  293. # DriverOption "dbname" "custdb0"
  294. # SelectDB "custdb0"
  295. # Query "num_of_customers"
  296. # Query "..."
  297. # </Database>
  298. #</Plugin>
  299. #<Plugin df>
  300. # Device "/dev/sda1"
  301. # Device "192.168.0.2:/mnt/nfs"
  302. # MountPoint "/home"
  303. # FSType "ext3"
  304. # IgnoreSelected false
  305. # ReportByDevice false
  306. # ReportReserved false
  307. # ReportInodes false
  308. #</Plugin>
  309. #<Plugin disk>
  310. # Disk "hda"
  311. # Disk "/sda[23]/"
  312. # IgnoreSelected false
  313. #</Plugin>
  314. #<Plugin dns>
  315. # Interface "eth0"
  316. # IgnoreSource "192.168.0.1"
  317. # SelectNumericQueryTypes false
  318. #</Plugin>
  319. #<Plugin email>
  320. # SocketFile "/var/run/collectd-email"
  321. # SocketGroup "collectd"
  322. # SocketPerms "0770"
  323. # MaxConns 5
  324. #</Plugin>
  325. #<Plugin ethstat>
  326. # Interface "eth0"
  327. # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
  328. # Map "multicast" "if_multicast"
  329. # MappedOnly false
  330. #</Plugin>
  331. #<Plugin exec>
  332. # Exec user "/path/to/exec"
  333. # Exec "user:group" "/path/to/exec"
  334. # NotificationExec user "/path/to/exec"
  335. #</Plugin>
  336. #<Plugin filecount>
  337. # <Directory "/path/to/dir">
  338. # Instance "foodir"
  339. # Name "*.conf"
  340. # MTime "-5m"
  341. # Size "+10k"
  342. # Recursive true
  343. # IncludeHidden false
  344. # </Directory>
  345. #</Plugin>
  346. #<Plugin gmond>
  347. # MCReceiveFrom "239.2.11.71" "8649"
  348. #
  349. # <Metric "swap_total">
  350. # Type "swap"
  351. # TypeInstance "total"
  352. # DataSource "value"
  353. # </Metric>
  354. #
  355. # <Metric "swap_free">
  356. # Type "swap"
  357. # TypeInstance "free"
  358. # DataSource "value"
  359. # </Metric>
  360. #</Plugin>
  361. #<Plugin hddtemp>
  362. # Host "127.0.0.1"
  363. # Port 7634
  364. #</Plugin>
  365. <Plugin interface>
  366. Interface "/^l2tp*/"
  367. IgnoreSelected true
  368. </Plugin>
  369. #<Plugin ipmi>
  370. # Sensor "some_sensor"
  371. # Sensor "another_one"
  372. # IgnoreSelected false
  373. # NotifySensorAdd false
  374. # NotifySensorRemove true
  375. # NotifySensorNotPresent false
  376. #</Plugin>
  377. #<Plugin iptables>
  378. # Chain "table" "chain"
  379. #</Plugin>
  380. #<Plugin irq>
  381. # Irq 7
  382. # Irq 8
  383. # Irq 9
  384. # IgnoreSelected true
  385. #</Plugin>
  386. #<Plugin java>
  387. # JVMArg "-verbose:jni"
  388. # JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
  389. #
  390. # LoadPlugin "org.collectd.java.GenericJMX"
  391. # <Plugin "GenericJMX">
  392. # # See /usr/share/doc/collectd/examples/GenericJMX.conf
  393. # # for an example config.
  394. # </Plugin>
  395. #</Plugin>
  396. #<Plugin libvirt>
  397. # Connection "xen:///"
  398. # RefreshInterval 60
  399. # Domain "name"
  400. # BlockDevice "name:device"
  401. # InterfaceDevice "name:device"
  402. # IgnoreSelected false
  403. # HostnameFormat name
  404. # InterfaceFormat name
  405. #</Plugin>
  406. #<Plugin madwifi>
  407. # Interface "wlan0"
  408. # IgnoreSelected false
  409. # Source "SysFS"
  410. # WatchSet "None"
  411. # WatchAdd "node_octets"
  412. # WatchAdd "node_rssi"
  413. # WatchAdd "is_rx_acl"
  414. # WatchAdd "is_scan_active"
  415. #</Plugin>
  416. #<Plugin mbmon>
  417. # Host "127.0.0.1"
  418. # Port 411
  419. #</Plugin>
  420. #<Plugin md>
  421. # Device "/dev/md0"
  422. # IgnoreSelected false
  423. #</Plugin>
  424. #<Plugin memcachec>
  425. # <Page "plugin_instance">
  426. # Server "localhost"
  427. # Key "page_key"
  428. # <Match>
  429. # Regex "(\\d+) bytes sent"
  430. # ExcludeRegex "<lines to be excluded>"
  431. # DSType CounterAdd
  432. # Type "ipt_octets"
  433. # Instance "type_instance"
  434. # </Match>
  435. # </Page>
  436. #</Plugin>
  437. #<Plugin memcached>
  438. # Socket "/var/run/memcached.sock"
  439. # or:
  440. # Host "127.0.0.1"
  441. # Port "11211"
  442. #</Plugin>
  443. #<Plugin mysql>
  444. # <Database db_name>
  445. # Host "database.serv.er"
  446. # Port "3306"
  447. # User "db_user"
  448. # Password "secret"
  449. # Database "db_name"
  450. # MasterStats true
  451. # </Database>
  452. #
  453. # <Database db_name2>
  454. # Host "localhost"
  455. # Socket "/var/run/mysql/mysqld.sock"
  456. # SlaveStats true
  457. # SlaveNotifications true
  458. # </Database>
  459. #</Plugin>
  460. #<Plugin netlink>
  461. # Interface "All"
  462. # VerboseInterface "All"
  463. # QDisc "eth0" "pfifo_fast-1:0"
  464. # Class "ppp0" "htb-1:10"
  465. # Filter "ppp0" "u32-1:0"
  466. # IgnoreSelected false
  467. #</Plugin>
  468. #<Plugin network>
  469. # # client setup:
  470. # Server "ff18::efc0:4a42" "25826"
  471. # <Server "239.192.74.66" "25826">
  472. # SecurityLevel Encrypt
  473. # Username "user"
  474. # Password "secret"
  475. # Interface "eth0"
  476. # </Server>
  477. # TimeToLive "128"
  478. #
  479. # # server setup:
  480. # Listen "ff18::efc0:4a42" "25826"
  481. # <Listen "239.192.74.66" "25826">
  482. # SecurityLevel Sign
  483. # AuthFile "/etc/collectd/passwd"
  484. # Interface "eth0"
  485. # </Listen>
  486. # MaxPacketSize 1024
  487. #
  488. # # proxy setup (client and server as above):
  489. # Forward true
  490. #
  491. # # statistics about the network plugin itself
  492. # ReportStats false
  493. #
  494. # # "garbage collection"
  495. # CacheFlush 1800
  496. #</Plugin>
  497. {% if collectd.collect_nginx is defined and collectd.collect_nginx %}
  498. <Plugin nginx>
  499. URL "http://127.0.0.1/nginx_status"
  500. </Plugin>
  501. {% endif %}
  502. #<Plugin notify_desktop>
  503. # OkayTimeout 1000
  504. # WarningTimeout 5000
  505. # FailureTimeout 0
  506. #</Plugin>
  507. #<Plugin notify_email>
  508. # SMTPServer "localhost"
  509. # SMTPPort 25
  510. # SMTPUser "my-username"
  511. # SMTPPassword "my-password"
  512. # From "collectd@main0server.com"
  513. # # <WARNING/FAILURE/OK> on <hostname>.
  514. # # Beware! Do not use not more than two placeholders (%)!
  515. # Subject "[collectd] %s on %s!"
  516. # Recipient "email1@domain1.net"
  517. # Recipient "email2@domain2.com"
  518. #</Plugin>
  519. #<Plugin ntpd>
  520. # Host "localhost"
  521. # Port 123
  522. # ReverseLookups false
  523. #</Plugin>
  524. #<Plugin nut>
  525. # UPS "upsname@hostname:port"
  526. #</Plugin>
  527. #<Plugin olsrd>
  528. # Host "127.0.0.1"
  529. # Port "2006"
  530. # CollectLinks "Summary"
  531. # CollectRoutes "Summary"
  532. # CollectTopology "Summary"
  533. #</Plugin>
  534. #<Plugin openvpn>
  535. # StatusFile "/etc/openvpn/openvpn-status.log"
  536. # ImprovedNamingSchema false
  537. # CollectCompression true
  538. # CollectIndividualUsers true
  539. # CollectUserCount false
  540. #</Plugin>
  541. #<Plugin perl>
  542. # IncludeDir "/my/include/path"
  543. # BaseName "Collectd::Plugins"
  544. # EnableDebugger ""
  545. # LoadPlugin Monitorus
  546. # LoadPlugin OpenVZ
  547. #
  548. # <Plugin foo>
  549. # Foo "Bar"
  550. # Qux "Baz"
  551. # </Plugin>
  552. #</Plugin>
  553. #<Plugin pinba>
  554. # Address "::0"
  555. # Port "30002"
  556. # <View "name">
  557. # Host "host name"
  558. # Server "server name"
  559. # Script "script name"
  560. # <View>
  561. #</Plugin>
  562. {% if collectd.collect_ping %}
  563. <Plugin ping>
  564. {% if domaenenliste is defined %}
  565. {% set hosts = [] %}
  566. {% for domaene in domaenenliste|dictsort %}
  567. {% for dummy in hosts %}
  568. {% if hosts.pop() %}
  569. {% endif %}
  570. {% endfor %}
  571. {% if hosts|length and hosts.pop() %}
  572. {% endif %}
  573. {% for host in groups['mapserver'] %}
  574. {% if hosts.append(host) %}
  575. {% endif %}
  576. {% endfor %}
  577. {% for host in groups['supernodes'] %}
  578. {% if "domaenenliste" in hostvars[host] %}
  579. {% if ansible_ssh_host != hostvars[host].ansible_ssh_host and domaene[0] in hostvars[host].domaenenliste and hosts.append(host) %}
  580. {% endif %}
  581. {% endif %}
  582. {% endfor %}
  583. # Domaene-{{domaene[0]}}:
  584. {% for host in hosts %}
  585. {% if hostvars[host] is defined %}
  586. {% if "domaenenliste" in hostvars[host] %}
  587. Host "{{domaenen[domaene[0]].ffv4_network | ipaddr(hostvars[host].domaenenliste[domaene[0]].server_id) | ipaddr('address') }}"
  588. {% else %}
  589. Host "{{domaenen[domaene[0]].ffv4_network | ipaddr(hostvars[host].server_id) | ipaddr('address') }}"
  590. {% endif %}
  591. {% endif %}
  592. {% endfor %}
  593. {% endfor %}
  594. {% endif %}
  595. {% if "ffrl_tun" in hostvars[inventory_hostname] %}
  596. {% for tun in ffrl_tun %}
  597. # FFRL tun remote {{tun.name}}:
  598. Host "{{tun.v4_remote.split('/')[0]}}"
  599. {% endfor %}
  600. {% endif %}
  601. # Host "host.foo.bar"
  602. # Host "host.baz.qux"
  603. Interval 10.0
  604. Timeout 1.0
  605. TTL 16
  606. # SourceAddress "1.2.3.4"
  607. # Device "eth0"
  608. # MaxMissed -1
  609. </Plugin>
  610. {% endif %}
  611. #<Plugin postgresql>
  612. # <Query magic>
  613. # Statement "SELECT magic FROM wizard WHERE host = $1;"
  614. # Param hostname
  615. #
  616. # <Result>
  617. # Type gauge
  618. # InstancePrefix "magic"
  619. # ValuesFrom "magic"
  620. # </Result>
  621. # </Query>
  622. #
  623. # <Query rt36_tickets>
  624. # Statement "SELECT COUNT(type) AS count, type \
  625. # FROM (SELECT CASE \
  626. # WHEN resolved = 'epoch' THEN 'open' \
  627. # ELSE 'resolved' END AS type \
  628. # FROM tickets) type \
  629. # GROUP BY type;"
  630. #
  631. # <Result>
  632. # Type counter
  633. # InstancePrefix "rt36_tickets"
  634. # InstancesFrom "type"
  635. # ValuesFrom "count"
  636. # </Result>
  637. # </Query>
  638. #
  639. # <Database foo>
  640. # Host "hostname"
  641. # Port 5432
  642. # User "username"
  643. # Password "secret"
  644. #
  645. # SSLMode "prefer"
  646. # KRBSrvName "kerberos_service_name"
  647. #
  648. # Query magic
  649. # </Database>
  650. #
  651. # <Database bar>
  652. # Interval 60
  653. # Service "service_name"
  654. #
  655. # Query backend # predefined
  656. # Query rt36_tickets
  657. # </Database>
  658. #</Plugin>
  659. #<Plugin powerdns>
  660. # <Server "server_name">
  661. # Collect "latency"
  662. # Collect "udp-answers" "udp-queries"
  663. # Socket "/var/run/pdns.controlsocket"
  664. # </Server>
  665. # <Recursor "recursor_name">
  666. # Collect "questions"
  667. # Collect "cache-hits" "cache-misses"
  668. # Socket "/var/run/pdns_recursor.controlsocket"
  669. # </Recursor>
  670. # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
  671. #</Plugin>
  672. <Plugin processes>
  673. # Process "name"
  674. {% if 'gateways' in group_names %}
  675. Process "named"
  676. {% endif %}
  677. {% if 'gateways' in group_names %}
  678. Process "rsyslogd"
  679. {% if domaenenliste is defined %}
  680. Process "kea-dhcp4"
  681. {% endif %}
  682. Process "bird"
  683. Process "bird6"
  684. {% if domaenenliste is defined %}
  685. ProcessMatch "tunneldigger" "tunneldigger"
  686. {% endif %}
  687. {% endif %}
  688. Process "collectd"
  689. </Plugin>
  690. #<Plugin protocols>
  691. # Value "/^Tcp:/"
  692. # IgnoreSelected false
  693. #</Plugin>
  694. {% if collectd.collect_dhcp or collectd.collect_fastd or collectd.collect_l2tp or collectd.collect_ipv4ipv6 or collectd.collect_sysctl %}
  695. <Plugin python>
  696. ModulePath "/opt/collectd-python/"
  697. LogTraces true
  698. Interactive false
  699. {% if collectd.collect_dhcp%}
  700. # Import "dhcp"
  701. {% if "dhcp_type" in hostvars[inventory_hostname] and dhcp_type == "kea" and domaenenliste is defined %}
  702. Import "kea"
  703. {% endif %}
  704. {% endif %}
  705. {% if collectd.collect_ipv4ipv6 %}
  706. Import "ipv4ipv6"
  707. {% endif %}
  708. {% if collectd.collect_l2tp and domaenenliste is defined %}
  709. Import "l2tp"
  710. {% endif %}
  711. {% if collectd.collect_sysctl %}
  712. Import "sysctl"
  713. {% endif %}
  714. {% if collectd.collect_fastd%}
  715. Import "fastd"
  716. <Module fastd>
  717. server_address "/tmp/fastd-status"
  718. </Module>
  719. {% endif %}
  720. </Plugin>
  721. {% endif %}
  722. #<Plugin rrdcached>
  723. # DaemonAddress "unix:/var/run/rrdcached.sock"
  724. # DataDir "/var/lib/rrdcached/db/collectd"
  725. # CreateFiles true
  726. # CollectStatistics true
  727. #</Plugin>
  728. #<Plugin rrdtool>
  729. # DataDir "/var/lib/collectd/rrd"
  730. # CacheTimeout 120
  731. # CacheFlush 900
  732. # WritesPerSecond 30
  733. # RandomTimeout 0
  734. #
  735. # The following settings are rather advanced
  736. # and should usually not be touched:
  737. # StepSize 10
  738. # HeartBeat 20
  739. # RRARows 1200
  740. # RRATimespan 158112000
  741. # XFF 0.1
  742. #</Plugin>
  743. #<Plugin sensors>
  744. # SensorConfigFile "/etc/sensors3.conf"
  745. # Sensor "it8712-isa-0290/temperature-temp1"
  746. # Sensor "it8712-isa-0290/fanspeed-fan3"
  747. # Sensor "it8712-isa-0290/voltage-in8"
  748. # IgnoreSelected false
  749. #</Plugin>
  750. # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
  751. # comprehensive sample configuration.
  752. #<Plugin snmp>
  753. # <Data "powerplus_voltge_input">
  754. # Type "voltage"
  755. # Table false
  756. # Instance "input_line1"
  757. # Scale 0.1
  758. # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
  759. # </Data>
  760. # <Data "hr_users">
  761. # Type "users"
  762. # Table false
  763. # Instance ""
  764. # Shift -1
  765. # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
  766. # </Data>
  767. # <Data "std_traffic">
  768. # Type "if_octets"
  769. # Table true
  770. # InstancePrefix "traffic"
  771. # Instance "IF-MIB::ifDescr"
  772. # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
  773. # </Data>
  774. #
  775. # <Host "some.switch.mydomain.org">
  776. # Address "192.168.0.2"
  777. # Version 1
  778. # Community "community_string"
  779. # Collect "std_traffic"
  780. # Inverval 120
  781. # </Host>
  782. # <Host "some.server.mydomain.org">
  783. # Address "192.168.0.42"
  784. # Version 2
  785. # Community "another_string"
  786. # Collect "std_traffic" "hr_users"
  787. # </Host>
  788. # <Host "some.ups.mydomain.org">
  789. # Address "192.168.0.3"
  790. # Version 1
  791. # Community "more_communities"
  792. # Collect "powerplus_voltge_input"
  793. # Interval 300
  794. # </Host>
  795. #</Plugin>
  796. #<Plugin swap>
  797. # ReportByDevice false
  798. #</Plugin>
  799. #<Plugin table>
  800. # <Table "/proc/slabinfo">
  801. # Instance "slabinfo"
  802. # Separator " "
  803. # <Result>
  804. # Type gauge
  805. # InstancePrefix "active_objs"
  806. # InstancesFrom 0
  807. # ValuesFrom 1
  808. # </Result>
  809. # <Result>
  810. # Type gauge
  811. # InstancePrefix "objperslab"
  812. # InstancesFrom 0
  813. # ValuesFrom 4
  814. # </Result>
  815. # </Table>
  816. #</Plugin>
  817. #<Plugin "tail">
  818. # <File "/var/log/exim4/mainlog">
  819. # Instance "exim"
  820. # <Match>
  821. # Regex "S=([1-9][0-9]*)"
  822. # DSType "CounterAdd"
  823. # Type "ipt_bytes"
  824. # Instance "total"
  825. # </Match>
  826. # <Match>
  827. # Regex "\\<R=local_user\\>"
  828. # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
  829. # DSType "CounterInc"
  830. # Type "counter"
  831. # Instance "local_user"
  832. # </Match>
  833. # </File>
  834. #</Plugin>
  835. #<Plugin tcpconns>
  836. # ListeningPorts false
  837. # LocalPort "25"
  838. # RemotePort "25"
  839. #</Plugin>
  840. #<Plugin teamspeak2>
  841. # Host "127.0.0.1"
  842. # Port "51234"
  843. # Server "8767"
  844. #</Plugin>
  845. #<Plugin ted>
  846. # Device "/dev/ttyUSB0"
  847. # Retries 0
  848. #</Plugin>
  849. #<Plugin thermal>
  850. # ForceUseProcfs false
  851. # Device "THRM"
  852. # IgnoreSelected false
  853. #</Plugin>
  854. #<Plugin tokyotyrant>
  855. # Host "localhost"
  856. # Port "1978"
  857. #</Plugin>
  858. #<Plugin unixsock>
  859. # SocketFile "/var/run/collectd-unixsock"
  860. # SocketGroup "collectd"
  861. # SocketPerms "0660"
  862. # DeleteSocket false
  863. #</Plugin>
  864. #<Plugin uuid>
  865. # UUIDFile "/etc/uuid"
  866. #</Plugin>
  867. #<Plugin varnish>
  868. # <Instance>
  869. # CollectCache true
  870. # CollectBackend true
  871. # CollectConnections true
  872. # CollectSHM true
  873. # CollectESI false
  874. # CollectFetch false
  875. # CollectHCB false
  876. # CollectSMA false
  877. # CollectSMS false
  878. # CollectSM false
  879. # CollectTotals false
  880. # CollectWorkers false
  881. # </Instance>
  882. #
  883. # <Instance "myinstance">
  884. # CollectCache true
  885. # </Instance>
  886. #</Plugin>
  887. #<Plugin vmem>
  888. # Verbose false
  889. #</Plugin>
  890. <Plugin write_graphite>
  891. <Carbon>
  892. {% if group_names[0].startswith('domaene-') %}
  893. Host "{{ff_network.v4_network | ipaddr('11') | ipaddr('address')}}"
  894. {% else %}
  895. Host "{{collectd.graphite_target.host}}"
  896. {% endif %}
  897. Port "{{collectd.graphite_target.port}}"
  898. Prefix "{{ group_names[0] }}."
  899. Postfix ""
  900. StoreRates false
  901. AlwaysAppendDS false
  902. EscapeCharacter "_"
  903. </Carbon>
  904. </Plugin>
  905. #<Plugin write_http>
  906. # <URL "http://example.com/collectd-post">
  907. # User "collectd"
  908. # Password "secret"
  909. # VerifyPeer true
  910. # VerifyHost true
  911. # CACert "/etc/ssl/ca.crt"
  912. # Format "Command"
  913. # StoreRates false
  914. # </URL>
  915. #</Plugin>
  916. #<Plugin write_mongodb>
  917. # <Node "example">
  918. # Host "localhost"
  919. # Port "27017"
  920. # Timeout 1000
  921. # StoreRates false
  922. # <Node>
  923. #</Plugin>
  924. Include "/etc/collectd/filters.conf"
  925. Include "/etc/collectd/thresholds.conf"