Advertisement
Typhoon

CollectD Single Instance StandAlone

Jul 22nd, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.30 KB | None | 0 0
  1. # Run this command :
  2. # collectd -C /etc/01.collectd.conf -P /var/run/collectd_01.pid -f
  3.  
  4. # cat /etc/01.collectd.conf
  5. #Hostname    "cent1.local"
  6. FQDNLookup   false
  7. BaseDir      "/var/lib/collectd"
  8. PIDFile      "/var/run/collectd_01.pid"
  9. PluginDir    "/usr/lib64/collectd"
  10. TypesDB      "/usr/share/collectd/types.db"
  11. Interval     10
  12. Timeout      2
  13. ReadThreads  5
  14.  
  15. LoadPlugin syslog
  16. LoadPlugin logfile
  17.  
  18. <Plugin logfile>
  19.     LogLevel info
  20.     File "/var/log/collectd.log"
  21.     Timestamp true
  22.     PrintSeverity false
  23. </Plugin>
  24.  
  25. <Plugin syslog>
  26.     LogLevel debug
  27.     #NotifyLevel "OKAY"
  28. </Plugin>
  29.  
  30. LoadPlugin df
  31. LoadPlugin cpu
  32. #LoadPlugin disk
  33. LoadPlugin filecount
  34. LoadPlugin network
  35. #LoadPlugin nfs
  36. LoadPlugin users
  37.  
  38. <Plugin df>
  39. #   Device "/dev/mapper/vg_cent-lv_root"
  40. #   Device "192.168.0.2:/mnt/nfs"
  41.     MountPoint "/"
  42.     FSType "ext4"
  43.     IgnoreSelected false
  44.     ReportByDevice false
  45.     ReportReserved false
  46.     ReportInodes true
  47. </Plugin>
  48.  
  49. #<Plugin disk>
  50. #   Disk "/^[hs]d[a-f][0-9]?$/"
  51. #   IgnoreSelected true
  52. #</Plugin>
  53.  
  54. <Plugin filecount>
  55.     <Directory "/var/log/elasticsearch">
  56.         Instance "Elastic_Log_Files"
  57. #       Name "*.conf"
  58. #       MTime "-5m"
  59. #       Size "+10k"
  60.         Recursive true
  61.         IncludeHidden true
  62.     </Directory>
  63. </Plugin>
  64.  
  65. <Plugin network>
  66.     <Server "0.0.0.0" "25826">
  67.     Interface "eth0"
  68.     </Server>
  69. </Plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement