A bash script to get the CPU usage by process usage: nohup ./check_proc bwengine 70 & bwegnine is the process name we want to monitor 70 is to log only when the process is using over 70% of the CPU. […]
How to connect NFS with a specfic user under CentOS/RedHat 6
How to connect NFS with a specfic user under CentOS/RedHat 6 ##SERVER SIDE## 1. On server side must have the insecure option enabled edit /etc/exports /exports/real 192.17.36.147/255.255.255.255(rw,nohide,insecure,no_subtree_check,sync) 2. Make the change exportfs -ra 3. Make sure it is running rpcinfo […]
free dyndns
There is a simple way to have a free dyndns account. Create an account here: https://www.dlinkddns.com/login Then go ahead and sign in to Homepage
Install a second Python on CentOS
Install a second Python on CentOS 1.download python 2.install to diff local configure –prefix=/opt/virtualenv/python make && make install 3.create virtual env using new python virtualenv /opt/virtualenv –python=/opt/python276/bin/python note: if needed it can be done with a different user chown pyuser […]
bash get analytics data
This is a bash script to get Google Analytics Data, in this case A total day Pageviews. Here is the code: #!/bin/bash # Get google anlytics pageview results # by Felipe Ferreira Dec 17 2013 # v1 #todo: get REAL […]
Run jenkins with another user
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 […]