Setting up Collectd Collection3 on Ubuntu Lucid 10.04: Difference between revisions
Jump to navigation
Jump to search
Created page with "Setting up Collectd Collection3 on Ubuntu Lucid 10.04 (taken from http://gabenell.blogspot.co.uk/2010/06/setting-up-collectd-collection3-on.html) sudo apt-get update -y sud..." |
(No difference)
|
Latest revision as of 19:26, 11 November 2012
Setting up Collectd Collection3 on Ubuntu Lucid 10.04 (taken from http://gabenell.blogspot.co.uk/2010/06/setting-up-collectd-collection3-on.html)
sudo apt-get update -y sudo apt-get install -y apache2 libconfig-general-perl librrds-perl libregexp-common-perl collectd-core
Create /etc/apache2/conf.d/collection3.conf
ScriptAlias /collectd/bin/ /usr/share/doc/collectd-core/examples/collection3/bin/ Alias /collectd/ /usr/share/doc/collectd-core/examples/collection3/
<Directory /usr/share/doc/collectd-core/examples/collection3/> AddHandler cgi-script .cgi DirectoryIndex bin/index.cgi Options +ExecCGI Order Allow,Deny Allow from all </Directory>
/etc/init.d/apache2/restart
Enable snmp in collectd
LoadPlugin snmp <Plugin snmp>
Type "temperature" Table false Instance "hdd1" Values ".1.3.6.1.4.1.18928.1.1.2.14.1.2.1"
Type "temperature" Table false Instance "hdd2" Values ".1.3.6.1.4.1.18928.1.1.2.14.1.2.2"
Type "temperature" Table false Instance "hdd3" Values ".1.3.6.1.4.1.18928.1.1.2.14.1.2.3"
Type "temperature" Table false Instance "hdd4" Values ".1.3.6.1.4.1.18928.1.1.2.14.1.2.4"
Type "temperature" Table false Instance "hdd5" Values ".1.3.6.1.4.1.18928.1.1.2.14.1.2.5"
Type "temperature" Table false Instance "hdd6" Values ".1.3.6.1.4.1.18928.1.1.2.14.1.2.6"
Type "temperature" Table false Instance "hdd7" Values ".1.3.6.1.4.1.18928.1.1.2.14.1.2.7"
Type "temperature" Table false Instance "hdd8" Values ".1.3.6.1.4.1.18928.1.1.2.14.1.2.8"
<Host "raid"> Address "192.9.200.160" Version 1 Community "public" Collect "hdd1" "hdd2" "hdd3" "hdd4" "hdd5" "hdd6" "hdd7" "hdd8" Interval 120 </Host> </Plugin>