Archive for the 'monitoring' Category
Purging in varnish.
0 Comments Published October 20th, 2011 in linux, monitoring, Open Source, performance, PHP.You might already know varnish. Its a so called website accelerator. It will sit in front of your web server as a reverse proxy, listening on port 80, handling static contents based on the configuration files, and pass all dynamic requests to the main web server behind it. varnish will help alot to reduce request [...]
cPanel log-viewer plugin
0 Comments Published May 12th, 2011 in linux, monitoring, Open Source, Security.I found this cool plugin for cPanel, which will provide additional feature for cPanel, for you to monitor certain log files located in /var/log/. However, this is just a very simple tool to view latest enrty in the log file, and to rotate those files individually. Please refer to their official page at http://www.logview.org/. They [...]
Saher-team provided a good tips on how to alert you by email, on any occurrence of ssh login for certain user. It is simple, by utilizing .bashrc file which is there by default in bash environment. Edit the .bashrc file in the intended user’s home directory to be monitored. vim /root/.bashrc. And add the following [...]
Found a webshell in your server account? It might not be the only one
0 Comments Published March 4th, 2011 in bash, monitoring, Open Source, PHP, plugins, Security.Have you ever encounter your site have been compromised, and you found some weird file being uploaded into your hosting account? Thats what the first thing the attacker would want to do on a web attack, to upload a webshell. Webshell is some kind of web-based backdoor, usually protected by a password, and allow the [...]
There’s a lot of attack going on on the web as we speak now. Without any invitation or any vulnerability exist on your web-apps, you will still see some attempt to hack into your site in apache log files. It doesn’t matter if you’re vulnerable or not, they will still come and try. Some of [...]
Volume IP-to-Country lookup using bash and php
0 Comments Published October 8th, 2009 in bash, monitoring, Open Source.Today I have encountered a problem, where I need to do some statistics on certain activity in my apache log. Depends on your purpose, you have to define it. Firstly I grep all the IP that I need to do the lookup using bash. cat domain.log | cut -d’ ‘ -f1 | sort -u > [...]



