Observium install and operation tips
Observium version : 0.13.xx
OS : CentOS 6.5, 4G RAM, 2 CPU
1. Installation
– Below link vendor provided for installation are really good.
http://www.observium.org/wiki/RHEL_Installation
– There are few steps required more info for beginner level.
1-1. Database section.
– When you got an issue with mysql access (error message " ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)")
See my other blog "MySQL error 1045 – Access denied for user root@localhost"
1-2. "php includes/update/update.php" section.
– Edit config.php with your username and password
1-3. Update iptable (Firewall option on CentOS)
CentoOS 6.5 default setting of iptable is
> Firewall configuration written by system-config-firewall
> Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT
-A INPUT -j REJECT –reject-with icmp-host-prohibited
-A FORWARD -j REJECT –reject-with icmp-host-prohibited
COMMIT
add below with below statements.
– A INPUT -p tcp -m tcp –dport 80 -j ACCEPT
– A INPUT -p tcp -m tcp –dport 443 -j ACCEPT
You could block icmp with below statement.
– A INPUT -j REJECT –reject-with icmp-host-prohibited
Dont’ forget restart service
[root@CentOS /]# service iptables restart
1-4. Hosts file
To add new device, Observium requires servername instead of IP. If you don’t have DNS server control, use hosts file in Observium server.
[root@CentOS /]# nano /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.100.1 sg300
192.168.100.5 QNAP
192.168.100.33 Observium-CentOS
192.168.100.254 zywall
:
:
1-5. HTTPD.conf
If Observium server is the only web server on the box, try below wihin the /etc/httpd/conf/httpd.conf file.
[root@CentOS /]# nano /etc/httpd/conf/httpd.conf
#Listen 12.34.56.78:80
Listen 80
:
:
#ServerName 127.0.0.1:80 <–Blocked with #
:
#
DocumentRoot /opt/observium/html/
ServerName Observium-CentOS
CustomLog /opt/observium/logs/access_log combined
ErrorLog /opt/observium/logs/error_log
AllowOverride All
Options FollowSymLinks MultiViews
1-6. If you want to change regular port# 80/HTTP to 8080
[root@CentOS /]# nano /etc/httpd/conf/httpd.conf
1-6. Change port# to 8080
1-6-1. Modify httpd.conf file and restart
[root@CentOS /]# nano /etc/httpd/conf/httpd.conf
Listen 8080
:
DocumentRoot /opt/observium/html/
ServerName Observium-CentOS
CustomLog /opt/observium/logs/access_log combined
ErrorLog /opt/observium/logs/error_log
AllowOverride All
Options FollowSymLinks MultiViews
[root@CentOS /]# httpd -k restart
1-6-2. Modify iptables file and restart
-A INPUT -p tcp -m tcp –dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp –dport 8080 -j ACCEPT ; add this line
-A INPUT -p tcp -m tcp –dport 443 -j ACCEPT
* Always make a backup file before modifying.
[root@CentOS /]# service iptables restart
1-6-2. To verify your server is listening port 8080
[root@CentOS /]# netstat -ano | grep 8080
tcp 0 0 :::8080 :::* LISTEN off (0.00/0/0)
2. Operation
being updated……………..
3. Troubleshooting and errors
3-1 Httpd error
"[root@Observium-CentOS observium]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: apr_sockaddr_info_get() failed for Observium-CentOS
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[FAILED]"
Solution> Check httpd.conf (Above 1-5) also, use command httpd -k start instead of service httpd restart.