HAProxy Logging Hostname to Syslog.

By default HAProxy will not log the system hostname to syslog. For me this meant that syslog-ng was inserting “127.0.0.1″ instead of the machine name. I use the machine name to filter my log entries to specific files.

I found an undocumented feature in the latest HAProxy, log-send-hostname which changes this behaviour.

http://haproxy.1wt.eu/git?p=haproxy.git;a=commitdiff;h=df5b38fac1788e6a134095459170a618a1c23388

28.11.11 | no comments | Filed Under: clustering, linux

Unnecessary CentOS Services on a VM.

When running CentOS inside a VM, there are a number of services you get that are not needed. I found the following services that I ended up disabling.

service smartd stop && chkconfig smartd off
service avahi-daemon stop && chkconfig avahi-daemon off
service cups stop && chkconfig cups off
service autofs stop && chkconfig autofs off
service iscsid stop && chkconfig iscsid off
service iscsi stop && chkconfig iscsi off
service bluetooth stop && chkconfig bluetooth off
service kudzu stop && chkconfig kudzu off
service mdmonitor stop && chkconfig mdmonitor off
service hidd stop && chkconfig hidd off
service haldaemon stop && chkconfig haldaemon off
service gpm stop && chkconfig gpm off
service

28.11.11 | no comments | Filed Under: linux, virtualization, xen

Categories


twodoteau would like to use this space to support the following projects:

SmartFile - multiprotol file sharing for the masses. Firefox 3 Get Thunderbird!