How to configure jenkins to run under different user other then tomcat6 account. I configured it to run a bash script using: sudo -u ubuntu /opt/script NOTE: inside the script debug it using whoami and env I had problems with […]
check_error_log
Yet another log monitoring script.. The date field is very specific for each system and I keep having to refix each time. I like this one about the way it works, it first find the date/time where we want to […]
varnish dynamic backend
Varnish pointing to a Amazon ELB (elastic load balance) does not work. Error: Backend host “XXXXXXXXXXX-123456789.us-east-1.elb.amazonaws.com”: resolves to multiple IPv4 addresses. Only one address is allowed. I wrote this script to have a way to auto update the vcl once […]
check how many files in a directory
Script to count how many files exists in directory and subdirectories based on Gerd Stammwitz original script. It is helpfull in some cases, just to find out how many files you have recursive in a directory
auto scale script
This can help if you are creating any kind of auto scale on Amazon AWS. It is not a 100% automatic, as you will need to prior to running this have: Pre-requisites on how to run the AWS command lines […]
check logfiles script
Not so generic way to check ‘any’ logfile for erros I have written at least about 5 variations of this same script. Some more flexible and genereal purpose. But in the end I have been writing customs made out of […]
TCP Send-Queue
Script to monitor the TCP Send-Queue. Send-Q is retrived from the netstat cmd. ex.: #netstat -anp |more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name The script syntax example: #check_sendq -w 900 […]