Skip to content

Instantly share code, notes, and snippets.

@MichaelF25
Last active May 2, 2017 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelF25/d433c98d5bb20fb53c72af7fa2eb66f6 to your computer and use it in GitHub Desktop.
Save MichaelF25/d433c98d5bb20fb53c72af7fa2eb66f6 to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo apt-get install -y xinetd
scp observium.ovh.cpg.de:/opt/observium/scripts/observium_agent_xinetd /tmp/
sudo cp /tmp/observium_agent_xinetd /etc/xinetd.d/
rm /tmp/observium_agent_xinetd
sudo vi /etc/xinetd.d/observium_agent_xinetd
scp observium.ovh.cpg.de:/opt/observium/scripts/observium_agent /tmp/
sudo cp /tmp/observium_agent /usr/bin/
rm /tmp/observium_agent
sudo mkdir -p /usr/lib/observium_agent/local
scp observium.ovh.cpg.de:/opt/observium/scripts/agent-local/vmwaretools /tmp/
sudo cp /tmp/vmwaretools /usr/lib/observium_agent/local/
rm /tmp/vmwaretools
/usr/lib/observium_agent/local/vmwaretools
scp observium.ovh.cpg.de:/opt/observium/scripts/distro /tmp/
sudo cp /tmp/distro /usr/bin/
rm /tmp/distro
sudo vi /etc/snmp/snmpd.conf
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
sudo service snmpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment