Archive

Posts Tagged ‘script’

AWS Cloud Watch bash script

August 3rd, 2015 No comments

This script was written by me a while back (still has an old version of the CLI)
I found a minor bug, when using non integer values (decimal values) causes a problem,
bash does not handle it very well.
Anyone who feels like updating and fixing please do so.

Read more…

Categories: Amazon-AWS, HowTo Tags: , , ,

solr peformance

May 25th, 2015 No comments

How to monitor Solr performance under Tomcat.

I keep track of how many access and the performance, based on response time.
For this I have 2 scripts:

Read more…

Categories: Linux Tags: , , ,

vbs ftp sync script

September 11th, 2014 No comments

We are using this script with jenkins to deploy “upload” a specific folder to a remote FTP. I used the winscp.exe synchronize command for it.

Read more…

Categories: VbScripts Tags: , , ,

check_http.sh

March 14th, 2014 5 comments

Simple bash script using curl to check a website.
It works on HTTP and HTTPS.
Requirement: curl
Usage ./check_http.sh
Example:
./check_http.sh ‘http://oglobo.globo.com’ oglobo 1
OK – Site oglobo.globo.com key oglobo time 0.019 |’time’=0.019s;1

Read more…

Categories: Nagios, plugins Tags: , , , ,

script to monitor cpu usage by process

March 12th, 2014 1 comment

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.

Read more…

Categories: BashScripts Tags: , , , ,

bash get analytics data

December 17th, 2013 No comments

This is a bash script to get Google Analytics Data, in this case A total day Pageviews.

Here is the code:

Read more…

Categories: HowTo, Linux Tags: , , , , , ,

check_error_log

December 6th, 2013 No comments

Yet another log monitoring script..
The date field is very specific for each system and I keep having to refix each time.

Read more…

check iis cpu

September 5th, 2013 1 comment

This nagios plugin VBS script, gets exactly the amount of CPU a specific Aplication Pool is using, it helps a lot to identify witch site is using more CPU.
It was tested on Windows 2003 only.

Read more…

Script to purge varnish cache

August 15th, 2013 No comments

There is a easy way to allow developers to stop bugging us the system adminsitror, “clean the cache”.
Just setup this php page on a apache server and they can do it themselves.

Read more…

Categories: Varnish Tags: , ,

varnish dynamic backend

June 14th, 2013 1 comment

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.

Read more…