dialog-question

Linux find out what a process is doing

start top lsof -p strace -p ltrace -p Happy debugging :D

April 8, 2014 · 1 min · thomasf

Zenoss reverse proxy with Pound (CentOS)

Zenoss don’t support SSL certificates out-of-the-box. If you want to use an SSL connection to your zenoss monitor server the only thing you can do is use an reverse proxy. You can use this howto to install and configure a pound reverse proxy. Install the EPEL (more info about EPEL) repository with these commands: su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm' yum update Install pound yum install pound ...

February 27, 2014 · 2 min · thomasf

Zenoss: Performance issues with too many events

When you have too many events in your zenoss environment the zenoss webinterface will be very sloooooooow. And you get all kind of errors: Script don’t respond Connection refused. Check zeneventserver status on deamons A zenoss error has occurred When you start top you see alot of java executables when you click on the Infrastructure zenoss button. Java sometimes take 350% CPU. java -Djetty.host=localhost -server -XX:+HeapDumpOnOutOfMemoryError -DZENOSS_COMMAND=zeneventserver -DZENHOME=/opt/zenoss -Djetty.home=/opt/zenoss -Djetty.logs=/opt/zenoss/log -Dlogback.configurationFile=/opt/zenoss/etc/zeneventserver/logback.xml -Xmx1024m -DZENOSS_DAEMON=y -jar /opt/zenoss/lib/jetty-start-7.5.3.v20111011.jar --config=/opt/zenoss/etc/zeneventserver/jetty/start.config --ini=/opt/zenoss/etc/zeneventserver/jetty/jetty.ini --pre=etc/zeneventserver/jetty/jetty-logging.xml ...

February 3, 2014 · 3 min · thomasf

IPtables howto

I copy/paste this howto from the debian wiki @ https://wiki.debian.org/iptables and add this to my blog to for fast finding the best iptables article on the net. Iptables provides packet filtering, network address translation (NAT) and other packet mangling. Two of the most common uses of iptables is to provide firewall support and NAT. Configuring iptables manually is challenging for the uninitiated. Fortunately, there are many configuration tools (wizards) available to assist: e.g., fwbuilder, bastille, ferm (wiki page), ufw (Uncomplicated Firewall, from Ubuntu). ...

December 28, 2013 · 3 min · thomasf
spam

Show spam script on linux webserver

Sometimes a website on a shared server is compromised by a hacker. Most of the time they use the website to spam the WWW around. It can be hard to find the specific script who is responsible for the spam. Here I will describe a method you can use to find and eliminate the script. First stop postfix to stop the mail flood # service stop postfix Now get the mailque and write down the message id (yellow) ...

November 12, 2013 · 2 min · thomasf
zenoss

Zenoss Backups

Create a zenoss user cron sudo crontab -u zenoss -e Use this lines to backup every day 10 AM. HISTFILE=/home/zenoss/.bash_history HOME=/home/zenoss INSTANCE_HOME=/opt/zenoss LD_LIBRARY_PATH=/opt/zenoss/lib LOGNAME=zenoss MAIL=/var/spool/mail/zenoss PATH=/opt/zenoss/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/zenoss/bin PWD=/home/zenoss PYTHONPATH=/opt/zenoss/lib/python USER=zenoss ZENHOME=/opt/zenoss 30 10 * * * /opt/zenoss/bin/zenbackup -v10 Note: When I not put the variables to the cron I get this error: ERROR: $ZENHOME is not set. This is usually caused by executing this command as root rather than as the zenoss user. Either define $ZENHOME or run this command as a different user. ...

October 17, 2013 · 1 min · thomasf

Crunch - wordlist / password generator for brute force

Crunch is a wordlist generator where you can specify a standard character set or a character set you specify. crunch can generate all possible combinations and permutations. crunch generates wordlists in both combination and permutation ways it can breakup output by number of lines or file size now has resume support pattern now supports number and symbols pattern now supports upper and lower case characters separately adds a status report when generating multiple files new -l option for literal support of @,%^ new -d option to limit duplicate characters see man file for details now has unicode support See the sourceforge project: crunch - wordlist generator

October 14, 2013 · 1 min · thomasf
tux_pc

Linux clear disk cache from RAM

Sometimes your memory is full and youu can find the reason. 99/100 times the cause is that all your RAM is used for disk cache. This is an standard linux feature. With this command you can free your disk cache. echo 3 | sudo tee /proc/sys/vm/drop_caches via Experiments and fun with the Linux disk cache.

October 14, 2013 · 1 min · thomasf
tux_pc

Xming X Server for Windows

For X forwarding from windows to linux over SSH you can use Xming. This is ideal for a raspberry or other linux system without display. Howto:

October 7, 2013 · 1 min · thomasf
Securing-disk-drive

Linux IO write disk test

dd bs=1M count=256 if=/dev/zero of=test conv=fdatasync if the results are too fast try: dd bs=1M count=1024 if=/dev/zero of=test conv=fdatasync Source: http://romanrm.ru/en/dd-benchmark

September 24, 2013 · 1 min · thomasf