DevTech101

DevTech101

Install Collectd from opencsw

/opt/csw/bin/pkgutil -i collectd
/opt/csw/bin/pkgutil -i collectd-utils

Modify collectd.conf
vi /etc/opt/csw/collectd.conf

Hostname    "yourhost"
FQDNLookup   false
LoadPlugin syslog
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin network
LoadPlugin rrdtool
LoadPlugin zfs_arc


	Server "10.10.10.11" "3333"

Restart or enable collectd

svcadm enable svc:/network/cswcollectd:default

forward the logs to elasticsearch with logstash

input {
  udp {
    port => 3333         # 25826 matches port specified in collectd.conf
    buffer_size => 1452   # 1452 is the default buffer size for Collectd
    codec => collectd { } # specific Collectd codec to invoke
    type => collectd 
  }
}
output {
  stdout { codec => rubydebug }
}

Source
Monitoring With Collectd And Kibana
Collectd plugins
https://collectd.org/wiki/index.php/Table_of_Plugins/

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: