Difference between revisions of "Zabbix"

From CSLabsWiki
Jump to: navigation, search
(Created page with "Zabbix is what runs [http://report.cslabs.clarkson.edu/zabbix report]. To enable reporting for a Debian server, follow these steps (which happen to also be a shell script): ...")
 
 
Line 1: Line 1:
 +
{{retired|fate=This service failed to attract maintainers. Its functionality was mostly replaced by [[Management]].}}
 +
 
Zabbix is what runs [http://report.cslabs.clarkson.edu/zabbix report].
 
Zabbix is what runs [http://report.cslabs.clarkson.edu/zabbix report].
  

Latest revision as of 20:19, 16 November 2016


Zabbix is what runs report.

To enable reporting for a Debian server, follow these steps (which happen to also be a shell script):

       function conf_replace() { sed -i $1 -e "s/$2/$3/"; }
       zabbix_release="zabbix-release_2.0-1wheezy_all" # change for your debian version
       zabbix_server="128.153.145.21"
       hostname=$(hostname) # fix this if the hostname isn't correct!
       wget http://repo.zabbix.com/zabbix/2.0/debian/pool/main/z/zabbix-release/$zabbix_release.deb
       dpkg -i zabbix*.deb # this package sets up the repository containing the actual packages
       rm zabbix*.deb
       apt-get update # sync repos
       apt-get install -y zabbix-agent # install reporting agent
       service zabbix-agent stop # stop it
       
       local zabbix_file="$rt/etc/zabbix/zabbix_agentd.conf"
       conf_replace $zabbix_file "LogFileSize=0" "LogFileSize=30" # configure it to use our server
       conf_replace $zabbix_file "Server=127.0.0.1" "Server=$zabbix_server"
       conf_replace $zabbix_file "Hostname=Zabbix server" "Hostname=$(hostname)"
       # now go bother the report maintainer to make it do reporting for the server
       
       echo "ALL: $zabbix_server" >> /etc/hosts.allow # make sure we can connect to the zabbix server