Saturday, November 29, 2014

Error when installing Zenoss in Centos 6 Docker image

This happens when using auto-deploy installation (hint).

# ./core-autodeploy.sh

The error happens in https://gist.github.com/fortran01/e6eb87c87fa8bb7aa3eb/ebdcce749b366c6cf97346f0411e91dd114a61d4#file-zenoss-core-autodeploy-ec817e6_core-autodeploy-sh-L261-L265 when the zenoss service is started.

Zenoss not initialized.  Performing first-boot initialization...
Fresh install pre steps
Checking RRDtool version >= 1.4.7: [FAIL] Missing.
Error: rrdtool is not in the search path. Please confirm that RRDtool (version >= 1.4.7) is installed.

It can be verified that rrdtool is already installed.

# rrdtool --version
RRDtool 1.4.7  Copyright 1997-2012 by Tobias Oetiker 
               Compiled Apr  5 2012 17:36:08

The routine that checks for rrdtool is in /opt/zenoss/bin/install-functions.sh. Look for confirm_rrd(). It uses the command `which` that is not installed by default in the Centos 6 docker image.

# yum install which -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.vinahost.vn
 * extras: mirror.vietoss.com
 * updates: mirror.vietoss.com
Resolving Dependencies
--> Running transaction check
---> Package which.x86_64 0:2.19-6.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch              Version               Repository       Size
================================================================================
Installing:
 which            x86_64            2.19-6.el6            base             38 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 38 k
Installed size: 71 k
Downloading Packages:
which-2.19-6.el6.x86_64.rpm                              |  38 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : which-2.19-6.el6.x86_64                                      1/1 
install-info: No such file or directory for /usr/share/info/which.info.gz
  Verifying  : which-2.19-6.el6.x86_64                                      1/1 

Installed:
  which.x86_64 0:2.19-6.el6                                                     

Complete!

It should now work.

# for service in memcached snmpd zenoss; do /sbin/chkconfig $service on; /sbin/service $service start; done
Starting memcached: 
Starting snmpd: 
Zenoss not initialized.  Performing first-boot initialization...
Fresh install pre steps
Checking RRDtool version >= 1.4.7: [ OK ] 1.4.7


Monday, November 24, 2014

Reset or fixing display settings in Mac OS X 10.10 (Yosemite) for external display LG 22LS2100

For some reason after the Yosemite installation when I tried to change the Display Settings to "Best for Display" resolution font smoothing just went crazy. I tried to do the following without any effect.


The workaround involves creating a new user and re-logging in to that new user. I know this is painful but for me this is a quick workaround because the old user is disposable for me. In the new user I notice that the Display Settings resolution is scaled but it does not indicate which scale it used. The BIG NOTE is not to use auto-scale resolution this time in the new user.