zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Nginx plugins for Munin

January 24, 2011 by Igor Drobot 1 Comment

Monitoring is great! I try to monitor everything I can – each service and important cron-jobs.

Since I’m running on nginx I searched a lot around the web for munin plugins, maybe yo know this problem you found one but you get empty graph.
[Read more…]

Filed Under: Debian, Linux, Monitoring Tagged With: Monitoring, Munin, Nginx, WGET

Debug squid ACL matches

January 24, 2011 by Igor Drobot Leave a Comment


Bad situation if you have too much ACLs in your squid config and important site gets a DENIE cause one or more of this all ACL’s matches.

Debugging helps you to find the right ACL.

1
2
3
vim /etc/squid3/squid.conf
# Debugging for your ACLs
debug_options 28,9

vim /etc/squid3/squid.conf # Debugging for your ACLs debug_options 28,9

Your debugged results will appear in your cache.log

1
less /var/log/squid3/cache.log

less /var/log/squid3/cache.log

Filed Under: Linux, Networking Tagged With: ACL, Debug, Proxy, Squid3

Progress bar for DD

January 21, 2011 by Igor Drobot Leave a Comment


I am still searching for a perfect progress bar for DD, I know a dirty trick[*1] – put DD to background an sending “USR1” signal to bring it to show a progress – I hate this solution!

This one is not so dirty, but you have only the done progress and transfer speed.

1
2
dd if=/opt/wap/Backup.tib | pv | ssh -c arcfour id@tower "dd of=/home/id/Backup.tib"
1.94GB 0:01:15 [30.1MB/s] [<=>

dd if=/opt/wap/Backup.tib | pv | ssh -c arcfour id@tower "dd of=/home/id/Backup.tib" 1.94GB 0:01:15 [30.1MB/s] [<=>

Dirty trick:
Only local way!

1
2
dd if=/opt/wap/Backup.tib of=file.img bs=4KB& pid=$!
while true; do kill -USR1 $pid && sleep 1 && clear; done

dd if=/opt/wap/Backup.tib of=file.img bs=4KB& pid=$! while true; do kill -USR1 $pid && sleep 1 && clear; done

Filed Under: Bash, Debian, Linux Tagged With: dd, progress bar, transfer

Mount LVM from liveCD

January 21, 2011 by Igor Drobot 2 Comments

Yeah after installation of Windows seven – my Grub-Bootloader was removed and I get only the Windows bootmager.

This article describe hot to mount root “/” which was created on LVM from a live CD and install GRUB Boot-Loader.

Step 1: Get a live CD in my case it was Ubuntu 10.10 Desktop edition.
[Read more…]

Filed Under: Bash, Linux Tagged With: LVM, rescue

Squid visited sites

January 21, 2011 by Igor Drobot 2 Comments

You have a IP-Address from a PC, and you want to know which web-sites ware visited from this PC.

Grep for PCs IP-Address in the access log of your proxy box.

As result you will get a list with visited sites.

1
grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less

grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less

Filed Under: Bash, Linux Tagged With: Proxy, Squid

  • « Previous Page
  • 1
  • …
  • 42
  • 43
  • 44
  • 45
  • 46
  • …
  • 62
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok