Quickguide: Installation on SLES11
![](https://secure.gravatar.com/avatar/687506d9a8149d33005d47b2c8ec86b5.jpg?s=120&d=mm&r=g)
I don't see a way to create a user on the Wiki so I'm posting it here, hope people with wiki access can add it:
## # Initial Repos ##
SLES11 + SLE11-SDK + Updates
## # Pre-requisites ##
# Additional repositories zypper ar -f http://download.opensuse.org/repositories/network:/utilities/SLE_11_SP1 network:utilities
# Prepackaged installation zypper in apache2-mod_php5 php5-mysql php5-gd php5-snmp php5-pear net-snmp graphviz-gd graphviz subversion mysql rrdtool fping ImageMagick whois mtr nmap ipmitool
# Additional modules using PEAR pear install Net_IPv6 pear install Net_IPv4
# For monitoring VMs using libvirt zypper in libvirt
# Checkout of Observium from SVN cd /opt svn co http://www.observium.org/svn/observer/trunk observium
## # Data Base ##
# DB+user Creation mysql> create database observium;
mysql> grant all privileges on observium.* to 'observium'@'localhost' -> identified by '<pass>';
# Schema creation cd observium mysql -u observium -p observium < database-schema.sql <pass>
# Update config.php to include DB connection info
cp config.php{.default,} vi config.php
# Schema updates for F in database-update*;do scripts/update-sql.php $F;done
# RRD and graphs directory creation mkdir graphs rrd chown wwwrun: graphs/ rrd/
## # PATHS ##
# fping vi config.php -- $config['fping'] = "/usr/sbin/fping"; --
## # Apache ##
# Enable Mod Rewrite a2enmod rewrite
# apache vhost configuration
vi /etc/apache2/vhosts.d/observium.conf -- <VirtualHost *:80> DocumentRoot /opt/observium/html/ ServerName observium.<domain> CustomLog /opt/observium/logs/access_log combined ErrorLog /opt/observium/logs/error_log <Directory "/opt/observium/html/"> AllowOverride All Options FollowSymLinks MultiViews Order allow,deny Allow from all </Directory> </VirtualHost> --
# Log destination directory mkdir /opt/observium/logs/ chown wwwrun: /opt/observium/logs/
# Startup rcapache2 start chkconfig apache2 on
## # Users (for production, better configure LDAP) ##
# Admins, level 10 /opt/observium/adduser.php user1 pass 10
## # Devices ##
# Adding new devices cd /opt/observium/ && ./addhost.php <hostname> <community> v2c
# Discovery inicial + colecta de datos ./discovery.php -h all ./poller.php -h all
# Enable data collection using cron
vi /etc/cron.d/observium -- 33 */6 * * * root cd /opt/observium/ && ./discovery.php -h all
/dev/null 2>&1
*/5 * * * * root cd /opt/observium/ && ./discovery.php -h new
/dev/null 2>&1
*/5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 0 >> /dev/null 2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 1 >> /dev/null 2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 2 >> /dev/null 2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 3 >> /dev/null 2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 4 >> /dev/null 2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 5 >> /dev/null 2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 6 >> /dev/null 2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 7 >> /dev/null 2>&1
## # Performance Tunning ##
# Install XCache, build package from src.rpm (install required dependencies for compilation if needed)
mkdir ~/tmp cd ~/tmp wget http://download.opensuse.org/repositories/server:/php:/extensions/SLE_11/src... rpmbuild --rebuild php5-xcache-1.3.2-2.1.src.rpm
# Install result from above command
# Restart apache rcapache2 restart
That's all, this should work on openSUSE also, just make sure to use repositories for the correct version of distribution.
Regards,
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Unofficial install guides on the Wiki have generated a significant number of questions for us.
Can you guarantee this will work on later versions? What versions does it work on?
This is one of the reasons for wiki editing being disabled. In 3 months time this document will be worthless.
adam.
On Tue, 24 Jan 2012 10:19:43 -0300, Ciro Iriarte cyruspy@gmail.com wrote:
I don't see a way to create a user on the Wiki so I'm posting it here, hope people with wiki access can add it:
## # Initial Repos ##
SLES11 + SLE11-SDK + Updates
## # Pre-requisites ##
# Additional repositories zypper ar -f http://download.opensuse.org/repositories/network:/utilities/SLE_11_SP1 network:utilities
# Prepackaged installation zypper in apache2-mod_php5 php5-mysql php5-gd php5-snmp php5-pear net-snmp graphviz-gd graphviz subversion mysql rrdtool fping ImageMagick whois mtr nmap ipmitool
# Additional modules using PEAR pear install Net_IPv6 pear install Net_IPv4
# For monitoring VMs using libvirt zypper in libvirt
# Checkout of Observium from SVN cd /opt svn co http://www.observium.org/svn/observer/trunk observium
## # Data Base ##
# DB+user Creation mysql> create database observium;
mysql> grant all privileges on observium.* to 'observium'@'localhost' -> identified by '<pass>';
# Schema creation cd observium mysql -u observium -p observium < database-schema.sql
<pass>
# Update config.php to include DB connection info
cp config.php{.default,} vi config.php
# Schema updates for F in database-update*;do scripts/update-sql.php $F;done
# RRD and graphs directory creation mkdir graphs rrd chown wwwrun: graphs/ rrd/
## # PATHS ##
# fping vi config.php -- $config['fping'] = "/usr/sbin/fping"; --
## # Apache ##
# Enable Mod Rewrite a2enmod rewrite
# apache vhost configuration
vi /etc/apache2/vhosts.d/observium.conf
<VirtualHost *:80> DocumentRoot /opt/observium/html/ ServerName observium.<domain> CustomLog /opt/observium/logs/access_log combined ErrorLog /opt/observium/logs/error_log <Directory "/opt/observium/html/"> AllowOverride All Options FollowSymLinks MultiViews Order allow,deny Allow from all
</Directory> </VirtualHost> --
# Log destination directory mkdir /opt/observium/logs/ chown wwwrun: /opt/observium/logs/
# Startup rcapache2 start chkconfig apache2 on
## # Users (for production, better configure LDAP) ##
# Admins, level 10 /opt/observium/adduser.php user1 pass 10
## # Devices ##
# Adding new devices cd /opt/observium/ && ./addhost.php <hostname> <community> v2c
# Discovery inicial + colecta de datos ./discovery.php -h all ./poller.php -h all
# Enable data collection using cron
vi /etc/cron.d/observium
33 */6 * * * root cd /opt/observium/ && ./discovery.php -h all
/dev/null 2>&1
*/5 * * * * root cd /opt/observium/ && ./discovery.php -h new
/dev/null 2>&1
*/5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 0 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 1 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 2 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 3 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 4 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 5 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 6 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 7 >>
/dev/null
2>&1
## # Performance Tunning ##
# Install XCache, build package from src.rpm (install required dependencies for compilation if needed)
mkdir ~/tmp cd ~/tmp wget
http://download.opensuse.org/repositories/server:/php:/extensions/SLE_11/src...
rpmbuild --rebuild php5-xcache-1.3.2-2.1.src.rpm
# Install result from above command
# Restart apache rcapache2 restart
That's all, this should work on openSUSE also, just make sure to use repositories for the correct version of distribution.
Regards,
![](https://secure.gravatar.com/avatar/687506d9a8149d33005d47b2c8ec86b5.jpg?s=120&d=mm&r=g)
This was tested with SLES11-SP1@x86_64 (SuSE Linux Enterprise Server), the EOL is expected to be around 2018 (included 2 years extended support). I've mentioned openSUSE as it's quite the same, but this procedure is for SLES11 explicitly.
The needed additional repo is a official repo from opensuse.org for SLES, as new versions appear, the packages are rebuilt for it.
Regards, CI.-
2012/1/24 Adam Armstrong adama@memetic.org:
Unofficial install guides on the Wiki have generated a significant number of questions for us.
Can you guarantee this will work on later versions? What versions does it work on?
This is one of the reasons for wiki editing being disabled. In 3 months time this document will be worthless.
adam.
On Tue, 24 Jan 2012 10:19:43 -0300, Ciro Iriarte cyruspy@gmail.com wrote:
I don't see a way to create a user on the Wiki so I'm posting it here, hope people with wiki access can add it:
## # Initial Repos ##
SLES11 + SLE11-SDK + Updates
## # Pre-requisites ##
# Additional repositories zypper ar -f http://download.opensuse.org/repositories/network:/utilities/SLE_11_SP1 network:utilities
# Prepackaged installation zypper in apache2-mod_php5 php5-mysql php5-gd php5-snmp php5-pear net-snmp graphviz-gd graphviz subversion mysql rrdtool fping ImageMagick whois mtr nmap ipmitool
# Additional modules using PEAR pear install Net_IPv6 pear install Net_IPv4
# For monitoring VMs using libvirt zypper in libvirt
# Checkout of Observium from SVN cd /opt svn co http://www.observium.org/svn/observer/trunk observium
## # Data Base ##
# DB+user Creation mysql> create database observium;
mysql> grant all privileges on observium.* to 'observium'@'localhost' -> identified by '<pass>';
# Schema creation cd observium mysql -u observium -p observium < database-schema.sql
<pass>
# Update config.php to include DB connection info
cp config.php{.default,} vi config.php
# Schema updates for F in database-update*;do scripts/update-sql.php $F;done
# RRD and graphs directory creation mkdir graphs rrd chown wwwrun: graphs/ rrd/
## # PATHS ##
# fping vi config.php -- $config['fping'] = "/usr/sbin/fping"; --
## # Apache ##
# Enable Mod Rewrite a2enmod rewrite
# apache vhost configuration
vi /etc/apache2/vhosts.d/observium.conf
<VirtualHost *:80> DocumentRoot /opt/observium/html/ ServerName observium.<domain> CustomLog /opt/observium/logs/access_log combined ErrorLog /opt/observium/logs/error_log <Directory "/opt/observium/html/"> AllowOverride All Options FollowSymLinks MultiViews Order allow,deny Allow from all </Directory>
</VirtualHost> --
# Log destination directory mkdir /opt/observium/logs/ chown wwwrun: /opt/observium/logs/
# Startup rcapache2 start chkconfig apache2 on
## # Users (for production, better configure LDAP) ##
# Admins, level 10 /opt/observium/adduser.php user1 pass 10
## # Devices ##
# Adding new devices cd /opt/observium/ && ./addhost.php <hostname> <community> v2c
# Discovery inicial + colecta de datos ./discovery.php -h all ./poller.php -h all
# Enable data collection using cron
vi /etc/cron.d/observium
33 */6 * * * root cd /opt/observium/ && ./discovery.php -h all
/dev/null 2>&1
*/5 * * * * root cd /opt/observium/ && ./discovery.php -h new
/dev/null 2>&1
*/5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 0 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 1 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 2 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 3 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 4 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 5 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 6 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 7 >>
/dev/null
2>&1
## # Performance Tunning ##
# Install XCache, build package from src.rpm (install required dependencies for compilation if needed)
mkdir ~/tmp cd ~/tmp wget
http://download.opensuse.org/repositories/server:/php:/extensions/SLE_11/src...
rpmbuild --rebuild php5-xcache-1.3.2-2.1.src.rpm
# Install result from above command
# Restart apache rcapache2 restart
That's all, this should work on openSUSE also, just make sure to use repositories for the correct version of distribution.
Regards,
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
Hi Ciro,
You're covering only half of the problem, unfortunately. As we update the installation instructions for Debian/Ubuntu, we cannot update them on other platforms (I try to find the right package names for new dependencies and add them in, but...) as we can't test if these instructions (still) work.
I don't mind "user submitted" content on the wiki, provided it's correctly marked as non-official documentation and a reference is made to cross-check with the official documentation to see if anything is missing.
Point being, someone will need to keep it up to date or it becomes useless quite quickly...
Tom
On 24.01.2012 17:32, Ciro Iriarte wrote:
This was tested with SLES11-SP1@x86_64 (SuSE Linux Enterprise Server), the EOL is expected to be around 2018 (included 2 years extended support). I've mentioned openSUSE as it's quite the same, but this procedure is for SLES11 explicitly.
The needed additional repo is a official repo from opensuse.org for SLES, as new versions appear, the packages are rebuilt for it.
Regards, CI.-
2012/1/24 Adam Armstrong adama@memetic.org:
Unofficial install guides on the Wiki have generated a significant number of questions for us.
Can you guarantee this will work on later versions? What versions does it work on?
This is one of the reasons for wiki editing being disabled. In 3 months time this document will be worthless.
adam.
On Tue, 24 Jan 2012 10:19:43 -0300, Ciro Iriarte cyruspy@gmail.com wrote:
I don't see a way to create a user on the Wiki so I'm posting it here, hope people with wiki access can add it:
## # Initial Repos ##
SLES11 + SLE11-SDK + Updates
## # Pre-requisites ##
# Additional repositories zypper ar -f
http://download.opensuse.org/repositories/network:/utilities/SLE_11_SP1 network:utilities
# Prepackaged installation zypper in apache2-mod_php5 php5-mysql php5-gd php5-snmp php5-pear net-snmp graphviz-gd graphviz subversion mysql rrdtool fping ImageMagick whois mtr nmap ipmitool
# Additional modules using PEAR pear install Net_IPv6 pear install Net_IPv4
# For monitoring VMs using libvirt zypper in libvirt
# Checkout of Observium from SVN cd /opt svn co http://www.observium.org/svn/observer/trunk observium
## # Data Base ##
# DB+user Creation mysql> create database observium;
mysql> grant all privileges on observium.* to 'observium'@'localhost' -> identified by '<pass>';
# Schema creation cd observium mysql -u observium -p observium < database-schema.sql
<pass>
# Update config.php to include DB connection info
cp config.php{.default,} vi config.php
# Schema updates for F in database-update*;do scripts/update-sql.php $F;done
# RRD and graphs directory creation mkdir graphs rrd chown wwwrun: graphs/ rrd/
## # PATHS ##
# fping vi config.php -- $config['fping'] = "/usr/sbin/fping"; --
## # Apache ##
# Enable Mod Rewrite a2enmod rewrite
# apache vhost configuration
vi /etc/apache2/vhosts.d/observium.conf
<VirtualHost *:80> DocumentRoot /opt/observium/html/ ServerName observium.<domain> CustomLog /opt/observium/logs/access_log combined ErrorLog /opt/observium/logs/error_log <Directory "/opt/observium/html/"> AllowOverride All Options FollowSymLinks MultiViews Order allow,deny Allow from all </Directory>
</VirtualHost> --
# Log destination directory mkdir /opt/observium/logs/ chown wwwrun: /opt/observium/logs/
# Startup rcapache2 start chkconfig apache2 on
## # Users (for production, better configure LDAP) ##
# Admins, level 10 /opt/observium/adduser.php user1 pass 10
## # Devices ##
# Adding new devices cd /opt/observium/ && ./addhost.php <hostname> <community> v2c
# Discovery inicial + colecta de datos ./discovery.php -h all ./poller.php -h all
# Enable data collection using cron
vi /etc/cron.d/observium
33 */6 * * * root cd /opt/observium/ && ./discovery.php -h all
/dev/null 2>&1
*/5 * * * * root cd /opt/observium/ && ./discovery.php -h new
/dev/null 2>&1
*/5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 0 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 1 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 2 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 3 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 4 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 5 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 6 >>
/dev/null
2>&1 */5 * * * * root cd /opt/observium/ && ./poller.php -i 8 -n 7 >>
/dev/null
2>&1
## # Performance Tunning ##
# Install XCache, build package from src.rpm (install required dependencies for compilation if needed)
mkdir ~/tmp cd ~/tmp wget
http://download.opensuse.org/repositories/server:/php:/extensions/SLE_11/src...
rpmbuild --rebuild php5-xcache-1.3.2-2.1.src.rpm
# Install result from above command
# Restart apache rcapache2 restart
That's all, this should work on openSUSE also, just make sure to use repositories for the correct version of distribution.
Regards,
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/687506d9a8149d33005d47b2c8ec86b5.jpg?s=120&d=mm&r=g)
2012/1/24 tom.laermans@powersource.cx:
Hi Ciro,
You're covering only half of the problem, unfortunately. As we update the installation instructions for Debian/Ubuntu, we cannot update them on other platforms (I try to find the right package names for new dependencies and add them in, but...) as we can't test if these instructions (still) work.
I don't mind "user submitted" content on the wiki, provided it's correctly marked as non-official documentation and a reference is made to cross-check with the official documentation to see if anything is missing.
Point being, someone will need to keep it up to date or it becomes useless quite quickly...
Tom
SLES is like RHEL, its release cycle is of years, contrary to months like openSUSE or Fedora. I plan to use Observium a lot, so I'll be around to update the procedure.
The quick guide was provided to ease up Observium adoption, proficient enough sysadmins will get it up and running using the debian+svn guide, my 2 cents...
Regards,
participants (3)
-
Adam Armstrong
-
Ciro Iriarte
-
tom.laermans@powersource.cx